From a2e2fce60d19a659f9519b1cf5aa95024e0dbcf2 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Sat, 24 Jun 2023 14:44:27 +0100 Subject: [PATCH] Fix accidental mis-named field Signed-off-by: Dave Rodgman --- include/mbedtls/cipher.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h index 39579d547..1e89aff27 100644 --- a/include/mbedtls/cipher.h +++ b/include/mbedtls/cipher.h @@ -307,7 +307,7 @@ typedef struct mbedtls_cipher_info_t { uint8_t MBEDTLS_PRIVATE(flags) : 2; /** The block size, in bytes. */ - uint8_t MBEDTLS_PRIVATE(block_size2) : 2; + uint8_t MBEDTLS_PRIVATE(block_size) : 2; } mbedtls_cipher_info_t; @@ -548,7 +548,7 @@ static inline size_t mbedtls_cipher_info_get_block_size( return 0; } - int packed = info->MBEDTLS_PRIVATE(block_size2); + int packed = info->MBEDTLS_PRIVATE(block_size); return (size_t) (MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed)); } @@ -690,7 +690,7 @@ static inline unsigned int mbedtls_cipher_get_block_size( return 0; } - int packed = ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(block_size2); + int packed = ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(block_size); return (unsigned int) MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed); }