From ef1417bc2f6976dd1976d487f807c2cf7967bea1 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 9 Oct 2015 09:48:34 +0200 Subject: [PATCH] Explicit cast --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index b1d879e9..925a1fda 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -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); }