1 Apr 2003 09:31
AES and SHA-1 timing
Marcus Watts <mdw <at> umich.edu>
2003-04-01 07:31:22 GMT
2003-04-01 07:31:22 GMT
I'm still trying to understand Raeburn's claim that he can get do pbkdf2 in slightly under 1 second don a 300 Mhz pentium II. But I now have a strong hunch. I think he must be linking against a fairly recent version of openssl, and using the sha-1 code from there. That is a super souped up assembler version (generated by a perl script) which I believe is especially optimized for the pentium II. My belief is that if he were using the sha-1 code in the MIT kerberos 5 distribution, that he would see much more leisurely string to key conversion times, like 4-5 seconds. For what it's worth, in the process of understanding this, I wrote an assembly version and compared the speed of various versions of stuff. My best assembly version is here: http://www-personal.umich.edu/~mdw/shs.tar I got more interested in this after I discovered that the latest heimdal snapshot had AES in it, and it's faster than what I had. How embarassing. Here are timings I got for SHA-1 on various machines -- probably more interesting for relative value since I don't know the clock rates on some: SHA-1, microseconds to hash N bytes mdw assembler k5 C openssl 0.9.7a N 16 8192 16 8192 16 8192 486 86 9147 141 17080 98 10350 pentII 6.36 607 8.83 1147 4.45 541 athlon 1.7 169 (2.4 280)* pent4/M 1.21 101 4.08 526 1.59 168 * = openssl 0.9.6(Continue reading)
RSS Feed