123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef NRF_CRYPTO_AES_BACKEND_H__
- #define NRF_CRYPTO_AES_BACKEND_H__
- #include "cc310_backend_aes.h"
- #include "mbedtls_backend_aes.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CBC)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_cbc_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CFB)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_cfb_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CTR)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_ctr_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_ECB)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_ecb_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CBC_MAC)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_cbc_mac_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CMAC)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_cmac_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CMAC_PRF128)
- typedef nrf_crypto_aes_internal_context_t nrf_crypto_backend_aes_cmac_prf128_context_t;
- #endif
- typedef union
- {
- nrf_crypto_backend_aes_cbc_context_t cbc_context;
- nrf_crypto_backend_aes_cfb_context_t cfb_context;
- nrf_crypto_backend_aes_ctr_context_t ctr_context;
- nrf_crypto_backend_aes_ecb_context_t ecb_context;
- nrf_crypto_backend_aes_cbc_mac_context_t cbc_mac_context;
- nrf_crypto_backend_aes_cmac_context_t cmac_context;
- nrf_crypto_backend_aes_cmac_prf128_context_t cmac_prf128_context;
- } nrf_crypto_backend_aes_context_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
|