indcpa library
Functions
-
indcpadec(
Uint8List m, Uint8List c, Uint8List sk) → void - Decapsulates a ciphertext to recover the original message using the secret key.
-
indcpaenc(
Uint8List c, Uint8List m, Uint8List pk, Uint8List coins) → void -
Encapsulates a shared secret
musing public keypkandcoins.cmust be a pre-allocated array of at least lengthKYBER_POLYVECCOMPRESSEDBYTES + KYBER_POLYCOMPRESSEDBYTES. -
indcpakeypair(
Uint8List pk, Uint8List sk) → void - Generates an IND-CPA keypair.