pub enum AesCipherText {
Single(LocalCipherText),
Sequence(Vec<AesCipherText>),
Map(Vec<(String, AesCipherText)>),
None(LocalCipherText),
Passthrough(Box<dyn Any + Send + 'static>),
}Expand description
The recursive ciphertext container produced by Aes256Cipher.
The shape mirrors the structure of the plaintext that was encrypted: a
single value yields Single, a Vec yields
Sequence, a HashMap yields
Map. Nested structures are represented recursively.
Variants§
Single(LocalCipherText)
A single sealed value (nonce + ciphertext + tag).
Sequence(Vec<AesCipherText>)
A sequence of ciphertexts produced from a Vec-shaped plaintext.
Map(Vec<(String, AesCipherText)>)
A map of (cleartext key, ciphertext value) pairs produced from a
HashMap-shaped plaintext. Keys are not encrypted.
None(LocalCipherText)
The authenticated absent marker produced by Cipher::encrypt_none.
Stores a sealed empty plaintext whose tag binds the supplied AAD.
Passthrough(Box<dyn Any + Send + 'static>)
A typed value passed through unencrypted via Cipher::passthrough.
Not serializable to bytes — see
packages/aead/src/cipher.rs for the API-level type bound and the
runtime downcast performed by
Decipher::decrypt_passthrough.