SymmetricState

data class SymmetricState(cipherState: CipherState, ck: ByteArray, h: ByteArray, hashFunctions: HashFunctions)

Parameters

cipherState

cipher state

ck

chaining key

h

hash

hashFunctions

hash functions

Constructors

SymmetricState
Link copied to clipboard
common
fun SymmetricState(cipherState: CipherState, ck: ByteArray, h: ByteArray, hashFunctions: HashFunctions)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

decryptAndHash
Link copied to clipboard
common
fun decryptAndHash(ciphertext: ByteArray): Pair<SymmetricState, ByteArray>
encryptAndHash
Link copied to clipboard
common
fun encryptAndHash(plaintext: ByteArray): Pair<SymmetricState, 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
mixHash
Link copied to clipboard
common
fun mixHash(data: ByteArray): SymmetricState
mixKey
Link copied to clipboard
common
fun mixKey(inputKeyMaterial: ByteArray): SymmetricState
split
Link copied to clipboard
common
fun split(): Triple<CipherState, CipherState, ByteArray>

Properties

cipherState
Link copied to clipboard
common
val cipherState: CipherState
ck
Link copied to clipboard
common
val ck: ByteArray
h
Link copied to clipboard
common
val h: ByteArray
hashFunctions
Link copied to clipboard
common
val hashFunctions: HashFunctions