Expand description

key defines structures which represent cryptographic keys, and provides some generic code to implement basic operations like encryption and decryption.

Structs

In this module’s terminology, a Key is a cryptographic key of any type which is suitable to use for encryption (i.e., is has not been wrapped).
A cryptographic nonce is an arbitrary number that can be used only once (e.g. for encryption).

Constants

xsalsa20poly1305 uses 32 byte keys.
This module uses xsalsa20poly1305, whose nonces are 24 bytes long.
xsalsa20poly1305 authenticator tags are 16 bytes.

Traits

An AbstractKey is any cryptographic structure which supports encryption and decryption.