CryptoAuthLib
Atmel CryptoAuthentication Library
atcacert_client.h
Go to the documentation of this file.
1 
45 #ifndef ATCACERT_CLIENT_H
46 #define ATCACERT_CLIENT_H
47 
48 #include <stddef.h>
49 #include <stdint.h>
50 #include "atcacert_def.h"
51 
52 // Inform function naming when compiling in C++
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
84 int atcacert_read_cert( const atcacert_def_t* cert_def,
85  const uint8_t ca_public_key[64],
86  uint8_t* cert,
87  size_t* cert_size);
88 
103 int atcacert_get_response( uint8_t device_private_key_slot,
104  const uint8_t challenge[32],
105  uint8_t response[64]);
106 
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif
int atcacert_get_response(uint8_t device_private_key_slot, const uint8_t challenge[32], uint8_t response[64])
Calculates the response to a challenge sent from the host.
Definition: atcacert_client.c:105
Declarations for certificates related to ECC CryptoAuthentication devices. These are the definitions ...
int atcacert_read_cert(const atcacert_def_t *cert_def, const uint8_t ca_public_key[64], uint8_t *cert, size_t *cert_size)
Reads the certificate specified by the certificate definition from the ATECC508A device.
Definition: atcacert_client.c:49
Definition: atcacert_def.h:154