34 #ifndef PSA_CRYPTO_DRIVER_CONTEXTS_COMPOSITES_H
35 #define PSA_CRYPTO_DRIVER_CONTEXTS_COMPOSITES_H
45 #if defined(MBEDTLS_TEST_LIBTESTDRIVER1)
46 #include <libtestdriver1/include/psa/crypto.h>
49 #if defined(PSA_CRYPTO_DRIVER_TEST)
50 #if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
51 defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_MAC)
52 typedef libtestdriver1_mbedtls_psa_mac_operation_t
53 mbedtls_transparent_test_driver_mac_operation_t;
54 typedef libtestdriver1_mbedtls_psa_mac_operation_t
55 mbedtls_opaque_test_driver_mac_operation_t;
57 #define MBEDTLS_TRANSPARENT_TEST_DRIVER_MAC_OPERATION_INIT \
58 LIBTESTDRIVER1_MBEDTLS_PSA_MAC_OPERATION_INIT
59 #define MBEDTLS_OPAQUE_TEST_DRIVER_MAC_OPERATION_INIT \
60 LIBTESTDRIVER1_MBEDTLS_PSA_MAC_OPERATION_INIT
64 mbedtls_transparent_test_driver_mac_operation_t;
66 mbedtls_opaque_test_driver_mac_operation_t;
68 #define MBEDTLS_TRANSPARENT_TEST_DRIVER_MAC_OPERATION_INIT \
69 MBEDTLS_PSA_MAC_OPERATION_INIT
70 #define MBEDTLS_OPAQUE_TEST_DRIVER_MAC_OPERATION_INIT \
71 MBEDTLS_PSA_MAC_OPERATION_INIT
75 #if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
76 defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_AEAD)
77 typedef libtestdriver1_mbedtls_psa_aead_operation_t
78 mbedtls_transparent_test_driver_aead_operation_t;
80 #define MBEDTLS_TRANSPARENT_TEST_DRIVER_AEAD_OPERATION_INIT \
81 LIBTESTDRIVER1_MBEDTLS_PSA_AEAD_OPERATION_INIT
84 mbedtls_transparent_test_driver_aead_operation_t;
86 #define MBEDTLS_TRANSPARENT_TEST_DRIVER_AEAD_OPERATION_INIT \
87 MBEDTLS_PSA_AEAD_OPERATION_INIT
103 #if defined(PSA_CRYPTO_DRIVER_TEST)
104 mbedtls_transparent_test_driver_mac_operation_t transparent_test_driver_ctx;
105 mbedtls_opaque_test_driver_mac_operation_t opaque_test_driver_ctx;
112 #if defined(PSA_CRYPTO_DRIVER_TEST)
113 mbedtls_transparent_test_driver_aead_operation_t transparent_test_driver_ctx;
mbedtls_psa_mac_operation_t mbedtls_ctx
Definitions for all PSA crypto drivers.
mbedtls_psa_aead_operation_t mbedtls_ctx