Skip to main content

Key

Type Alias Key 

Source
pub type Key = Array<u8, U32>;
Expand description

Key type (256-bits/32-bytes).

Implemented as an alias for Array.

All ChaChaPoly1305 variants (including XChaCha20Poly1305) use this key type.

Aliased Type§

#[repr(transparent)]
pub struct Key(pub [u8; 32]);

Tuple Fields§

§0: [u8; 32]