kem library

Functions

cryptokemdec(Uint8List ss, Uint8List c, Uint8List sk) int
Decapsulates the shared secret ss from ciphertext c using private key sk.
cryptokemenc(Uint8List c, Uint8List ss, Uint8List pk) int
Encapsulates a shared secret ss using public key pk and produces ciphertext c.
cryptokemkeypair(Uint8List pk, Uint8List sk) int
Generates a Kyber key pair consisting of a public key pk and a private key sk.