#[non_exhaustive]pub struct ExportAttributes {
pub export_dukpt_initial_key: Option<ExportDukptInitialKey>,
pub key_check_value_algorithm: Option<KeyCheckValueAlgorithm>,
}Expand description
The attributes for IPEK generation during export.
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.export_dukpt_initial_key: Option<ExportDukptInitialKey>Parameter information for IPEK export.
key_check_value_algorithm: Option<KeyCheckValueAlgorithm>The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. Specify KCV for IPEK export only.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
Implementations§
source§impl ExportAttributes
impl ExportAttributes
sourcepub fn export_dukpt_initial_key(&self) -> Option<&ExportDukptInitialKey>
pub fn export_dukpt_initial_key(&self) -> Option<&ExportDukptInitialKey>
Parameter information for IPEK export.
sourcepub fn key_check_value_algorithm(&self) -> Option<&KeyCheckValueAlgorithm>
pub fn key_check_value_algorithm(&self) -> Option<&KeyCheckValueAlgorithm>
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity. Specify KCV for IPEK export only.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
source§impl ExportAttributes
impl ExportAttributes
sourcepub fn builder() -> ExportAttributesBuilder
pub fn builder() -> ExportAttributesBuilder
Creates a new builder-style object to manufacture ExportAttributes.
Trait Implementations§
source§impl Clone for ExportAttributes
impl Clone for ExportAttributes
source§fn clone(&self) -> ExportAttributes
fn clone(&self) -> ExportAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExportAttributes
impl Debug for ExportAttributes
source§impl PartialEq for ExportAttributes
impl PartialEq for ExportAttributes
source§fn eq(&self, other: &ExportAttributes) -> bool
fn eq(&self, other: &ExportAttributes) -> bool
self and other values to be equal, and is used
by ==.