Aead
interface Aead
Represents a Authenticated Encryption with Associated Data (AEAD) algorithm.
Methods
decrypt
pub fn decrypt(self, dst: Bytes, src: Bytes, nonce: Bytes, tag: Bytes, associated_data: Bytes? = nil) throws InvalidLengthError, AeadError
Decrypts the src message with the given nonce and associated data to dst.
decrypt
pub fn decrypt(self, dst: Bytes, src: Bytes, nonce: Bytes, tag: Bytes, associated_data: Bytes? = nil) throws InvalidLengthError, AeadError
Decrypts the src message with the given nonce and associated data to dst.
Decrypts the src message with the given nonce and associated data to dst.
encrypt
pub fn encrypt(self, dst: Bytes, src: Bytes, nonce: Bytes, associated_data: Bytes? = nil): Bytes throws InvalidLengthError, AeadError
Encrypts the src message with the given nonce and associated data to dst.
encrypt
pub fn encrypt(self, dst: Bytes, src: Bytes, nonce: Bytes, associated_data: Bytes? = nil): Bytes throws InvalidLengthError, AeadError
Encrypts the src message with the given nonce and associated data to dst.
Encrypts the src message with the given nonce and associated data to dst.
nonce_size
pub fn nonce_size(self): int
Returns the size of the nonce.
nonce_size
pub fn nonce_size(self): int
Returns the size of the nonce.
Returns the size of the nonce.
The upper bound amount of additional space required to support a ciphertext vs. a plaintext.
The upper bound amount of additional space required to support a ciphertext vs. a plaintext.
The upper bound amount of additional space required to support a ciphertext vs. a plaintext.