CryptoAuthLib
Microchip CryptoAuthentication Library
atca_crypto_sw_ecdsa.h
Go to the documentation of this file.
1 
29 #ifndef ATCA_CRYPTO_SW_ECDSA_H
30 #define ATCA_CRYPTO_SW_ECDSA_H
31 
32 #include "atca_crypto_sw.h"
33 #include <stddef.h>
34 #include <stdint.h>
35 
44 #define ATCA_ECC_P256_FIELD_SIZE (256 / 8)
45 #define ATCA_ECC_P256_PRIVATE_KEY_SIZE (ATCA_ECC_P256_FIELD_SIZE)
46 #define ATCA_ECC_P256_PUBLIC_KEY_SIZE (ATCA_ECC_P256_FIELD_SIZE * 2)
47 #define ATCA_ECC_P256_SIGNATURE_SIZE (ATCA_ECC_P256_FIELD_SIZE * 2)
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
54  const uint8_t signature[ATCA_ECC_P256_SIGNATURE_SIZE],
55  const uint8_t public_key[ATCA_ECC_P256_PUBLIC_KEY_SIZE]);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
62 #endif
#define ATCA_ECC_P256_SIGNATURE_SIZE
Definition: atca_crypto_sw_ecdsa.h:47
Common defines for CryptoAuthLib software crypto wrappers.
#define ATCA_ECC_P256_PUBLIC_KEY_SIZE
Definition: atca_crypto_sw_ecdsa.h:46
#define ATCA_ECC_P256_FIELD_SIZE
Definition: atca_crypto_sw_ecdsa.h:44
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 and the function is currently not implemented ...
Definition: atca_crypto_sw_ecdsa.c:39