Make it explicit that aes256gcm_statebytes() returns a rounded value

No actual changes to the returned value
This commit is contained in:
Frank Denis 2015-10-18 10:33:32 +02:00
parent 143e1c1a14
commit 8b4be96453

View File

@ -838,7 +838,7 @@ crypto_aead_aes256gcm_abytes(void)
size_t
crypto_aead_aes256gcm_statebytes(void)
{
return sizeof(crypto_aead_aes256gcm_state);
return (sizeof(crypto_aead_aes256gcm_state) + (size_t) 15U) & ~(size_t) 15U;
}
#else