Struct aws_sdk_paymentcryptography::types::WrappedKey
source · #[non_exhaustive]pub struct WrappedKey {
pub wrapping_key_arn: String,
pub wrapped_key_material_format: WrappedKeyMaterialFormat,
pub key_material: String,
pub key_check_value: Option<String>,
pub key_check_value_algorithm: Option<KeyCheckValueAlgorithm>,
}
Expand description
Parameter information for generating a WrappedKeyBlock for key exchange.
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.wrapping_key_arn: String
The KeyARN
of the wrapped key.
wrapped_key_material_format: WrappedKeyMaterialFormat
The key block format of a wrapped key.
key_material: String
Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.
key_check_value: Option<String>
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
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.
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 WrappedKey
impl WrappedKey
sourcepub fn wrapping_key_arn(&self) -> &str
pub fn wrapping_key_arn(&self) -> &str
The KeyARN
of the wrapped key.
sourcepub fn wrapped_key_material_format(&self) -> &WrappedKeyMaterialFormat
pub fn wrapped_key_material_format(&self) -> &WrappedKeyMaterialFormat
The key block format of a wrapped key.
sourcepub fn key_material(&self) -> &str
pub fn key_material(&self) -> &str
Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.
sourcepub fn key_check_value(&self) -> Option<&str>
pub fn key_check_value(&self) -> Option<&str>
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
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.
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 WrappedKey
impl WrappedKey
sourcepub fn builder() -> WrappedKeyBuilder
pub fn builder() -> WrappedKeyBuilder
Creates a new builder-style object to manufacture WrappedKey
.
Trait Implementations§
source§impl Clone for WrappedKey
impl Clone for WrappedKey
source§fn clone(&self) -> WrappedKey
fn clone(&self) -> WrappedKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WrappedKey
impl Debug for WrappedKey
source§impl PartialEq for WrappedKey
impl PartialEq for WrappedKey
source§fn eq(&self, other: &WrappedKey) -> bool
fn eq(&self, other: &WrappedKey) -> bool
self
and other
values to be equal, and is used
by ==
.