Reputation: 5793
Where can I find OpenSSL implementation of improved sha1 hashing based on 64 bit instruction set. It is an alternative implementation of this. I tried to find it in my /usr/inclusde
and /usr/lib/
but could not get it. It seems it is an add-on to OpenSSL (openssl-addons/intel-accel/
) but does not come with OpenSSL package. Also how to use it in place of OpenSSL 's usual SHA-1?
Upvotes: 3
Views: 1158
Reputation: 1948
The SSE3-optimized version of SHA-1 is already part of OpenSSL 1.0.1
, no need for add-ons. Just make sure that you compile it with assembler routines (not generic C).
Just for your reference: the optimized implementation of SHA-1 is in files crypto/sha/asm/sha1-586.pl
and crypto/sha/asm/sha1-x86_64.pl
in the openssl 1.0.1 tarball.
Upvotes: 3