Initialized Cipher State
data class InitializedCipherState(k: ByteArray, n: Long, cipher: CipherFunctions) : CipherState
Content copied to clipboard
Initialized cipher state
Parameters
k
key
n
nonce
cipher
cipher functions
Constructors
InitializedCipherState
Link copied to clipboard
fun InitializedCipherState(k: ByteArray, n: Long, cipher: CipherFunctions)
Content copied to clipboard
Functions
cipher
Link copied to clipboard
decrypt With Ad
Link copied to clipboard
open override fun decryptWithAd(ad: ByteArray, ciphertext: ByteArray): Pair<CipherState, ByteArray>
Content copied to clipboard
encrypt With Ad
Link copied to clipboard
open override fun encryptWithAd(ad: ByteArray, plaintext: ByteArray): Pair<CipherState, ByteArray>
Content copied to clipboard
initialize Key
Link copied to clipboard