aes.h: add comment for round key buffer in aes context

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-05-05 14:46:04 +08:00
parent 4a7fdffa5e
commit 8b9877bad7

View File

@ -77,7 +77,9 @@ typedef struct mbedtls_aes_context {
size_t MBEDTLS_PRIVATE(rk_offset); /*!< The offset in array elements to AES
round keys in the buffer. */
#if defined(MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH) && !defined(MBEDTLS_PADLOCK_C)
uint32_t MBEDTLS_PRIVATE(buf)[44];
uint32_t MBEDTLS_PRIVATE(buf)[44]; /*!< Aligned data buffer to hold
round keys in the 128-bit case for
10 rounds calculation. */
#else
uint32_t MBEDTLS_PRIVATE(buf)[68]; /*!< Unaligned data buffer. This buffer can
hold 32 extra Bytes, which can be used for