HMAC digest doesn't match expected (STM3221G-EVAL)
I just purchased the STM3221G-EVAL board and I am working through some examples. I am currently using running the HMAC example and it runs fine. However I am unable to get the HMAC to match the test vectors provided in the specification (https://tools.ietf.org/html/rfc2202).
Specifically for the following:
test_case = 1
key = 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
key_len = 20
data = "Hi There"
data_len = 8
digest = 0xb617318655057264e28bc0b6fb378c8ef146be00
But I get a completely different digest.
Any ideas?
Many thanks in advance.