6.2.3 CryptoAuthLib
CryptoAuthLib is a software library that supports Microchip’s family of CryptoAuthentication devices. Microchip recommends working with this library when developing with the ATECC608B-TNGTLS. The library implements the API calls necessary to execute the commands detailed in this data sheet.
The library was implemented to readily work with many of Microchip’s microcontrollers but can easily be extended through a Hardware Abstraction Layer (HAL) to other microcontrollers, including those made by other vendors.
API Calls
Each of the commands in the data sheet have one or more API calls that are associated with them. Typically, there is a base API call of the command where all input parameters can be specified. The parameter shown in the commands and subsections can be used with this command. There are also mode variants of each of the API calls. The table below shows examples of commands and base API calls. For the most accurate API information, refer to the GitHub information.
Device Command | API Call | Comments |
---|---|---|
Info |
atcab_info_base() | |
Write |
atcab_write() | |
Read |
atcab_read_zone() | |
SHA |
atcab_sha_base() | |
Sign |
atcab_sign_base() | |
Random |
atcab_random() | |
Verify |
atcab_verify() |