Skip to content

Commit daad433

Browse files
committed
1)updated HMAC function
1 parent 159acba commit daad433

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/platform/Infineon/crypto/trustm/CHIPCryptoPALHsm_HMAC_trustm.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,13 @@ CHIP_ERROR HMAC_sha::HMAC_SHA256(const uint8_t * key, size_t key_length, const u
9696
return error;
9797
#endif
9898
}
99+
100+
CHIP_ERROR HMAC_sha::HMAC_SHA256(const Hmac128KeyHandle & key, const uint8_t * message, size_t message_length, uint8_t * out_buffer,
101+
size_t out_length)
102+
{
103+
return HMAC_SHA256(key.As<Symmetric128BitsKeyByteArray>(), sizeof(Symmetric128BitsKeyByteArray), message, message_length,
104+
out_buffer, out_length);
105+
}
106+
99107
} // namespace Crypto
100108
} // namespace chip

0 commit comments

Comments
 (0)