Module pqcrypto_kyber::kyber1024
source · Expand description
kyber1024
These bindings use the clean version from PQClean
§Example
// if using pqcrypto-kyber
use pqcrypto_kyber::kyber1024::*;
// or if using the pqcrypto crate:
// use pqcrypto::kem::kyber1024::*;
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 kyber1024 ciphertext
- Encapsulate to a kyber1024 public key
- Generate a kyber1024 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