Symmetry

data class Symmetry(val cipher: Cipher, val key: Symmetry.ChainingKey, val handshakeHash: Symmetry.HandshakeHash)(source)

Encompasses all Noise protocol symmetric cryptography state required during handshakes.

Constructors

Link copied to clipboard
constructor(cipher: Cipher, key: Symmetry.ChainingKey, handshakeHash: Symmetry.HandshakeHash)

Types

Link copied to clipboard
value class ChainingKey(val digest: Digest)
Link copied to clipboard
object Companion
Link copied to clipboard
value class HandshakeHash(val digest: Digest)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun mixHash(data: Data): Symmetry
Link copied to clipboard
fun mixKey(sharedSecret: SharedSecret): Symmetry
Link copied to clipboard