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 with liboqs, 32 B natively).

Examples

kp <- morie_crypto_hqc_keygen()
enc <- morie_crypto_hqc_encaps(kp$pk)
str(enc)
#> List of 2
#>  $ ct           : raw [1:4433] cf f4 bc fe ...
#>  $ shared_secret: raw [1:32] 79 20 99 38 ...