Skip to content
/ haraka Public

Haraka is a secure and efficient short-input hash function.

License

Notifications You must be signed in to change notification settings

kste/haraka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haraka v2

Haraka v2 is a secure and efficient short-input (256 or 512 bits) hash function, designed to be very fast on modern platforms which support AES-NI. One of the main applications for such a design is the use in hash-based signature schemes like XMSS and SPHINCS. For more information see our paper.

This repository provides various implementations in code/. In code/c/aesni_optimized, one can find an implementation processing 4 or 8 blocks in parallel.

Performance

The performance is measured in cycles per byte (cpb) processed. The following numbers correspond to Intel Skylake using the optimized implementation.

Variant 1x 4x 8x
Haraka256 0.72 cpb 0.63 cpb 0.63 cpb
Haraka512 1.02 cpb 0.72 cpb 0.72 cpb

SPHINCS

SPHINCS is a post-quantum secure hash-based digital signature scheme. The performance of SPHINCS strongly correlates with the performance of the underlying hash function and can be significantly improved by using an optimized construction.

A SPHINCS implementation instantiated with Haraka can be found in supercop/crypto_sign/, which can also be used for benchmarks with Supercop.

This optimized implementation has the following perfomance figures on Intel Skylake:

Operation Cycles
KeyGeneration 1.340.338
Signing 20.782.894
Verify 415.586

Reference

Haraka v2 - Efficient Short-Input Hashing for Post-Quantum Applications

Stefan Kölbl and Martin M. Lauridsen and Florian Mendel and Christian Rechberger https://eprint.iacr.org/2016/098

About

Haraka is a secure and efficient short-input hash function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published