Explicit cast

This commit is contained in:
Frank Denis 2015-10-09 09:48:34 +02:00
parent 41c296fcf8
commit ef1417bc2f

View File

@ -463,7 +463,8 @@ crypto_aead_aes256gcm_aesni_encrypt(unsigned char *c,
crypto_aead_aes256gcm_aesni_beforenm(&ctx, k);
return crypto_aead_aes256gcm_aesni_encrypt_afternm
(c, clen_p, m, mlen, ad, adlen, nsec, npub, &ctx);
(c, clen_p, m, mlen, ad, adlen, nsec, npub,
(const crypto_aead_aes256gcm_aesni_state *) &ctx);
}
int
@ -482,5 +483,6 @@ crypto_aead_aes256gcm_aesni_decrypt(unsigned char *m,
crypto_aead_aes256gcm_aesni_beforenm(&ctx, k);
return crypto_aead_aes256gcm_aesni_decrypt_afternm
(m, mlen_p, nsec, c, clen, ad, adlen, npub, &ctx);
(m, mlen_p, nsec, c, clen, ad, adlen, npub,
(const crypto_aead_aes256gcm_aesni_state *) &ctx);
}