Skip to main content

Module registry

Module registry 

Source
Expand description

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

Functions§

derive_keypair
Reconstruct a raw keypair for the given algorithm from existing secret material.
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.