#[non_exhaustive]pub struct SymmetricEncryptionAttributes {
pub mode: Option<EncryptionMode>,
pub initialization_vector: Option<String>,
pub padding_type: Option<PaddingType>,
}
Expand description
Parameters requried to encrypt plaintext data using symmetric keys.
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.mode: Option<EncryptionMode>
The block cipher mode of operation. Block ciphers are designed to encrypt a block of data of fixed size (for example, 128 bits). The size of the input block is usually same as the size of the encrypted output block, while the key length can be different. A mode of operation describes how to repeatedly apply a cipher's single-block operation to securely transform amounts of data larger than a block.
initialization_vector: Option<String>
An input to cryptographic primitive used to provide the intial state. The InitializationVector
is typically required have a random or psuedo-random value, but sometimes it only needs to be unpredictable or unique. If a value is not provided, Amazon Web Services Payment Cryptography generates a random value.
padding_type: Option<PaddingType>
The padding to be included with the data.
Implementations§
source§impl SymmetricEncryptionAttributes
impl SymmetricEncryptionAttributes
sourcepub fn mode(&self) -> Option<&EncryptionMode>
pub fn mode(&self) -> Option<&EncryptionMode>
The block cipher mode of operation. Block ciphers are designed to encrypt a block of data of fixed size (for example, 128 bits). The size of the input block is usually same as the size of the encrypted output block, while the key length can be different. A mode of operation describes how to repeatedly apply a cipher's single-block operation to securely transform amounts of data larger than a block.
sourcepub fn initialization_vector(&self) -> Option<&str>
pub fn initialization_vector(&self) -> Option<&str>
An input to cryptographic primitive used to provide the intial state. The InitializationVector
is typically required have a random or psuedo-random value, but sometimes it only needs to be unpredictable or unique. If a value is not provided, Amazon Web Services Payment Cryptography generates a random value.
sourcepub fn padding_type(&self) -> Option<&PaddingType>
pub fn padding_type(&self) -> Option<&PaddingType>
The padding to be included with the data.
source§impl SymmetricEncryptionAttributes
impl SymmetricEncryptionAttributes
sourcepub fn builder() -> SymmetricEncryptionAttributesBuilder
pub fn builder() -> SymmetricEncryptionAttributesBuilder
Creates a new builder-style object to manufacture SymmetricEncryptionAttributes
.
Trait Implementations§
source§impl Clone for SymmetricEncryptionAttributes
impl Clone for SymmetricEncryptionAttributes
source§fn clone(&self) -> SymmetricEncryptionAttributes
fn clone(&self) -> SymmetricEncryptionAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for SymmetricEncryptionAttributes
impl PartialEq for SymmetricEncryptionAttributes
source§fn eq(&self, other: &SymmetricEncryptionAttributes) -> bool
fn eq(&self, other: &SymmetricEncryptionAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.