User Tools

Site Tools


public:the_performance_of_sha256_and_sha512_algorithms_as_implemented_by_openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
public:the_performance_of_sha256_and_sha512_algorithms_as_implemented_by_openssl [2020/09/22 00:05] fangfufupublic:the_performance_of_sha256_and_sha512_algorithms_as_implemented_by_openssl [2020/09/23 10:36] (current) fangfufu
Line 1: Line 1:
 ====== The performance of SHA256 and SHA512 algorithms as implemented by OpenSSL ====== ====== The performance of SHA256 and SHA512 algorithms as implemented by OpenSSL ======
-https://eprint.iacr.org/2010/548.pdf+SHA256 and SHA512 are both cryptographic hash algorithms. They are used for detecting whether data had been modified. The digest size SHA256 and SHA512 are 256 bit and 512 bit respectively. SHA512 is more resistant to attacks compared to SHA256. However, interestingly enough, under x86-64 architecture, it is faster to compute SHA512 compared to SHA256. The reason is detailed in [[https://eprint.iacr.org/2010/548.pdf|this paper]]. 
 + 
 +Below are the performance metrics from some of the machines I have. If you are not on x86-64, it is faster to use SHA256.  
 <code> <code>
 $ uname -a; grep -m 1 'model name' /proc/cpuinfo; openssl speed -evp sha256 sha512 $ uname -a; grep -m 1 'model name' /proc/cpuinfo; openssl speed -evp sha256 sha512
public/the_performance_of_sha256_and_sha512_algorithms_as_implemented_by_openssl.1600733117.txt.gz · Last modified: 2020/09/22 00:05 by fangfufu