[][src]Module pqcrypto_mqdss::mqdss48

mqdss-48

These bindings use the clean version from PQClean

Example

use pqcrypto_mqdss::mqdss48::*;
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 mqdss-48 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