#[non_exhaustive]pub struct DukptAttributes {
pub key_serial_number: String,
pub dukpt_derivation_type: DukptDerivationType,
}
Expand description
Parameters that are used for Derived Unique Key Per Transaction (DUKPT) derivation algorithm.
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: 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_derivation_type: 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
.
Implementations§
source§impl DukptAttributes
impl DukptAttributes
sourcepub fn key_serial_number(&self) -> &str
pub fn key_serial_number(&self) -> &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_derivation_type(&self) -> &DukptDerivationType
pub fn dukpt_derivation_type(&self) -> &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
.
source§impl DukptAttributes
impl DukptAttributes
sourcepub fn builder() -> DukptAttributesBuilder
pub fn builder() -> DukptAttributesBuilder
Creates a new builder-style object to manufacture DukptAttributes
.
Trait Implementations§
source§impl Clone for DukptAttributes
impl Clone for DukptAttributes
source§fn clone(&self) -> DukptAttributes
fn clone(&self) -> DukptAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DukptAttributes
impl Debug for DukptAttributes
source§impl PartialEq for DukptAttributes
impl PartialEq for DukptAttributes
source§fn eq(&self, other: &DukptAttributes) -> bool
fn eq(&self, other: &DukptAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.