Skip to main content

Module registry

Module registry 

Source
Expand description

Runtime dispatch entry points for sign/verify, key agreement, KEM, and AEAD.

Functions§

aead_decrypt
Decrypt and authenticate ciphertext || tag with the selected AEAD. The returned plaintext is zeroized on drop.
aead_encrypt
Encrypt plaintext with the selected AEAD. Returns ciphertext || tag.
derive_shared_secret
Derive a Diffie–Hellman shared secret. The returned secret zeroizes on drop.
generate_keypair
Generate a raw keypair for the given algorithm.
kem_decapsulate
Decapsulate a KEM ciphertext. The returned shared secret zeroizes on drop.
kem_encapsulate
Returns (shared_secret, ciphertext); the shared secret zeroizes on drop.
sign
Sign msg with secret under the selected signature algorithm, returning the detached signature bytes.
verify
Verify a detached signature.