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

Creates a new KeyNonce from a key and a nonce.

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.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.