Skip to main content
Visitor II
November 9, 2022
Question

Cannot figure out how to set the HMAC on the STSAFE-A110

  • November 9, 2022
  • 1 reply
  • 1045 views

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.

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);

How are we supposed to establish the shared HMAC key? What is the expected format of pInData?

The HMAC key should be "write once". Once the HMAC key is established, we should not be able to change it.

    This topic has been closed for replies.

    1 reply

    CWein.1Author
    Visitor II
    November 9, 2022