Symmetric State
data class SymmetricState(cipherState: CipherState, ck: ByteArray, h: ByteArray, hashFunctions: HashFunctions)
Content copied to clipboard
Parameters
cipher State
cipher state
ck
chaining key
h
hash
hash Functions
hash functions
Constructors
SymmetricState
Link copied to clipboard
fun SymmetricState(cipherState: CipherState, ck: ByteArray, h: ByteArray, hashFunctions: HashFunctions)
Content copied to clipboard
Types
Functions
decrypt And Hash
Link copied to clipboard
fun decryptAndHash(ciphertext: ByteArray): Pair<SymmetricState, ByteArray>
Content copied to clipboard
encrypt And Hash
Link copied to clipboard
fun encryptAndHash(plaintext: ByteArray): Pair<SymmetricState, ByteArray>
Content copied to clipboard
mix Hash
Link copied to clipboard
mix Key
Link copied to clipboard
split
Link copied to clipboard