Re: [Qemu-devel] [PATCH 3/6] crypto: use correct derived key size when timing pbkdf

2016-09-08 Thread Eric Blake
On 09/08/2016 11:27 AM, Daniel P. Berrange wrote: > Currently when timing the pbkdf algorithm a fixed key > size of 32 bytes is used. This results in inaccurate > timings for certain hashes depending on their digest > size. For example when using sha1 with aes-256, this > causes us to measure time

[Qemu-devel] [PATCH 3/6] crypto: use correct derived key size when timing pbkdf

2016-09-08 Thread Daniel P. Berrange
Currently when timing the pbkdf algorithm a fixed key size of 32 bytes is used. This results in inaccurate timings for certain hashes depending on their digest size. For example when using sha1 with aes-256, this causes us to measure time for the master key digest doing 2 sha1 operations per iterat