AuthenticatedEncryptor
Encrypts plaintext with optional associated data for authenticated encryption (AEAD). When associated data is provided, it is authenticated but not encrypted. When associated data is null, only the plaintext is authenticated and encrypted.
For the decryption counterpart, see AuthenticatedDecryptor.
Inheritors
Functions
Encrypts the given plaintext without associated data and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext without associated data and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext with optional associatedData and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext with optional associatedData and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext without associated data and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext without associated data and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext with optional associatedData and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext with optional associatedData and returns the resulting ciphertext as a ByteString.
Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, without associated data.
Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, with optional associatedData.
Returns a RawSource that encrypts data as it is read from the given plaintext source without associated data.
Returns a RawSource that encrypts data as it is read from the given plaintext source with optional associatedData.