Fix use of enum in a bitfield

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-06-24 14:29:25 +01:00
parent 85a88133aa
commit eb65fec023

View file

@ -278,13 +278,15 @@ typedef struct mbedtls_cipher_info_t {
/** Index to LUT for base cipher information and functions. */ /** Index to LUT for base cipher information and functions. */
uint8_t MBEDTLS_PRIVATE(base_idx) : 5; uint8_t MBEDTLS_PRIVATE(base_idx) : 5;
/** Full cipher identifier. For example, /** Full cipher identifier (as per mbedtls_cipher_type_t).
* MBEDTLS_CIPHER_AES_256_CBC. * For example, MBEDTLS_CIPHER_AES_256_CBC.
*/ */
mbedtls_cipher_type_t MBEDTLS_PRIVATE(type) : 7; uint8_t MBEDTLS_PRIVATE(type) : 7;
/** The cipher mode. For example, MBEDTLS_MODE_CBC. */ /** The cipher mode (as per mbedtls_cipher_mode_t).
mbedtls_cipher_mode_t MBEDTLS_PRIVATE(mode) : 4; * For example, MBEDTLS_MODE_CBC.
*/
uint8_t MBEDTLS_PRIVATE(mode) : 4;
/** The cipher key length, in bits. This is the /** The cipher key length, in bits. This is the
* default length for variable sized ciphers. * default length for variable sized ciphers.