Module sodiumoxide::crypto::secretbox::xsalsa20poly1305 [−][src]
Expand description
crypto_secretbox_xsalsa20poly1305
, a particular
combination of Salsa20 and Poly1305 specified in
Cryptography in NaCl
.
This function is conjectured to meet the standard notions of privacy and authenticity.
Structs
Key |
|
Nonce |
|
Tag | Authentication |
Constants
KEYBYTES | Number of bytes in |
MACBYTES | Number of bytes in the authenticator tag of an encrypted message i.e. the number of bytes by which the ciphertext is larger than the plaintext. |
NONCEBYTES | Number of bytes in a |
Functions
gen_key |
|
gen_nonce |
|
open |
|
open_detached |
|
seal |
|
seal_detached |
|