Re: HMAC Benchmark

2017-03-19 Thread Jeffrey Walton


On Sunday, March 19, 2017 at 4:59:44 PM UTC-4, Abderrahim HAJJI SOUALFI 
wrote:
>
> Thanks Jeff for your answer.
> I run the Benchmark test(cryptest.exe b 3 2.0 > benchmark.html). I 
> had just 1 variant result :
>
>  
>
> So I add those lines, in bench1.cpp file, to have all the statistics, but 
> I have an exception message: “ CryptoPP::Exception caught: 
> ObjectFactoryRegistry: could not find factory for algorithm HMAC(SHA265)” 
>

The original benchmark commit was 
https://github.com/weidai11/cryptopp/commit/ce38a411fc5324a2 in March 8, 
2017.

SHA-256 was added to Hash_DRBG and HAMC_DRBG at 
https://github.com/weidai11/cryptopp/commit/ef7a6a2f4e1ad29d on March 11, 
2017.

You should probably perform a 'git pull' and then rebuild.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HMAC Benchmark

2017-03-19 Thread Abderrahim HAJJI SOUALFI


Thanks Jeff for your answer.
I run the Benchmark test(cryptest.exe b 3 2.0 > benchmark.html). I had just 
1 variant result :



 

So I add those lines, in bench1.cpp file, to have all the statistics, but I 
have an exception message: “ CryptoPP::Exception caught: 
ObjectFactoryRegistry: could not find factory for algorithm HMAC(SHA265)” :




-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HMAC Benchmark

2017-03-19 Thread Abderrahim HAJJI SOUALFI


Thanks Jeff for your answer.
I run the Benchmark test(cryptest.exe b 3 2.0 > benchmark.html). I had just 
1 variant result :



 

So I add those lines, in bench1.cpp file, to have all the statistics, but I 
have an exception message: “ CryptoPP::Exception caught: 
ObjectFactoryRegistry: could not find factory for algorithm HMAC(SHA265)” :





Le samedi 18 mars 2017 01:22:03 UTC, Jeffrey Walton a écrit :
>
>
> I want to know a benchmark comparison of the HMAC(*keyed-hash message 
>> authentication code*) variants: HMAC-SHA-1, HMAC-SHA-224, HMAC-SHA-256, 
>> HMAC-SHA-384 and HMAC-SHA-512.
>>
>> I will use it in ad hoc case, and I want choose the right one!
>>
>> Thanks in advance.
>>
>
> https://www.cryptopp.com/wiki/Gnumakefile#Running_Benchmarks
>
> If you have a Goldmont microarchitecture with the SHA extensions, then 
> SHA-1 will run at about 3 cycles per byte; and SHA-256 will run around 4 or 
> 5 cycles per byte.
>
> Jeff
>
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HMAC Benchmark

2017-03-17 Thread Jeffrey Walton


> I want to know a benchmark comparison of the HMAC(*keyed-hash message 
> authentication code*) variants: HMAC-SHA-1, HMAC-SHA-224, HMAC-SHA-256, 
> HMAC-SHA-384 and HMAC-SHA-512.
>
> I will use it in ad hoc case, and I want choose the right one!
>
> Thanks in advance.
>

https://www.cryptopp.com/wiki/Gnumakefile#Running_Benchmarks

If you have a Goldmont microarchitecture with the SHA extensions, then 
SHA-1 will run at about 3 cycles per byte; and SHA-256 will run around 4 or 
5 cycles per byte.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


HMAC Benchmark

2017-03-17 Thread Abderrahim HAJJI SOUALFI


Hi

I want to know a benchmark comparison of the HMAC(*keyed-hash message 
authentication code*) variants: HMAC-SHA-1, HMAC-SHA-224, HMAC-SHA-256, 
HMAC-SHA-384 and HMAC-SHA-512.

I will use it in ad hoc case, and I want choose the right one!

Thanks in advance.

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.