Skip to main content

Module classic

Module classic 

Source
Expand description

§Classic API

The Classic API follows libsodium’s interface closely. Use it to port libsodium code or when fixed-size byte arrays and byte slices are a better fit than the Rustaceous types.

Modules§

crypto_aead_chacha20poly1305_ietf
ChaCha20-Poly1305-IETF authenticated encryption
crypto_aead_xchacha20poly1305_ietf
XChaCha20-Poly1305-IETF authenticated encryption
crypto_auth
Secret-key authentication
crypto_auth_hmacsha256
HMAC-SHA-256 authentication
crypto_auth_hmacsha512
HMAC-SHA-512 authentication
crypto_auth_hmacsha512256
HMAC-SHA-512-256 authentication
crypto_box
Public-key authenticated encryption
crypto_core
Core cryptography functions
crypto_generichash
Generic hashing
crypto_hash
Hash functions
crypto_kdf
Key derivation function
crypto_kem
Key encapsulation
crypto_kem_mlkem768
ML-KEM-768 key encapsulation
crypto_kem_xwing
X-Wing hybrid key encapsulation
crypto_kx
Key exchange
crypto_onetimeauth
One-time authentication
crypto_pwhashalloc
Password hashing
crypto_secretbox
Secret-key authenticated encryption
crypto_secretstream_xchacha20poly1305
Secret streams
crypto_shorthash
Short-input hashing
crypto_sign
Public-key signatures
crypto_sign_ed25519
Ed25519 signing helpers
crypto_xof
Extendable-output functions