Crypto timings

Hal Murray hmurray at megapathdsl.net
Sun Jan 29 12:29:39 UTC 2017


This is computing the digest for a password and a 48 byte packet, then 
dropping it on the floor.

The "old" version uses EVP_DigestInit, like the current code in ntpd.
The new version uses EVP_DigestInit_ex and a static context.


Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz

1000000 MD5 encrypts took 0.476 microseconds each
1000000 old SHA1 encrypts took 0.435 microseconds each
1000000 SHA1 encrypts took 0.308 microseconds each


RPi 2

1000000 MD5 encrypts took 5.686 microseconds each
1000000 old SHA1 encrypts took 6.979 microseconds each
1000000 SHA1 encrypts took 4.379 microseconds each


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list