Remove incorrect and useless cast

This commit is contained in:
Frank Denis 2017-12-11 19:54:10 +01:00
parent a204bf504c
commit bdca518edc

View File

@ -22,7 +22,7 @@ main(void)
k = (unsigned char *) sodium_malloc(crypto_secretbox_KEYBYTES);
mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES);
crypto_secretbox_keygen(k);
randombytes_buf(m, (unsigned long long) mlen);
randombytes_buf(m, mlen);
randombytes_buf(nonce, crypto_secretbox_NONCEBYTES);
crypto_secretbox_easy(c, m, (unsigned long long) mlen, nonce, k);
if (crypto_secretbox_open_easy(