Cannot figure out how to set the HMAC on the STSAFE-A110
I am trying to use MAC with my STSAFE-A110, in order to further restrict access.
I would have expected a function similar to establishing a public key, i.e. StSafeA_PutPublicKeySlot(...), but I can only find StSafeA_PutAttribute.
Are we really supposed to setup the symmetric HMAC key with PutAttribute?
StSafeA_ResponseCode_t StSafeA_PutAttribute(
StSafeA_Handle_t *pStSafeA,
uint8_t InAttributeTag, // e.g. STSAFEA_TAG_HOST_KEY_SLOT
const uint8_t *pInData,
uint16_t InDataSize,
uint8_t InMAC);The HMAC key should be "write once". Once the HMAC key is established, we should not be able to change it.
