CryptoAuthLib
Microchip CryptoAuthentication Library
atca_mbedtls_wrap.h
Go to the documentation of this file.
1 
28 #ifndef _ATCA_MBEDTLS_WRAP_H_
29 #define _ATCA_MBEDTLS_WRAP_H_
30 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 struct mbedtls_pk_context;
43 struct mbedtls_x509_crt;
44 struct atcacert_def_s;
45 
46 /* Wrapper Functions */
47 int atca_mbedtls_pk_init(struct mbedtls_pk_context * pkey, const uint16_t slotid);
48 int atca_mbedtls_cert_add(struct mbedtls_x509_crt * cert, const struct atcacert_def_s * cert_def);
49 
50 /* Application Callback definitions */
51 
57 
62 int atca_mbedtls_ecdh_ioprot_cb(uint8_t secret[32]);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
70 #endif /* _ATCA_MBEDTLS_WRAP_H_ */
int atca_mbedtls_cert_add(struct mbedtls_x509_crt *cert, const struct atcacert_def_s *cert_def)
int atca_mbedtls_ecdh_slot_cb(void)
ECDH Callback to obtain the "slot" used in ECDH operations from the application.
int atca_mbedtls_pk_init(struct mbedtls_pk_context *pkey, const uint16_t slotid)
Initializes an mbedtls pk context for use with EC operations.
Definition: atca_mbedtls_wrap.c:105
int atca_mbedtls_ecdh_ioprot_cb(uint8_t secret[32])
ECDH Callback to obtain the IO Protection secret from the application.
Definition: atcacert_def.h:149