mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 09:55:06 +00:00
psa: driver contexts: Fix include order and wrapping
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
1f0db80c78
commit
9198e8c259
|
@ -30,8 +30,8 @@
|
||||||
* declared during the autogeneration process. */
|
* declared during the autogeneration process. */
|
||||||
|
|
||||||
/* Include the context structure definitions for the Mbed TLS software drivers */
|
/* Include the context structure definitions for the Mbed TLS software drivers */
|
||||||
#include "psa/crypto_builtin_hash.h"
|
|
||||||
#include "psa/crypto_builtin_cipher.h"
|
#include "psa/crypto_builtin_cipher.h"
|
||||||
|
#include "psa/crypto_builtin_hash.h"
|
||||||
|
|
||||||
/* Define the context to be used for an operation that is executed through the
|
/* Define the context to be used for an operation that is executed through the
|
||||||
* PSA Driver wrapper layer as the union of all possible driver's contexts.
|
* PSA Driver wrapper layer as the union of all possible driver's contexts.
|
||||||
|
@ -52,11 +52,8 @@ typedef union {
|
||||||
unsigned dummy; /* Make sure this structure is always non-empty */
|
unsigned dummy; /* Make sure this structure is always non-empty */
|
||||||
mbedtls_psa_cipher_operation_t mbedtls_ctx;
|
mbedtls_psa_cipher_operation_t mbedtls_ctx;
|
||||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
||||||
mbedtls_transparent_test_driver_cipher_operation_t
|
mbedtls_transparent_test_driver_cipher_operation_t transparent_test_driver_ctx;
|
||||||
transparent_test_driver_ctx;
|
mbedtls_opaque_test_driver_cipher_operation_t opaque_test_driver_ctx;
|
||||||
|
|
||||||
mbedtls_opaque_test_driver_cipher_operation_t
|
|
||||||
opaque_test_driver_ctx;
|
|
||||||
#endif
|
#endif
|
||||||
} psa_driver_cipher_context_t;
|
} psa_driver_cipher_context_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue