Hi,
In the sample that I am working on, I need to decrypt the mac appended
plaintext. But while verifying the MAC, I am using the below context to
call PK11_DigestFinal.
PK11_CreateContextBySymKey(CKM_MD5_HMAC, CKA_VERIFY, mk, &noParams);
(where mk is MAC key.)
But the call PK11_DigestFinal is returning -8191 (Library failure). The
code is failing at the below place
in security/nss/lib/pk11wrap/pk11cxt.c
case CKA_VERIFY:
crv=PK11_GETTAB(context->slot)->C_VerifyFinal(context->session,
data,len);
Can someone please advise what could be the cause of the error?
Thanks,
Shailendra
--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto