Re-order mbedtls_cipher_info_t
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h
index 95bdf2d..7e73e29 100644
--- a/include/mbedtls/cipher.h
+++ b/include/mbedtls/cipher.h
@@ -272,6 +272,12 @@
* mbedtls_cipher_info_from_psa().
*/
typedef struct mbedtls_cipher_info_t {
+ /** Name of the cipher. */
+ const char *MBEDTLS_PRIVATE(name);
+
+ /** Struct for base cipher information and functions. */
+ const mbedtls_cipher_base_t *MBEDTLS_PRIVATE(base);
+
/** Full cipher identifier. For example,
* MBEDTLS_CIPHER_AES_256_CBC.
*/
@@ -286,9 +292,6 @@
*/
uint16_t MBEDTLS_PRIVATE(key_bitlen);
- /** Name of the cipher. */
- const char *MBEDTLS_PRIVATE(name);
-
/** IV or nonce size, in Bytes.
* For ciphers that accept variable IV sizes,
* this is the recommended size.
@@ -304,9 +307,6 @@
/** The block size, in bytes. */
uint8_t MBEDTLS_PRIVATE(block_size) : 5;
- /** Struct for base cipher information and functions. */
- const mbedtls_cipher_base_t *MBEDTLS_PRIVATE(base);
-
} mbedtls_cipher_info_t;
/**