mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-28 12:47:13 +09:00
Make it explicit that aes256gcm_statebytes() returns a rounded value
No actual changes to the returned value
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user