CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
tng_atcacert_client.h File Reference

Client side certificate I/O functions for TNG devices. More...

#include <stdint.h>
#include "atcacert/atcacert.h"

Functions

int tng_atcacert_max_device_cert_size (size_t *max_cert_size)
 Return the maximum possible certificate size in bytes for a TNG device certificate. Certificate can be variable size, so this gives an appropriate buffer size when reading the certificate.
 
int tng_atcacert_read_device_cert (uint8_t *cert, size_t *cert_size, const uint8_t *signer_cert)
 Reads the device certificate for a TNG device.
 
int tng_atcacert_device_public_key (uint8_t *public_key, uint8_t *cert)
 Reads the device public key.
 
int tng_atcacert_max_signer_cert_size (size_t *max_cert_size)
 Return the maximum possible certificate size in bytes for a TNG signer certificate. Certificate can be variable size, so this gives an appropriate buffer size when reading the certificate.
 
int tng_atcacert_read_signer_cert (uint8_t *cert, size_t *cert_size)
 Reads the signer certificate for a TNG device.
 
int tng_atcacert_signer_public_key (uint8_t *public_key, uint8_t *cert)
 Reads the signer public key.
 
int tng_atcacert_root_cert_size (size_t *cert_size)
 Get the size of the TNG root cert.
 
int tng_atcacert_root_cert (uint8_t *cert, size_t *cert_size)
 Get the TNG root cert.
 
int tng_atcacert_root_public_key (uint8_t *public_key)
 Gets the root public key.
 

Detailed Description

Client side certificate I/O functions for TNG devices.