-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hi,
I am using Cavium PCIe card for my HSM implementation.
I can't load token using:
CE.InitToken(INITSLOT, SO_PIN, "PARTITION_2".getBytes());
It's throwing below error:
11:49:23.743 [main] DEBUG com.hsm.rest.pkcs11.jacknji11.C - > C_InitToken slotID=1 pin=*** label="PARTITION_2 "
11:49:23.747 [main] DEBUG com.hsm.rest.pkcs11.jacknji11.C - < C_InitToken rv=0x00000007{ARGUMENTS_BAD}
Exception in thread "main" com.hsm.rest.pkcs11.jacknji11.CKRException: 0x00000007: ARGUMENTS_BAD
at com.hsm.rest.pkcs11.jacknji11.CE.InitToken(CE.java:273)
at org.pkcs11.jacknji11.Test.main(Test.java:163)
SDK Version: 2.03
HSM error 4000021c: Invalid Input Data/Params
C_InitToken failed with error CKR_ARGUMENTS_BAD : 0x00000007
can you please clarify that: is my approach correct when load token with specific partition of PCIe HSM card?
If so what I am missing or changes needed?
Many thanks
Paul
cc: @joelhockey , @primetomas