psa: cipher: Move to driver operation context application allocation
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
6e412a71ee
commit
7cb9c3d360
7 changed files with 167 additions and 208 deletions
|
@ -31,6 +31,7 @@
|
|||
|
||||
/* Include the context structure definitions for the Mbed TLS software drivers */
|
||||
#include "psa/crypto_builtin_hash.h"
|
||||
#include "psa/crypto_builtin_cipher.h"
|
||||
|
||||
/* 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.
|
||||
|
@ -47,5 +48,17 @@ typedef union {
|
|||
#endif
|
||||
} psa_driver_hash_context_t;
|
||||
|
||||
typedef union {
|
||||
unsigned dummy; /* Make sure this structure is always non-empty */
|
||||
mbedtls_psa_cipher_operation_t mbedtls_ctx;
|
||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
||||
mbedtls_transparent_test_driver_cipher_operation_t
|
||||
transparent_test_driver_ctx;
|
||||
|
||||
mbedtls_opaque_test_driver_cipher_operation_t
|
||||
opaque_test_driver_ctx;
|
||||
#endif
|
||||
} psa_driver_cipher_context_t;
|
||||
|
||||
#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_H */
|
||||
/* End of automatically generated file. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue