AuthenticatedCipher
Combines AuthenticatedEncryptor and AuthenticatedDecryptor for authenticated encryption with associated data (AEAD).
The authentication tag is appended to the ciphertext: encrypt returns ciphertext || tag, and decrypt expects ciphertext || tag.
For IV support, see IvAuthenticatedCipher.
Inheritors
Functions
Decrypts the given ciphertext with optional associatedData and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext with optional associatedData and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext with optional associatedData and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext with optional associatedData and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext and returns the resulting plaintext as a ByteString.
Returns a RawSink that decrypts data as it is written, sending the resulting plaintext to plaintext, with optional associatedData.
Returns a RawSource that decrypts data as it is read from the given ciphertext source with optional associatedData.
Returns a RawSource that decrypts data as it is read from the given ciphertext source. The resulting source produces plaintext on reads.
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 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 and returns the resulting ciphertext as a ByteString.
Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, with optional associatedData.
Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext. Write plaintext to the returned sink, and ciphertext will be forwarded to ciphertext.
Returns a RawSource that encrypts data as it is read from the given plaintext source with optional associatedData.