IvAuthenticatedCipher
Combines the ability to set explicit initialization vector (IV) and authenticated encryption (AEAD) capabilities.
Inherited encrypt/decrypt methods generate a random IV and prepend it to the output. The authentication tag is appended to the ciphertext: encrypt returns IV || ciphertext || tag, and decrypt expects the same format.
The WithIv variants use a caller-provided IV and do not include it in the output: encrypt returns ciphertext || tag, and decrypt expects ciphertext || tag.
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 RawSink that decrypts data as it is written, sending the resulting plaintext to plaintext, using the specified iv 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.
Returns a RawSource that decrypts data as it is read from the given ciphertext source using the specified iv with optional associatedData.
Returns a RawSource that decrypts data as it is read from the given ciphertext source using the specified iv.
Decrypts the given ciphertext using the specified iv with optional associatedData and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext using the specified iv with optional associatedData and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext using the specified iv and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext using the specified iv and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext using the specified iv with optional associatedData and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext using the specified iv with optional associatedData and returns the resulting plaintext as a ByteString.
Decrypts the given ciphertext using the specified iv and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext using the specified iv and returns the resulting plaintext 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.
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 RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, using the specified iv with optional associatedData.
Returns a RawSink that encrypts data as it is written, sending the resulting ciphertext to ciphertext, using the specified iv.
Returns a RawSource that encrypts data as it is read from the given plaintext source with optional associatedData.
Returns a RawSource that encrypts data as it is read from the given plaintext source using the specified iv with optional associatedData.
Encrypts the given plaintext using the specified iv with optional associatedData and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext using the specified iv with optional associatedData and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext using the specified iv with optional associatedData and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext using the specified iv with optional associatedData and returns the resulting ciphertext as a ByteString.
Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteString.