[−][src]Module pqcrypto_dilithium::dilithium2
dilithium2
These bindings use the clean version from PQClean
Example
use pqcrypto_dilithium::dilithium2::*; 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 | |
keypair | Generate a dilithium2 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 |