jacknji11 icon indicating copy to clipboard operation
jacknji11 copied to clipboard

Java Native Interface for PKCS#11

Results 6 jacknji11 issues
Sort by recently updated
recently updated
newest added

I am trying to derive a shared secret between two EC parties, but I have difficulties providing correct CKM. As there is no CK_ECDH1_DERIVE_PARAMS struct defined, I am trying to...

Hi @primetomas , I could generate aes key. But can't export/extract it as Key from HSM. Can you help me to export aes key? long aeskey = CE.GenerateKey(session, new CKM(CKM.AES_KEY_GEN),...

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...

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));...

Hi I got below output when I execute: "CE.GetInfo(info);" version=2.40 manufacturerID="Cavium Networks " flags=0x00000000{} libraryDescription="\u0000@\u0000\u0000\u0000\u0000Cavium PKCS#11 Interface " libraryVersion=32.32 Issue 1: value of libraryDescription coming along with unicode representation of...

The JNI is not using C_GetFunctionList() to obtain function pointers, causing a PKCS#11 module that only exposes C_GetFunctionList() rather than all PKCS#11 function to fail with java.lang.UnsatisfiedLinkError: Error looking up...