CryptoAuthLib
Microchip CryptoAuthentication Library
atcacert_host_sw.h
Go to the documentation of this file.
1 
29 #ifndef ATCACERT_HOST_SOFT_H
30 #define ATCACERT_HOST_SOFT_H
31 
32 #include <stddef.h>
33 #include <stdint.h>
34 #include "atcacert_def.h"
35 
36 // Inform function naming when compiling in C++
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 
64 int atcacert_verify_cert_sw(const atcacert_def_t* cert_def,
65  const uint8_t* cert,
66  size_t cert_size,
67  const uint8_t ca_public_key[64]);
68 
69 
70 
78 int atcacert_gen_challenge_sw(uint8_t challenge[32]);
79 
80 
81 
82 
97 int atcacert_verify_response_sw(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_gen_challenge_sw(uint8_t challenge[32])
Generate a random challenge to be sent to the client using a software PRNG.The function is currently ...
Definition: atcacert_host_sw.c:75
int atcacert_verify_response_sw(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 software crypto functions.The function is currently n...
Definition: atcacert_host_sw.c:87
Declarations for certificates related to ECC CryptoAuthentication devices. These are the definitions ...
Definition: atcacert_def.h:149
int atcacert_verify_cert_sw(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 software crypto functions...
Definition: atcacert_host_sw.c:38