xemu/include/crypto
Daniel P. Berrange e74aabcffb crypto: use correct derived key size when timing pbkdf
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 iteration, instead of 1.

Instead we should pass in the desired key size to the
timing routine that matches the key size that will be
used for real later.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-09-19 16:30:45 +01:00
..
aes.h crypto: aes: always rename internal symbols 2016-06-13 12:41:17 +01:00
afsplit.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
block.h crypto: add support for querying parameters for block encryption 2016-07-26 17:46:37 +02:00
cipher.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
desrfb.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
hash.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
init.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
ivgen.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
pbkdf.h crypto: use correct derived key size when timing pbkdf 2016-09-19 16:30:45 +01:00
random.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
secret.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
tlscreds.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tlscredsanon.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tlscredsx509.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
tlssession.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
xts.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00