Expand description
§kyberlib-wasm
WebAssembly bindings for kyberlib. Exposes the KEM API
(keypair, encapsulate, decapsulate) and the parameter
constants as JS-callable functions via wasm-bindgen.
Split out from the main kyberlib crate in v0.0.7 (issue #144) so
the safe core has no wasm-bindgen dependency and can stay
#![forbid(unsafe_code)] under default features.
Structs§
- Kex
- Represents Kyber encapsulated shared secret.
- Keys
- Represents Kyber key pair.
- Params
- Represents Kyber parameters.
Functions§
- decapsulate
- Decapsulate a ciphertext using the provided secret key.
- encapsulate
- Encapsulate a shared secret using the provided public key.
- keypair
- Generate a key pair for Kyber encryption.