Module pqcrypto_hqc::hqc128

source ·
Expand description

hqc-128

These bindings use the clean version from PQClean

Example

// if using pqcrypto-hqc
use pqcrypto_hqc::hqc128::*;
// or if using the pqcrypto crate:
// use pqcrypto::kem::hqc128::*;
let (pk, sk) = keypair();
let (ss1, ct) = encapsulate(&pk);
let ss2 = decapsulate(&ct, &sk);
assert!(ss1 == ss2);

Structs

Functions