IvCipher
Extends Cipher with the ability to set explicit initialization vector (IV) support.
Inherited encrypt/decrypt methods generate a random IV and prepend it to the output: encrypt returns IV || ciphertext, and decrypt expects the same format.
The WithIv variants use a caller-provided IV and do not include it in the output: encrypt returns only ciphertext, and decrypt expects only ciphertext.
Inheritors
Functions
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 and returns the resulting plaintext as a ByteArray.
Decrypts the given ciphertext and returns the resulting plaintext as a ByteString.
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.
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 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 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. 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.
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 and returns the resulting ciphertext as a ByteArray.
Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteString.