com.github.rs3vans.krypto / AuthenticatingBlockCipher

AuthenticatingBlockCipher

class AuthenticatingBlockCipher : ConcreteCipher, EncryptCipher, DecryptCipher

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

Constructors

<init> AuthenticatingBlockCipher(key: SecretKey, provider: KryptoProvider = KryptoProvider.defaultInstance)

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

Properties

jdkCipher val jdkCipher: Cipher
key val key: SecretKey
provider val provider: KryptoProvider

Inherited Properties

algorithm val algorithm: String
blockSize val blockSize: Int

Functions

decrypt fun decrypt(encrypted: Encrypted): Decrypted
encrypt fun encrypt(decrypted: Decrypted): Encrypted

Inherited Functions

withCipher fun <X> withCipher(action: (Cipher) -> X): X