mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-26 02:15:41 +00:00
Make the driver context union a defined type
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
parent
f763810e58
commit
b1777312da
|
@ -91,7 +91,7 @@ struct psa_hash_operation_s
|
||||||
* ID value zero means the context is not valid or not assigned to
|
* ID value zero means the context is not valid or not assigned to
|
||||||
* any driver (i.e. none of the driver contexts are active). */
|
* any driver (i.e. none of the driver contexts are active). */
|
||||||
unsigned int id;
|
unsigned int id;
|
||||||
union psa_driver_hash_context_u ctx;
|
psa_driver_hash_context_t ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PSA_HASH_OPERATION_INIT {0, {0}}
|
#define PSA_HASH_OPERATION_INIT {0, {0}}
|
||||||
|
|
|
@ -42,13 +42,13 @@
|
||||||
* are formatted as `'drivername'_ctx`. This allows for procedural generation
|
* are formatted as `'drivername'_ctx`. This allows for procedural generation
|
||||||
* of both this file and the content of psa_crypto_driver_wrappers.c */
|
* of both this file and the content of psa_crypto_driver_wrappers.c */
|
||||||
|
|
||||||
union psa_driver_hash_context_u {
|
typedef union {
|
||||||
unsigned dummy; /* Make sure this structure is always non-empty */
|
unsigned dummy; /* Make sure this structure is always non-empty */
|
||||||
mbedtls_psa_hash_operation_t mbedtls_ctx;
|
mbedtls_psa_hash_operation_t mbedtls_ctx;
|
||||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
||||||
test_transparent_hash_operation_t test_ctx;
|
test_transparent_hash_operation_t test_ctx;
|
||||||
#endif
|
#endif
|
||||||
};
|
} psa_driver_hash_context_t;
|
||||||
|
|
||||||
#endif /* PSA_CRYPTO_DRIVER_WRAPPERS_CONTEXTS_H */
|
#endif /* PSA_CRYPTO_DRIVER_WRAPPERS_CONTEXTS_H */
|
||||||
/* End of automatically generated file. */
|
/* End of automatically generated file. */
|
||||||
|
|
Loading…
Reference in a new issue