CryptoAuthLib
Atmel CryptoAuthentication Library
atca_crypto_sw_ecdsa.h
Go to the documentation of this file.
1 
43 #ifndef ATCA_CRYPTO_SW_ECDSA_H
44 #define ATCA_CRYPTO_SW_ECDSA_H
45 
46 #include "atca_crypto_sw.h"
47 #include <stddef.h>
48 #include <stdint.h>
49 
58 #define ATCA_ECC_P256_FIELD_SIZE (256 / 8)
59 #define ATCA_ECC_P256_PRIVATE_KEY_SIZE (ATCA_ECC_P256_FIELD_SIZE)
60 #define ATCA_ECC_P256_PUBLIC_KEY_SIZE (ATCA_ECC_P256_FIELD_SIZE * 2)
61 #define ATCA_ECC_P256_SIGNATURE_SIZE (ATCA_ECC_P256_FIELD_SIZE * 2)
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
68  const uint8_t signature[ATCA_ECC_P256_SIGNATURE_SIZE],
69  const uint8_t public_key[ATCA_ECC_P256_PUBLIC_KEY_SIZE]);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
76 #endif
int atcac_sw_ecdsa_verify_p256(const uint8_t msg[ATCA_ECC_P256_FIELD_SIZE], const uint8_t signature[ATCA_ECC_P256_SIGNATURE_SIZE], const uint8_t public_key[ATCA_ECC_P256_PUBLIC_KEY_SIZE])
return software generated ECDSA verification result
Definition: atca_crypto_sw_ecdsa.c:53
#define ATCA_ECC_P256_FIELD_SIZE
Definition: atca_crypto_sw_ecdsa.h:58
Common defines for CryptoAuthLib software crypto wrappers.
#define ATCA_ECC_P256_SIGNATURE_SIZE
Definition: atca_crypto_sw_ecdsa.h:61
#define ATCA_ECC_P256_PUBLIC_KEY_SIZE
Definition: atca_crypto_sw_ecdsa.h:60