Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid signature using HMAC_GENERAL #2

Open
syedelec opened this issue May 31, 2016 · 0 comments
Open

Invalid signature using HMAC_GENERAL #2

syedelec opened this issue May 31, 2016 · 0 comments

Comments

@syedelec
Copy link

Hi,

I have a problem with the PKCS11 test sign_and_verify for CKM_SHA256_HMAC_GENERAL. the C_Verify function fails with Invalid Signature. In fact, the function C_Verify uses the GlobalPlatoform function TEE_MACCompareFinal to compute the MAC and compare with the one provided in argument.

However with the CKM_SHA256_HMAC_GENERAL mechanism, the truncated MAC is provided to the TEE_MACCompareFinal which cause a failure because calculated MAC and the truncated MAC will be different.

Is this a problem in the test or am I missing something ?
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant