123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- #ifndef NRF_CRYPTO_ECDH_BACKEND_H__
- #define NRF_CRYPTO_ECDH_BACKEND_H__
- #if !defined(__SDK_DOXYGEN__)
- #include <stdint.h>
- #include <stddef.h>
- #include "sdk_errors.h"
- #include "sdk_config.h"
- #include "nrf_crypto_ecc.h"
- #include "nrf_crypto_ecdh_shared.h"
- #include "cc310_backend_ecdh.h"
- #include "cc310_bl_backend_ecdh.h"
- #include "mbedtls_backend_ecdh.h"
- #include "oberon_backend_ecdh.h"
- #include "micro_ecc_backend_ecdh.h"
- #include "optiga_backend_ecdh.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !NRF_CRYPTO_ECC_SECP160R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp160r1_ecdh_context_t;
- #define nrf_crypto_backend_secp160r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP160R2_ENABLED
- typedef uint32_t nrf_crypto_backend_secp160r2_ecdh_context_t;
- #define nrf_crypto_backend_secp160r2_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP192R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp192r1_ecdh_context_t;
- #define nrf_crypto_backend_secp192r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP224R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp224r1_ecdh_context_t;
- #define nrf_crypto_backend_secp224r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP256R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp256r1_ecdh_context_t;
- #define nrf_crypto_backend_secp256r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP384R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp384r1_ecdh_context_t;
- #define nrf_crypto_backend_secp384r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP521R1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp521r1_ecdh_context_t;
- #define nrf_crypto_backend_secp521r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP160K1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp160k1_ecdh_context_t;
- #define nrf_crypto_backend_secp160k1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP192K1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp192k1_ecdh_context_t;
- #define nrf_crypto_backend_secp192k1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP224K1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp224k1_ecdh_context_t;
- #define nrf_crypto_backend_secp224k1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP256K1_ENABLED
- typedef uint32_t nrf_crypto_backend_secp256k1_ecdh_context_t;
- #define nrf_crypto_backend_secp256k1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP256R1_ENABLED
- typedef uint32_t nrf_crypto_backend_bp256r1_ecdh_context_t;
- #define nrf_crypto_backend_bp256r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP384R1_ENABLED
- typedef uint32_t nrf_crypto_backend_bp384r1_ecdh_context_t;
- #define nrf_crypto_backend_bp384r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP512R1_ENABLED
- typedef uint32_t nrf_crypto_backend_bp512r1_ecdh_context_t;
- #define nrf_crypto_backend_bp512r1_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_CURVE25519_ENABLED
- typedef uint32_t nrf_crypto_backend_curve25519_ecdh_context_t;
- #define nrf_crypto_backend_curve25519_ecdh_compute NULL
- #endif
- #if !NRF_CRYPTO_ECC_ED25519_ENABLED
- typedef uint32_t nrf_crypto_backend_ed25519_ecdh_context_t;
- #define nrf_crypto_backend_ed25519_ecdh_compute NULL
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|