Module crypto

Module crypto 

Source

Structs§

PublicKey
A crypto_box public key.
Random
SecretKey
A crypto_box secret key.

Constants§

CRYPTO_NONCE_SIZE
CRYPTO_PUBLIC_KEY_SIZE
CRYPTO_SECRET_KEY_SIZE
CRYPTO_TAG_SIZE

Traits§

Rng

Functions§

decrypt
encrypt
generate_secret_key
public_key
secret_key
test_sodium_crypto

Type Aliases§

SalsaBox
CryptoBox instantiated with with the Salsa20 stream cipher.