Struct aws_sdk_paymentcryptographydata::types::builders::SymmetricEncryptionAttributesBuilder
source · #[non_exhaustive]pub struct SymmetricEncryptionAttributesBuilder { /* private fields */ }
Expand description
A builder for SymmetricEncryptionAttributes
.
Implementations§
source§impl SymmetricEncryptionAttributesBuilder
impl SymmetricEncryptionAttributesBuilder
sourcepub fn mode(self, input: EncryptionMode) -> Self
pub fn mode(self, input: EncryptionMode) -> Self
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.
This field is required.sourcepub fn set_mode(self, input: Option<EncryptionMode>) -> Self
pub fn set_mode(self, input: Option<EncryptionMode>) -> Self
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 get_mode(&self) -> &Option<EncryptionMode>
pub fn get_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, input: impl Into<String>) -> Self
pub fn initialization_vector(self, input: impl Into<String>) -> Self
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 set_initialization_vector(self, input: Option<String>) -> Self
pub fn set_initialization_vector(self, input: Option<String>) -> Self
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 get_initialization_vector(&self) -> &Option<String>
pub fn get_initialization_vector(&self) -> &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.
sourcepub fn padding_type(self, input: PaddingType) -> Self
pub fn padding_type(self, input: PaddingType) -> Self
The padding to be included with the data.
sourcepub fn set_padding_type(self, input: Option<PaddingType>) -> Self
pub fn set_padding_type(self, input: Option<PaddingType>) -> Self
The padding to be included with the data.
sourcepub fn get_padding_type(&self) -> &Option<PaddingType>
pub fn get_padding_type(&self) -> &Option<PaddingType>
The padding to be included with the data.
sourcepub fn build(self) -> Result<SymmetricEncryptionAttributes, BuildError>
pub fn build(self) -> Result<SymmetricEncryptionAttributes, BuildError>
Consumes the builder and constructs a SymmetricEncryptionAttributes
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SymmetricEncryptionAttributesBuilder
impl Clone for SymmetricEncryptionAttributesBuilder
source§fn clone(&self) -> SymmetricEncryptionAttributesBuilder
fn clone(&self) -> SymmetricEncryptionAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SymmetricEncryptionAttributesBuilder
impl Default for SymmetricEncryptionAttributesBuilder
source§fn default() -> SymmetricEncryptionAttributesBuilder
fn default() -> SymmetricEncryptionAttributesBuilder
source§impl PartialEq for SymmetricEncryptionAttributesBuilder
impl PartialEq for SymmetricEncryptionAttributesBuilder
source§fn eq(&self, other: &SymmetricEncryptionAttributesBuilder) -> bool
fn eq(&self, other: &SymmetricEncryptionAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.