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
impl StructuralPartialEq for WrappedKey
Auto Trait Implementations§
impl Freeze for WrappedKey
impl RefUnwindSafe for WrappedKey
impl Send for WrappedKey
impl Sync for WrappedKey
impl Unpin for WrappedKey
impl UnwindSafe for WrappedKey
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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