Use memset() instead of a cast

This commit is contained in:
Frank Denis 2015-11-26 18:21:31 +01:00
parent 04a59d0bb0
commit 9a2a278715

View File

@ -782,7 +782,7 @@ crypto_aead_aes256gcm_decrypt_afternm(unsigned char *m, unsigned long long *mlen
return -1;
}
}
*(uint32_t *) &n2[12] = 0;
memset(&n2[12], 0, sizeof (uint32_t));
COUNTER_INC2(n2);
LOOPDRND128;
LOOPDRMD128;