Paper 2012/067

Parallelizing message schedules to accelerate the computations of hash functions

Shay Gueron and Vlad Krasnov

Abstract

This paper describes an algorithm for accelerating the computations of Davies-Meyer based hash functions. It is based on parallelizing the computation of several message schedules for several message blocks of a given message. This parallelization, together with the proper use of vector processor instructions (SIMD) improves the overall algorithm’s performance. Using this method, we obtain a new software implementation of SHA-256 that performs at 12.11 Cycles/Byte on the 2nd and 10.84 Cycles/Byte on the 3rd Generation Intel® Core™ processors. We also show how to extend the method to the soon-to-come AVX2 architecture, which has wider registers. Since processors with AVX2 will be available only in 2013, exact performance reporting is not yet possible. Instead, we show that our resulting SHA-256 and SHA-512 implementations have a reduced number of instructions. Based on our findings, we make some observations on the SHA3 competition. We argue that if the prospective SHA3 standard is expected to be competitive against the performance of SHA-256 or SHA-512, on the high end platforms, then its performance should be well below 10 Cycles/Byte on the current, and certainly on the near future processors. Not all the SHA3 finalists have this performance. Furthermore, even the fastest finalists will probably offer only a small performance advantage over the current SHA-256 and SHA-512 implementations.

Note: Section 7.1, “Reflections on the SHA3 competition” was updated, and includes the performance of a faster version of Grøstl512 (brought to our attention by Martin Schläffer of the Grøstl team). The Appendix includes full details on sources and compilation, to allow reproducing all of the results quoted in the paper.

Metadata
Available format(s)
PDF
Publication info
Published elsewhere. Unknown where it was published
Keywords
SHA-256SHA-512SHA3 competitionSIMD architectureAdvanced Vector Extensions architecturesAVXAVX2.
Contact author(s)
shay @ math haifa ac il
History
2012-06-05: last of 2 revisions
2012-02-23: received
See all versions
Short URL
https://ia.cr/2012/067
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2012/067,
      author = {Shay Gueron and Vlad Krasnov},
      title = {Parallelizing message schedules to accelerate the computations of hash functions},
      howpublished = {Cryptology ePrint Archive, Paper 2012/067},
      year = {2012},
      note = {\url{https://eprint.iacr.org/2012/067}},
      url = {https://eprint.iacr.org/2012/067}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.