You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to generate a hmac key by openssl, and then imported the hmac key into the tpm2.After that, I signed the same information using openssl and tpm2 respectively, but the signing results were different!
Here are my codes:
The files should be equal if you use: openssl dgst -sha256 -mac hmac -macopt hexkey:$(xxd -p -c 256 < hmac_key.bin) -out message_hmac_openssl.bin -binary message.txt
I wanted to generate a hmac key by openssl, and then imported the hmac key into the tpm2.After that, I signed the same information using openssl and tpm2 respectively, but the signing results were different!
Here are my codes:
The result is:
The two files have the same size:
What went wrong?
The text was updated successfully, but these errors were encountered: