Struct kuska_handshake::KeyNonce [−][src]
pub struct KeyNonce { /* fields omitted */ }
Expand description
A pair of key and nonce used for encryption/decryption of every message in the boxstream.
Implementations
Derives the sender and receiver KeyNonce
from a HandshakeComplete
. Returns
(key_nonce_send, key_nonce_recv)
.
Increments the nonce value by one. The nonce value is encoded/decoded in big endian, following the boxstream spec.