#[non_exhaustive]pub struct DukptDerivationAttributes {
pub key_serial_number: Option<String>,
pub dukpt_key_derivation_type: Option<DukptDerivationType>,
pub dukpt_key_variant: Option<DukptKeyVariant>,
}
Expand description
Parameters required for encryption or decryption of data using DUKPT.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_serial_number: Option<String>
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
dukpt_key_derivation_type: Option<DukptDerivationType>
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
dukpt_key_variant: Option<DukptKeyVariant>
The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.
Implementations§
source§impl DukptDerivationAttributes
impl DukptDerivationAttributes
sourcepub fn key_serial_number(&self) -> Option<&str>
pub fn key_serial_number(&self) -> Option<&str>
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn dukpt_key_derivation_type(&self) -> Option<&DukptDerivationType>
pub fn dukpt_key_derivation_type(&self) -> Option<&DukptDerivationType>
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
sourcepub fn dukpt_key_variant(&self) -> Option<&DukptKeyVariant>
pub fn dukpt_key_variant(&self) -> Option<&DukptKeyVariant>
The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.
source§impl DukptDerivationAttributes
impl DukptDerivationAttributes
sourcepub fn builder() -> DukptDerivationAttributesBuilder
pub fn builder() -> DukptDerivationAttributesBuilder
Creates a new builder-style object to manufacture DukptDerivationAttributes
.
Trait Implementations§
source§impl Clone for DukptDerivationAttributes
impl Clone for DukptDerivationAttributes
source§fn clone(&self) -> DukptDerivationAttributes
fn clone(&self) -> DukptDerivationAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DukptDerivationAttributes
impl Debug for DukptDerivationAttributes
source§impl PartialEq<DukptDerivationAttributes> for DukptDerivationAttributes
impl PartialEq<DukptDerivationAttributes> for DukptDerivationAttributes
source§fn eq(&self, other: &DukptDerivationAttributes) -> bool
fn eq(&self, other: &DukptDerivationAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.