CryptoAuthLib
Atmel CryptoAuthentication Library
atcacert_host_hw.h
Go to the documentation of this file.
1 
41 #ifndef ATCACERT_HOST_HA_H
42 #define ATCACERT_HOST_HA_H
43 
44 #include <stddef.h>
45 #include <stdint.h>
46 #include "atcacert_def.h"
47 
48 // Inform function naming when compiling in C++
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
77 int atcacert_verify_cert_hw( const atcacert_def_t* cert_def,
78  const uint8_t* cert,
79  size_t cert_size,
80  const uint8_t ca_public_key[64]);
81 
90 int atcacert_gen_challenge_hw(uint8_t challenge[32]);
91 
109 int atcacert_verify_response_hw( const uint8_t device_public_key[64],
110  const uint8_t challenge[32],
111  const uint8_t response[64]);
112 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif
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's ATECC device...
Definition: atcacert_host_hw.c:74
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's response to a challenge using the host's ATECC device for crypto functions...
Definition: atcacert_host_hw.c:82
Declarations for certificates related to ECC CryptoAuthentication devices. These are the definitions ...
Definition: atcacert_def.h:154
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's public key using the host's ATECC device for...
Definition: atcacert_host_hw.c:46