Expand description
Runtime dispatch entry points for sign/verify, key agreement, KEM, and AEAD.
Functions§
- aead_
decrypt - Decrypt and authenticate
ciphertext || tagwith the selected AEAD. The returned plaintext is zeroized on drop. - aead_
encrypt - Encrypt
plaintextwith the selected AEAD. Returnsciphertext || 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
msgwithsecretunder the selected signature algorithm, returning the detached signature bytes. - verify
- Verify a detached signature.