Module pqcrypto_falcon::falcon1024[][src]

falcon-1024

These bindings use the clean version from PQClean

Example

use pqcrypto_falcon::falcon1024::*;
let message = vec![0, 1, 2, 3, 4, 5];
let (pk, sk) = keypair();
let sm = sign(&message, &sk);
let verifiedmsg = open(&sm, &pk).unwrap();
assert!(verifiedmsg == message);

Structs

DetachedSignature
PublicKey
SecretKey
SignedMessage

Functions

detached_sign

Create a detached signature on the message

keypair

Generate a falcon-1024 keypair

open
public_key_bytes

Get the number of bytes for a public key

secret_key_bytes

Get the number of bytes for a secret key

sign

Sign the message and return the signed message.

signature_bytes

Get the number of bytes that a signature occupies

verify_detached_signature

Verify the detached signature