Configure SPHINCS+ parameters and hash functions
masterThe SPHINCS+ implementation is flexible, allowing you to specify parameters and hash functions through configuration files and linking.
- Parameters: You can define custom parameters in a
params.hfile. Predefined parameter sets (targeting NIST security categories 1, 3, and 5) are available inref/params/params-*.h. - Hash Functions: The hash function can be changed by linking with different implementations of
hash.h, such ashash_haraka.c,hash_sha2.c, orhash_shake.c. - Tweakable Hash Functions: You can vary the implementation of
thash.hby choosing between*_robust.cand*_simple.cimplementations.
Configuration is typically managed via the Makefile.