123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- #ifndef NRF_CRYPTO_ECDSA_BACKEND_H__
- #define NRF_CRYPTO_ECDSA_BACKEND_H__
- #if !defined(__SDK_DOXYGEN__)
- #include <stdint.h>
- #include <stddef.h>
- #include "sdk_config.h"
- #include "nrf_crypto_ecdsa_shared.h"
- #include "cc310_backend_ecdsa.h"
- #include "cc310_bl_backend_ecdsa.h"
- #include "mbedtls_backend_ecdsa.h"
- #include "oberon_backend_ecdsa.h"
- #include "micro_ecc_backend_ecdsa.h"
- #include "optiga_backend_ecdsa.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !NRF_CRYPTO_ECC_SECP160R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP160R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP160R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp160r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp160r1_verify_context_t;
- #define nrf_crypto_backend_secp160r1_sign NULL
- #define nrf_crypto_backend_secp160r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP160R2_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP160R2_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP160R2_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp160r2_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp160r2_verify_context_t;
- #define nrf_crypto_backend_secp160r2_sign NULL
- #define nrf_crypto_backend_secp160r2_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP192R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP192R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP192R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp192r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp192r1_verify_context_t;
- #define nrf_crypto_backend_secp192r1_sign NULL
- #define nrf_crypto_backend_secp192r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP224R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP224R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP224R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp224r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp224r1_verify_context_t;
- #define nrf_crypto_backend_secp224r1_sign NULL
- #define nrf_crypto_backend_secp224r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP256R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP256R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP256R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp256r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp256r1_verify_context_t;
- #define nrf_crypto_backend_secp256r1_sign NULL
- #define nrf_crypto_backend_secp256r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP384R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP384R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP384R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp384r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp384r1_verify_context_t;
- #define nrf_crypto_backend_secp384r1_sign NULL
- #define nrf_crypto_backend_secp384r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP521R1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP521R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP521R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp521r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp521r1_verify_context_t;
- #define nrf_crypto_backend_secp521r1_sign NULL
- #define nrf_crypto_backend_secp521r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP160K1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP160K1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP160K1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp160k1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp160k1_verify_context_t;
- #define nrf_crypto_backend_secp160k1_sign NULL
- #define nrf_crypto_backend_secp160k1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP192K1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP192K1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP192K1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp192k1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp192k1_verify_context_t;
- #define nrf_crypto_backend_secp192k1_sign NULL
- #define nrf_crypto_backend_secp192k1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP224K1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP224K1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP224K1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp224k1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp224k1_verify_context_t;
- #define nrf_crypto_backend_secp224k1_sign NULL
- #define nrf_crypto_backend_secp224k1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_SECP256K1_ENABLED
- #define NRF_CRYPTO_BACKEND_SECP256K1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_SECP256K1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_secp256k1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_secp256k1_verify_context_t;
- #define nrf_crypto_backend_secp256k1_sign NULL
- #define nrf_crypto_backend_secp256k1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP256R1_ENABLED
- #define NRF_CRYPTO_BACKEND_BP256R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_BP256R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_bp256r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_bp256r1_verify_context_t;
- #define nrf_crypto_backend_bp256r1_sign NULL
- #define nrf_crypto_backend_bp256r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP384R1_ENABLED
- #define NRF_CRYPTO_BACKEND_BP384R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_BP384R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_bp384r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_bp384r1_verify_context_t;
- #define nrf_crypto_backend_bp384r1_sign NULL
- #define nrf_crypto_backend_bp384r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_BP512R1_ENABLED
- #define NRF_CRYPTO_BACKEND_BP512R1_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_BP512R1_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_bp512r1_sign_context_t;
- typedef uint8_t nrf_crypto_backend_bp512r1_verify_context_t;
- #define nrf_crypto_backend_bp512r1_sign NULL
- #define nrf_crypto_backend_bp512r1_verify NULL
- #endif
- #if !NRF_CRYPTO_ECC_CURVE25519_ENABLED
- #define NRF_CRYPTO_BACKEND_CURVE25519_SIGN_CONTEXT_SIZE 0
- #define NRF_CRYPTO_BACKEND_CURVE25519_VERIFY_CONTEXT_SIZE 0
- typedef uint8_t nrf_crypto_backend_curve25519_sign_context_t;
- typedef uint8_t nrf_crypto_backend_curve25519_verify_context_t;
- #define nrf_crypto_backend_curve25519_sign NULL
- #define nrf_crypto_backend_curve25519_verify NULL
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|