Raised when message authentication fails.
Raised when attempting to deserialize a malformed key or nonce.
Phantom type indicating that the key is public.
Phantom type indicating that the key is secret.
Phantom type indicating that the key is composed of a secret key and a public key. Such a key must be treated as a secret key.
Primitive used by this implementation.
Currently "curve25519xsalsa20poly1305"
.
Size of public keys, in bytes.
Size of secret keys, in bytes.
Size of channel keys, in bytes.
Size of nonces, in bytes.
fast_box_open ck c n
verifies and decrypts a ciphertext c
using
the channel key ck
precomputed from receiver's secret key
and the sender's public key, and a nonce n
.
If authenticity of message cannot be verified, Verification_failure
is raised.
Primitive used by this implementation. Currently "curve25519"
.
Size of group elements, in bytes.
Size of integers, in bytes.