1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Add explicit cast

This commit is contained in:
Frank Denis 2017-12-03 21:02:17 +01:00
parent 8ad6ffa9d6
commit cdd7d5f37d

View File

@ -3170,7 +3170,7 @@ tv(void)
found_message_len = 1;
if (crypto_aead_aes256gcm_decrypt(decrypted, &found_message_len,
NULL, ciphertext,
randombytes_uniform(ciphertext_len),
randombytes_uniform((uint32_t) ciphertext_len),
ad, ad_len, nonce, key) != -1) {
printf("Verification of test vector #%u after truncation succeeded\n",
(unsigned int) i);