Conversation
A driver program to run blake2b or any other hash function and measure the cycles/hash for various input lengths Output can be plotted with gnuplot
Use openssl's MD5 for benchmarking comparison with blake2b
Add a #ifdef to call blake2b while benchmarking
Add benchmarking output Add build and bin folders
258f443 to
49b0f67
Compare
| @@ -0,0 +1,10 @@ | |||
| #include <openssl/md5.h> | |||
There was a problem hiding this comment.
Given that MD5 is not exactly used anymore, how about comparing with SHA1/SHA256? (I know that blake is supposed to compete with the speed of MD5, so this test is cool, but another test to compare performance with algorithms that are actually used would be great.)
There was a problem hiding this comment.
The present structure makes it pretty easy to add other functions. I'll add in SHA1/SHA256 comparisons too.
| @@ -0,0 +1,10 @@ | |||
| #include <openssl/md5.h> | |||
There was a problem hiding this comment.
Comparing to openssl is great but comparing to NSS as well would be even greater 😄 . This will also help you getting used to NSS' "interesting" interfaces. You can check [1] and [2] on how to use NSS for hashing.
[1] https://searchfox.org/nss/source/cmd/digest/digest.c#91
[2] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_sample_code/NSS_Sample_Code_sample3
There was a problem hiding this comment.
Haha, I'll add in comparisons from other NSS implementations too
| @@ -0,0 +1,19 @@ | |||
| #maxx can hold values [0,4096] | |||
Addresses #5