Skip to contents

Code-based cryptography (decoding random linear codes) is the third PQC family; HQC is NIST's 2025 fourth-round KEM selection, standardized as the backup to ML-KEM precisely so that a lattice break does not strand deployments. Uses liboqs when this build links it (HQC round 4, 64-byte shared secret); otherwise rmoriebricklayer's native HQC-1 (HQC v5.0.0 of 2025-08-22, 32-byte shared secret). The two are different revisions of the scheme, so a key made by one is not read by the other.

Usage

morie_crypto_hqc_keygen()

Value

List with pk and sk raw vectors.

Examples

kp <- morie_crypto_hqc_keygen()
length(kp$pk)
#> [1] 2241
length(kp$sk)
#> [1] 2321