Expand description

dilithium5

These bindings use the clean version from PQClean

Example

// if using pqcrypto-dilithium
use pqcrypto_dilithium::dilithium5::*;
// or if using the pqcrypto crate:
// use pqcrypto::sign::dilithium5::*;
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

Functions