nivalis 0.3.2

A typestate-driven, pure-Rust implementation of the Noise Protocol Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Constants used by the lib

/// The maximum length of a message as defined
/// in the protocol.
pub const MAX_MESSAGE_LEN: usize = 65535;

/// The key length length used by all encryption
/// algorithms.
pub const ENCRYPTION_KEY_LEN: usize = 32;

/// The length in bytes of the nonce passed
/// to the AEAD cipher (96 bits)
pub const NONCE_LEN: usize = 12;

/// The length of the tag generated by the 
/// AEAD cipher (128 bits)
pub const TAG_LEN: usize = 16;