#[non_exhaustive]pub struct EncapsulateOutputBuilder { /* private fields */ }Expand description
A builder for EncapsulateOutput.
Implementations§
Source§impl EncapsulateOutputBuilder
impl EncapsulateOutputBuilder
Sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The identifier of the ML-KEM KMS key used to encapsulate the shared secret.
Sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The identifier of the ML-KEM KMS key used to encapsulate the shared secret.
Sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The identifier of the ML-KEM KMS key used to encapsulate the shared secret.
The plaintext shared secret. It is a 32-byte cryptographically random value that both parties can use directly as key material or pass through a key derivation function to generate multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
The plaintext shared secret. It is a 32-byte cryptographically random value that both parties can use directly as key material or pass through a key derivation function to generate multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
The plaintext shared secret. It is a 32-byte cryptographically random value that both parties can use directly as key material or pass through a key derivation function to generate multiple keys and nonces. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
The encapsulated form of the shared secret. Pass this value to the Decapsulate operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. The length of SharedSecretCiphertextBlob depends on the ML-KEM key spec. Before Base64 encoding, the encapsulated shared secret is 768 bytes for ML_KEM_512, 1088 bytes for ML_KEM_768, and 1568 bytes for ML_KEM_1024.
The encapsulated form of the shared secret. Pass this value to the Decapsulate operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. The length of SharedSecretCiphertextBlob depends on the ML-KEM key spec. Before Base64 encoding, the encapsulated shared secret is 768 bytes for ML_KEM_512, 1088 bytes for ML_KEM_768, and 1568 bytes for ML_KEM_1024.
The encapsulated form of the shared secret. Pass this value to the Decapsulate operation to recover the shared secret. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. The length of SharedSecretCiphertextBlob depends on the ML-KEM key spec. Before Base64 encoding, the encapsulated shared secret is 768 bytes for ML_KEM_512, 1088 bytes for ML_KEM_768, and 1568 bytes for ML_KEM_1024.
Sourcepub fn encapsulation_algorithm(self, input: EncapsulationAlgorithmSpec) -> Self
pub fn encapsulation_algorithm(self, input: EncapsulationAlgorithmSpec) -> Self
The key encapsulation algorithm used to generate the shared secret.
Sourcepub fn set_encapsulation_algorithm(
self,
input: Option<EncapsulationAlgorithmSpec>,
) -> Self
pub fn set_encapsulation_algorithm( self, input: Option<EncapsulationAlgorithmSpec>, ) -> Self
The key encapsulation algorithm used to generate the shared secret.
Sourcepub fn get_encapsulation_algorithm(&self) -> &Option<EncapsulationAlgorithmSpec>
pub fn get_encapsulation_algorithm(&self) -> &Option<EncapsulationAlgorithmSpec>
The key encapsulation algorithm used to generate the shared secret.
Sourcepub fn build(self) -> EncapsulateOutput
pub fn build(self) -> EncapsulateOutput
Consumes the builder and constructs a EncapsulateOutput.
Trait Implementations§
Source§impl Clone for EncapsulateOutputBuilder
impl Clone for EncapsulateOutputBuilder
Source§fn clone(&self) -> EncapsulateOutputBuilder
fn clone(&self) -> EncapsulateOutputBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EncapsulateOutputBuilder
impl Debug for EncapsulateOutputBuilder
Source§impl Default for EncapsulateOutputBuilder
impl Default for EncapsulateOutputBuilder
Source§fn default() -> EncapsulateOutputBuilder
fn default() -> EncapsulateOutputBuilder
Source§impl PartialEq for EncapsulateOutputBuilder
impl PartialEq for EncapsulateOutputBuilder
impl StructuralPartialEq for EncapsulateOutputBuilder
Auto Trait Implementations§
impl !Freeze for EncapsulateOutputBuilder
impl RefUnwindSafe for EncapsulateOutputBuilder
impl Send for EncapsulateOutputBuilder
impl Sync for EncapsulateOutputBuilder
impl Unpin for EncapsulateOutputBuilder
impl UnsafeUnpin for EncapsulateOutputBuilder
impl UnwindSafe for EncapsulateOutputBuilder
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§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