UninitializedCipherState

data class UninitializedCipherState(cipher: CipherFunctions) : CipherState

Uninitialized cipher state. Encrypt and decrypt do nothing (ciphertext = plaintext)

Parameters

cipher

cipher functions

Constructors

UninitializedCipherState
Link copied to clipboard
common
fun UninitializedCipherState(cipher: CipherFunctions)

Functions

cipher
Link copied to clipboard
common
open override fun cipher(): CipherFunctions
decryptWithAd
Link copied to clipboard
common
open override fun decryptWithAd(ad: ByteArray, ciphertext: ByteArray): Pair<CipherState, ByteArray>
encryptWithAd
Link copied to clipboard
common
open override fun encryptWithAd(ad: ByteArray, plaintext: ByteArray): Pair<CipherState, ByteArray>
hasKey
Link copied to clipboard
common
open override fun hasKey(): Boolean
initializeKey
Link copied to clipboard
common
open fun initializeKey(key: ByteArray): CipherState

Properties

cipher
Link copied to clipboard
common
val cipher: CipherFunctions