Skip to contents

HQC-128 encapsulation

Usage

morie_crypto_hqc_encaps(pk)

Arguments

pk

Recipient's HQC-128 public key.

Value

List with ct and shared_secret (raw, 64 B).

Examples

if (morie_crypto_liboqs_available()) {
  kp <- try(morie_crypto_hqc_keygen(), silent = TRUE)
  if (!inherits(kp, "try-error")) {
    enc <- morie_crypto_hqc_encaps(kp$pk)
    str(enc)
  }
}