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

DigestFinal method throws ARGUMENTS_BAD error #30

Open
paulmgtech opened this issue Nov 6, 2020 · 0 comments
Open

DigestFinal method throws ARGUMENTS_BAD error #30

paulmgtech opened this issue Nov 6, 2020 · 0 comments

Comments

@paulmgtech
Copy link

Hi

Got below Error:
Exception in thread "main" org.pkcs11.jacknji11.CKRException: 0x00000007: ARGUMENTS_BAD
at org.pkcs11.jacknji11.CE.DigestFinal(CE.java:1162)
at org.pkcs11.jacknji11.CE.DigestFinal(CE.java:1174)
at org.pkcs11.jacknji11.Test.main(Test.java:190)
C_DigestFinal failed with error CKR_ARGUMENTS_BAD : 0x00000007

When I run:
CE.DigestInit(session, new CKM(CKM.SHA256));
CE.DigestUpdate(session, new byte[50]);
CE.DigestUpdate(session, new byte[50]);
byte[] digested2 = CE.DigestFinal(session);

Can you help me out to fix this issue.

HSM Details:

version=2.40
manufacturerID="Cavium Networks"
libraryDescription="Cavium PKCS#11 Interface "
libraryVersion=1.0

Regards
Paul V

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