123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef NRF_CRYPTO_AEAD_BACKEND_H__
- #define NRF_CRYPTO_AEAD_BACKEND_H__
- #include "cc310_backend_aes_aead.h"
- #include "cc310_backend_chacha_poly_aead.h"
- #include "cifra_backend_aes_aead.h"
- #include "mbedtls_backend_aes_aead.h"
- #include "oberon_backend_chacha_poly_aead.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CCM)
- typedef nrf_crypto_aead_internal_context_t nrf_crypto_backend_aes_ccm_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CCM_STAR)
- typedef nrf_crypto_aead_internal_context_t nrf_crypto_backend_aes_ccm_star_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_EAX)
- typedef nrf_crypto_aead_internal_context_t nrf_crypto_backend_aes_eax_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_AES_GCM)
- typedef nrf_crypto_aead_internal_context_t nrf_crypto_backend_aes_gcm_context_t;
- #endif
- #if !NRF_MODULE_ENABLED(NRF_CRYPTO_CHACHA_POLY)
- typedef nrf_crypto_aead_internal_context_t nrf_crypto_backend_chacha_poly_context_t;
- #endif
- typedef union
- {
- nrf_crypto_backend_aes_ccm_context_t ccm_context;
- nrf_crypto_backend_aes_ccm_star_context_t ccm_star_context;
- nrf_crypto_backend_aes_eax_context_t eax_context;
- nrf_crypto_backend_aes_gcm_context_t gcm_context;
- nrf_crypto_backend_chacha_poly_context_t chacha_poly_context;
- } nrf_crypto_backend_aead_context_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
|