mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
Adjust layout of some stucts
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@@ -115,10 +115,10 @@ mbedtls_entropy_source_state;
|
|||||||
* \brief Entropy context structure
|
* \brief Entropy context structure
|
||||||
*/
|
*/
|
||||||
typedef struct mbedtls_entropy_context {
|
typedef struct mbedtls_entropy_context {
|
||||||
|
mbedtls_md_context_t MBEDTLS_PRIVATE(accumulator);
|
||||||
int MBEDTLS_PRIVATE(accumulator_started); /* 0 after init.
|
int MBEDTLS_PRIVATE(accumulator_started); /* 0 after init.
|
||||||
* 1 after the first update.
|
* 1 after the first update.
|
||||||
* -1 after free. */
|
* -1 after free. */
|
||||||
mbedtls_md_context_t MBEDTLS_PRIVATE(accumulator);
|
|
||||||
int MBEDTLS_PRIVATE(source_count); /* Number of entries used in source. */
|
int MBEDTLS_PRIVATE(source_count); /* Number of entries used in source. */
|
||||||
mbedtls_entropy_source_state MBEDTLS_PRIVATE(source)[MBEDTLS_ENTROPY_MAX_SOURCES];
|
mbedtls_entropy_source_state MBEDTLS_PRIVATE(source)[MBEDTLS_ENTROPY_MAX_SOURCES];
|
||||||
#if defined(MBEDTLS_THREADING_C)
|
#if defined(MBEDTLS_THREADING_C)
|
||||||
|
@@ -104,9 +104,9 @@ static int key_type_is_raw_bytes(psa_key_type_t type)
|
|||||||
#define RNG_SEEDED 2
|
#define RNG_SEEDED 2
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned initialized : 1;
|
uint8_t initialized;
|
||||||
unsigned rng_state : 2;
|
uint8_t rng_state;
|
||||||
unsigned drivers_initialized : 1;
|
uint8_t drivers_initialized;
|
||||||
mbedtls_psa_random_context_t rng;
|
mbedtls_psa_random_context_t rng;
|
||||||
} psa_global_data_t;
|
} psa_global_data_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user