Module sodiumoxide::crypto::aead::xchacha20poly1305_ietf [−][src]
Expand description
The XChaCha20-Poly1305 construction can safely encrypt a practically unlimited number of messages with the same key, without any practical limit to the size of the message (up to ~ 2^64 bytes).
As an alternative to counters, its large nonce size (192-bit) allows random nonces to be safely used
For this reason, and if interoperability with other libraries is not a concern, this is the recommended AEAD construction.
Structs
Key |
|
Nonce |
|
Tag | Authentication |
Constants
KEYBYTES | Number of bytes in a |
NONCEBYTES | Number of bytes in a |
TAGBYTES | Number of bytes in an authentication |
Functions
gen_key |
|
gen_nonce |
|
open |
|
open_detached |
|
seal |
|
seal_detached |
|