#[non_exhaustive]pub struct WrappedKeyBuilder { /* private fields */ }
Expand description
A builder for WrappedKey
.
Implementations§
source§impl WrappedKeyBuilder
impl WrappedKeyBuilder
sourcepub fn wrapped_key_material(self, input: WrappedKeyMaterial) -> Self
pub fn wrapped_key_material(self, input: WrappedKeyMaterial) -> Self
Parameter information of a WrappedKeyBlock for encryption key exchange.
This field is required.sourcepub fn set_wrapped_key_material(self, input: Option<WrappedKeyMaterial>) -> Self
pub fn set_wrapped_key_material(self, input: Option<WrappedKeyMaterial>) -> Self
Parameter information of a WrappedKeyBlock for encryption key exchange.
sourcepub fn get_wrapped_key_material(&self) -> &Option<WrappedKeyMaterial>
pub fn get_wrapped_key_material(&self) -> &Option<WrappedKeyMaterial>
Parameter information of a WrappedKeyBlock for encryption key exchange.
sourcepub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
pub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
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.
sourcepub fn set_key_check_value_algorithm(
self,
input: Option<KeyCheckValueAlgorithm>,
) -> Self
pub fn set_key_check_value_algorithm( self, input: Option<KeyCheckValueAlgorithm>, ) -> Self
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.
sourcepub fn get_key_check_value_algorithm(&self) -> &Option<KeyCheckValueAlgorithm>
pub fn get_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.
sourcepub fn build(self) -> WrappedKey
pub fn build(self) -> WrappedKey
Consumes the builder and constructs a WrappedKey
.
Trait Implementations§
source§impl Clone for WrappedKeyBuilder
impl Clone for WrappedKeyBuilder
source§fn clone(&self) -> WrappedKeyBuilder
fn clone(&self) -> WrappedKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WrappedKeyBuilder
impl Debug for WrappedKeyBuilder
source§impl Default for WrappedKeyBuilder
impl Default for WrappedKeyBuilder
source§fn default() -> WrappedKeyBuilder
fn default() -> WrappedKeyBuilder
source§impl PartialEq for WrappedKeyBuilder
impl PartialEq for WrappedKeyBuilder
source§fn eq(&self, other: &WrappedKeyBuilder) -> bool
fn eq(&self, other: &WrappedKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WrappedKeyBuilder
Auto Trait Implementations§
impl Freeze for WrappedKeyBuilder
impl RefUnwindSafe for WrappedKeyBuilder
impl Send for WrappedKeyBuilder
impl Sync for WrappedKeyBuilder
impl Unpin for WrappedKeyBuilder
impl UnwindSafe for WrappedKeyBuilder
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