CryptoAuthLib
Microchip CryptoAuthentication Library
atcacert_host_hw.h
Go to the documentation of this file.
1 
27 #ifndef ATCACERT_HOST_HA_H
28 #define ATCACERT_HOST_HA_H
29 
30 #include <stddef.h>
31 #include <stdint.h>
32 #include "atcacert_def.h"
33 
34 // Inform function naming when compiling in C++
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
63 int atcacert_verify_cert_hw(const atcacert_def_t* cert_def,
64  const uint8_t* cert,
65  size_t cert_size,
66  const uint8_t ca_public_key[64]);
67 
68 
77 int atcacert_gen_challenge_hw(uint8_t challenge[32]);
78 
79 
97 int atcacert_verify_response_hw(const uint8_t device_public_key[64],
98  const uint8_t challenge[32],
99  const uint8_t response[64]);
100 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif
int atcacert_verify_cert_hw(const atcacert_def_t *cert_def, const uint8_t *cert, size_t cert_size, const uint8_t ca_public_key[64])
Verify a certificate against its certificate authority&#39;s public key using the host&#39;s ATECC device for...
Definition: atcacert_host_hw.c:36
int atcacert_gen_challenge_hw(uint8_t challenge[32])
Generate a random challenge to be sent to the client using the RNG on the host&#39;s ATECC device...
Definition: atcacert_host_hw.c:75
Declarations for certificates related to ECC CryptoAuthentication devices. These are the definitions ...
Definition: atcacert_def.h:149
int atcacert_verify_response_hw(const uint8_t device_public_key[64], const uint8_t challenge[32], const uint8_t response[64])
Verify a client&#39;s response to a challenge using the host&#39;s ATECC device for crypto functions...
Definition: atcacert_host_hw.c:86