Module crypto

Source
Expand description

Libsodium wrappers.

Structs§

Curve25519Public
EC public key.
Curve25519Secret
EC secret key.
HmacSha256Key
HMAC key
HmacSha256Mac
HMAC mac.
KeyPair
The secret and public key pair of the account.
PublicKey
The public key of the account.
SecretKey
The secret key of the account.

Functions§

hash
Compute sha256 hash of m.
init
Initialize the sodium library and chooses faster version of the primitives if possible.
random_bytes
Generate size random bytes.