CryptoAuthLib v3.7.8
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
symmetric_authentication.c File Reference

Contains API for performing the symmetric Authentication between the Host and the device. More...

Functions

ATCA_STATUS symmetric_authenticate (uint8_t slot, const uint8_t *master_key, const uint8_t *rand_number)
 Function which does the authentication between the host and device.
 

Detailed Description

Contains API for performing the symmetric Authentication between the Host and the device.

Function Documentation

◆ symmetric_authenticate()

ATCA_STATUS symmetric_authenticate ( uint8_t  slot,
const uint8_t *  master_key,
const uint8_t *  rand_number 
)

Function which does the authentication between the host and device.

Parameters
[in]slotThe slot number used for the symmetric authentication.
[in]master_keyThe master key used for the calculating the symmetric key.
[in]rand_numberThe 20 byte rand_number from the host.
Returns
ATCA_SUCCESS on successful authentication, otherwise an error code.