CryptoAuthLib
Microchip CryptoAuthentication Library
atca_basic_derivekey.c File Reference

CryptoAuthLib Basic API methods for DeriveKey command. More...

#include "atca_basic.h"
#include "atca_execution.h"

Functions

ATCA_STATUS atcab_derivekey (uint8_t mode, uint16_t target_key, const uint8_t *mac)
 Executes the DeviveKey command for deriving a new key from a nonce (TempKey) and an existing key. More...
 

Detailed Description

CryptoAuthLib Basic API methods for DeriveKey command.

The DeriveKey command combines the current value of a key with the nonce stored in TempKey using SHA-256 and derives a new key.

Note
List of devices that support this command - ATSHA204A, ATECC108A, ATECC508A, and ATECC608A. There are differences in the modes that they support. Refer to device datasheets for full details.