InitializedCipherState

data class InitializedCipherState(k: ByteArray, n: Long, cipher: CipherFunctions) : CipherState

Initialized cipher state

Parameters

k

key

n

nonce

cipher

cipher functions

Constructors

InitializedCipherState
Link copied to clipboard
common
fun InitializedCipherState(k: ByteArray, n: Long, 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>
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
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
k
Link copied to clipboard
common
val k: ByteArray
n
Link copied to clipboard
common
val n: Long