#[non_exhaustive]pub struct EmvEncryptionAttributes {
pub major_key_derivation_mode: EmvMajorKeyDerivationMode,
pub primary_account_number: String,
pub pan_sequence_number: String,
pub session_derivation_data: String,
pub mode: Option<EmvEncryptionMode>,
pub initialization_vector: Option<String>,
}
Expand description
Parameters for plaintext encryption using EMV keys.
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.major_key_derivation_mode: EmvMajorKeyDerivationMode
The EMV derivation mode to use for ICC master key derivation as per EMV version 4.3 book 2.
primary_account_number: String
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card and associates the card to a specific account holder.
pan_sequence_number: String
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
session_derivation_data: String
The derivation value used to derive the ICC session key. It is typically the application transaction counter value padded with zeros or previous ARQC value padded with zeros as per EMV version 4.3 book 2.
mode: Option<EmvEncryptionMode>
The block cipher method to use for encryption.
initialization_vector: Option<String>
An input used to provide the intial state. If no value is provided, Amazon Web Services Payment Cryptography defaults it to zero.
Implementations§
source§impl EmvEncryptionAttributes
impl EmvEncryptionAttributes
sourcepub fn major_key_derivation_mode(&self) -> &EmvMajorKeyDerivationMode
pub fn major_key_derivation_mode(&self) -> &EmvMajorKeyDerivationMode
The EMV derivation mode to use for ICC master key derivation as per EMV version 4.3 book 2.
sourcepub fn primary_account_number(&self) -> &str
pub fn primary_account_number(&self) -> &str
The Primary Account Number (PAN), a unique identifier for a payment credit or debit card and associates the card to a specific account holder.
sourcepub fn pan_sequence_number(&self) -> &str
pub fn pan_sequence_number(&self) -> &str
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
sourcepub fn session_derivation_data(&self) -> &str
pub fn session_derivation_data(&self) -> &str
The derivation value used to derive the ICC session key. It is typically the application transaction counter value padded with zeros or previous ARQC value padded with zeros as per EMV version 4.3 book 2.
sourcepub fn mode(&self) -> Option<&EmvEncryptionMode>
pub fn mode(&self) -> Option<&EmvEncryptionMode>
The block cipher method to use for encryption.
sourcepub fn initialization_vector(&self) -> Option<&str>
pub fn initialization_vector(&self) -> Option<&str>
An input used to provide the intial state. If no value is provided, Amazon Web Services Payment Cryptography defaults it to zero.
source§impl EmvEncryptionAttributes
impl EmvEncryptionAttributes
sourcepub fn builder() -> EmvEncryptionAttributesBuilder
pub fn builder() -> EmvEncryptionAttributesBuilder
Creates a new builder-style object to manufacture EmvEncryptionAttributes
.
Trait Implementations§
source§impl Clone for EmvEncryptionAttributes
impl Clone for EmvEncryptionAttributes
source§fn clone(&self) -> EmvEncryptionAttributes
fn clone(&self) -> EmvEncryptionAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EmvEncryptionAttributes
impl Debug for EmvEncryptionAttributes
source§impl PartialEq for EmvEncryptionAttributes
impl PartialEq for EmvEncryptionAttributes
source§fn eq(&self, other: &EmvEncryptionAttributes) -> bool
fn eq(&self, other: &EmvEncryptionAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EmvEncryptionAttributes
Auto Trait Implementations§
impl Freeze for EmvEncryptionAttributes
impl RefUnwindSafe for EmvEncryptionAttributes
impl Send for EmvEncryptionAttributes
impl Sync for EmvEncryptionAttributes
impl Unpin for EmvEncryptionAttributes
impl UnwindSafe for EmvEncryptionAttributes
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