Expand description
sphincs-shake-256s-simple
These bindings use the clean version from PQClean
Example
// if using pqcrypto-sphincsplus
use pqcrypto_sphincsplus::sphincsshake256ssimple::*;
// or if using the pqcrypto crate:
// use pqcrypto::sign::sphincsshake256ssimple::*;
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
- Create a detached signature on the message
- Generate a sphincs-shake-256s-simple keypair
- Open the signed message and if verification succeeds return the message
- Get the number of bytes for a public key
- Get the number of bytes for a secret key
- Sign the message and return the signed message.
- Get the number of bytes that a signature occupies
- Verify the detached signature