CryptoAuthLib
Atmel CryptoAuthentication Library
atcacert_host_sw.h
Go to the documentation of this file.
1 
43 #ifndef ATCACERT_HOST_SOFT_H
44 #define ATCACERT_HOST_SOFT_H
45 
46 #include <stddef.h>
47 #include <stdint.h>
48 #include "atcacert_def.h"
49 
50 // Inform function naming when compiling in C++
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
77 int atcacert_verify_cert_sw( 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 
89 int atcacert_gen_challenge_sw( uint8_t challenge[32] );
90 
105 int atcacert_verify_response_sw( const uint8_t device_public_key[64],
106  const uint8_t challenge[32],
107  const uint8_t response[64]);
108 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif
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's response to a challenge using software crypto functions.
Definition: atcacert_host_sw.c:82
int atcacert_gen_challenge_sw(uint8_t challenge[32])
Generate a random challenge to be sent to the client using a software PRNG.
Definition: atcacert_host_sw.c:74
Declarations for certificates related to ECC CryptoAuthentication devices. These are the definitions ...
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's public key using software crypto functions...
Definition: atcacert_host_sw.c:47
Definition: atcacert_def.h:154