Putting Wings on SPHINCS
SPHINCS is a recently proposed stateless hash-based signature scheme and promising candidate for a post-quantum secure digital signature scheme. This repository contains optimized implementations of the cryptographic hash functions for both ARM and x86 which are used to instantiate SPHINCS with (for more details see the paper):
- ChaCha12: The original proposal for SPHINCS.
- Haraka: An AES-based short-input hash function.
- Keccak: Using the 800-bit permutation and 12 rounds.
- SHA256: The SHA256 standard.
- Simpira: An AES-based permutation.
All implementations utilize the available crypto extensions on the current AMD, ARM and Intel platforms.
The number of cycles to generate one signature are
|Primitive||Intel Haswell||Intel Skylake||AMD Ryzen||ARM Cortex A57||ARM Cortex A72|
The ARM code can be used to cross-compile binaries which run the SPHINCS benchmarks, while the x86 code can be directly used with SUPERCOP.
Note that this code should NOT be used in production and its sole purpose is to evaluate the performance of instantiating SPHINCS with different cryptographic hash functions.