com.github.rs3vans.krypto / DecryptCipher

DecryptCipher

interface DecryptCipher : Any

A contract for a cipher that can decrypt an instance of Encrypted, producing an instance of Decrypted.

Functions

decrypt abstract fun decrypt(encrypted: Encrypted): Decrypted

Inheritors

AsymmetricCipherPair class AsymmetricCipherPair : EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which wraps both an AsymmetricEncryptCipher and a AsymmetricDecryptCipher.

AsymmetricDecryptCipher class AsymmetricDecryptCipher : ConcreteCipher, DecryptCipher

An decrypting-only cipher which uses an RSA-based PrivateKey for decryption.

AuthenticatingBlockCipher class AuthenticatingBlockCipher : ConcreteCipher, EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which uses the Galois-counter mode (GCM).

BlockCipher class BlockCipher : ConcreteCipher, EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which uses the chained-block mode (CBC).