From 8b4be964531919de33f46947321e5426c579c6c4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 18 Oct 2015 10:33:32 +0200 Subject: [PATCH] Make it explicit that aes256gcm_statebytes() returns a rounded value No actual changes to the returned value --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 533d0970..31f12dae 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -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