Crates.io | sphincs-plus-cry4 |
lib.rs | sphincs-plus-cry4 |
version | 0.1.1 |
source | src |
created_at | 2022-06-07 18:12:23.374435 |
updated_at | 2022-06-07 23:02:05.501295 |
description | Implementation of the SPHINCS+ post-quantum signature scheme |
homepage | |
repository | https://github.com/CRY4-Hash-Based-Signatures/SPHINCS-PLUS |
max_upload_size | |
id | 601622 |
size | 97,210 |
Implementation of the hash based signature scheme SPHINCS+ in Rust. SPHINCS+ is a post-quantum signature scheme, submitted to the NIST-PQ competition. For more information visit: https://sphincs.org/
use sphincs_plus_cry4::{Spx, Spx128fBlakeR};
let message = b"Hi there!";
let spx_instance = Spx::<Spx128fBlakeR>::new(true);
let (sk, pk) = spx_instance.keygen();
let sig = spx_instance.sign(message, &sk);
spx_instance.verify(message, sig, &pk);
To build the benchmark file run:
cargo build --features build-binary --bin benchmark