kem library
Functions
-
cryptokemdec(
Uint8List ss, Uint8List c, Uint8List sk) → int -
Decapsulates the shared secret
ss
from ciphertextc
using private keysk
. -
cryptokemenc(
Uint8List c, Uint8List ss, Uint8List pk) → int -
Encapsulates a shared secret
ss
using public keypk
and produces ciphertextc
. -
cryptokemkeypair(
Uint8List pk, Uint8List sk) → int -
Generates a Kyber key pair consisting of a public key
pk
and a private keysk
.