Efficient Computation of Hash Functions

Lopes, Raul H. C., Franqueira, Virginia Nunes Leal and Hobson, Peter (2013) Efficient Computation of Hash Functions. In: 20th International Conference on Computing In High Energy and Nuclear Physics (CHEP2013), 14-18 October 2013, Amsterdam, The Netherlands.

[thumbnail of Abstract]
PDF (Abstract) - Published Version
Available under License Creative Commons Attribution Non-commercial.


Official URL: https://indico.cern.ch/contributionDisplay.py?cont...


The performance of hash function computations can impose a significant workload on SSL/TLS authentication servers. In the WLCG this workload shows also in the computation of data transfers checksums. It has been shown in the EGI grid infrastructure that the checksum computation can double the IO load for large file transfers leading to an increase in re-transfers and timeout errors. Storage managers like SToRM try to reduce that impact by computing the checksum during the transfer. That may not be feasible, however, when multiple transfer streams are combined with the use of hashes like MD-5 or SHA-2. We present two alternatives to reduce the hash computation load. First we introduce implementations for the Fast SHA-256 and SHA-512 that can reduce the number of cycles per second of a hash computation from 15 to under 11. Secondly we introduce and evaluate parallel implementations for two novel hash tree functions: NIST SHA-3 Keccak and Skein. These functions were conceived to take advantage of parallel data transfers and their deployment can significantly reduce the timeout and re-transfer errors mentioned above.

Repository Staff Only: item control page