#[non_exhaustive]pub struct DukptDerivationAttributes {
pub key_serial_number: 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: 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) -> &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_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 for DukptDerivationAttributes
impl PartialEq 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 ==
.impl StructuralPartialEq for DukptDerivationAttributes
Auto Trait Implementations§
impl Freeze for DukptDerivationAttributes
impl RefUnwindSafe for DukptDerivationAttributes
impl Send for DukptDerivationAttributes
impl Sync for DukptDerivationAttributes
impl Unpin for DukptDerivationAttributes
impl UnwindSafe for DukptDerivationAttributes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more