#post-quantum #hash #sphincs #plus

bin+lib sphincs-plus-cry4

Implementation of the SPHINCS+ post-quantum signature scheme

2 releases

Uses new Rust 2021

0.1.1 Jun 7, 2022
0.1.0 Jun 7, 2022

#519 in Cryptography

MIT license

80KB
1.5K SLoC

SPHINCS-PLUS

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/

Usage

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);

Benchmark

To build the benchmark file run:

cargo build --features build-binary --bin benchmark

Dependencies

~3.5MB
~67K SLoC