qemu-patch-raspberry4/include/crypto
Daniel P. Berrange 59b060be18 crypto: use uint64_t for pbkdf iteration count parameters
The qcrypto_pbkdf_count_iters method uses a 64 bit int
but then checks its value against INT32_MAX before
returning it. This bounds check is premature, because
the calling code may well scale the iteration count
by some value. It is thus better to return a 64-bit
integer and let the caller do range checking.

For consistency the qcrypto_pbkdf method is also changed
to accept a 64bit int, though this is somewhat academic
since nettle is limited to taking an 'int' while gcrypt
is limited to taking a 'long int'.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-09-19 16:30:42 +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 uint64_t for pbkdf iteration count parameters 2016-09-19 16:30:42 +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