Module pqcrypto_ntru::ntruhps40961229[][src]

Expand description

ntruhps40961229

These bindings use the clean version from PQClean

Example

use pqcrypto_ntru::ntruhps40961229::*;
let (pk, sk) = keypair();
let (ss1, ct) = encapsulate(&pk);
let ss2 = decapsulate(&ct, &sk);
assert!(ss1 == ss2);

Structs

Functions

Get the number of bytes for the encapsulated ciphertext

Decapsulate the received ntruhps40961229 ciphertext

Encapsulate to a ntruhps40961229 public key

Generate a ntruhps40961229 keypair

Get the number of bytes for a public key

Get the number of bytes for a secret key

Get the number of bytes for the shared secret