Module sodiumoxide::crypto::box_::curve25519xsalsa20poly1305
[−]
[src]
crypto_box_curve25519xsalsa20poly1305
, a particular
combination of Curve25519, Salsa20, and Poly1305 specified in
Cryptography in NaCl.
This function is conjectured to meet the standard notions of privacy and third-party unforgeability.
Structs
Nonce |
|
PrecomputedKey |
Applications that send several messages to the same receiver can gain speed by
splitting |
PublicKey |
|
SecretKey |
|
Constants
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 |
PRECOMPUTEDKEYBYTES |
Number of bytes in a |
PUBLICKEYBYTES |
Number of bytes in a |
SECRETKEYBYTES |
Number of bytes in a |
Functions
gen_keypair |
|
gen_nonce |
|
open |
|
open_precomputed |
|
precompute |
|
seal |
|
seal_precomputed |
|