Skip to contents

Phase 3JJJ2. Generates a post-quantum key encapsulation keypair. Sizes: pk = 1184 bytes, sk = 2400 bytes.

Usage

morie_crypto_mlkem768_keygen()

Value

List with pk (raw, 1184 B) and sk (raw, 2400 B).

Examples

if (morie_crypto_liboqs_available()) {
  kp <- morie_crypto_mlkem768_keygen()
  c(pk = length(kp$pk), sk = length(kp$sk))
}