[−][src]Module pqcrypto::kem::mceliece348864
mceliece348864
These bindings use the vec version from PQClean
Example
use pqcrypto_classicmceliece::mceliece348864::*; let (pk, sk) = keypair(); let (ss1, ct) = encapsulate(&pk); let ss2 = decapsulate(&ct, &sk); assert!(ss1 == ss2);
Structs
Ciphertext | |
PublicKey | |
SecretKey | |
SharedSecret |
Functions
ciphertext_bytes | Get the number of bytes for the encapsulated ciphertext |
decapsulate | Decapsulate the received mceliece348864 ciphertext |
encapsulate | Encapsulate to a mceliece348864 public key |
keypair | Generate a mceliece348864 keypair |
public_key_bytes | Get the number of bytes for a public key |
secret_key_bytes | Get the number of bytes for a secret key |
shared_secret_bytes | Get the number of bytes for the shared secret |