Struct aws_sdk_paymentcryptographydata::types::WrappedKey
source · #[non_exhaustive]pub struct WrappedKey {
pub wrapped_key_material: Option<WrappedKeyMaterial>,
pub key_check_value_algorithm: Option<KeyCheckValueAlgorithm>,
}
Expand description
Parameter information of a WrappedKeyBlock for encryption 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.wrapped_key_material: Option<WrappedKeyMaterial>
Parameter information of a WrappedKeyBlock for encryption key exchange.
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 wrapped_key_material(&self) -> Option<&WrappedKeyMaterial>
pub fn wrapped_key_material(&self) -> Option<&WrappedKeyMaterial>
Parameter information of a WrappedKeyBlock for encryption key exchange.
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 ==
.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§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