I have a problem when I’m trying to access cryptoki.dll from x64 Client. It worked with x86 Client but it is not working with x64.
What should I do to work with cryptoki.dll from x64 Client?
signature.addKeyInfo(new ECertificate(cert.getEncoded()));
var c = HsmManager.getInstance().getSigner("MyPassword", cert);
static Module pkcs11Module = Module.getInstance(@"C:\Program Files\SafeNet\Protect Toolkit 5\Protect Toolkit C SDK\bin\sw\cryptoki.dll");
[MethodImpl(MethodImplOptions.Synchronized)]
public static HsmManager getInstance() {
pkcs11Module.initialize(null);
Slot[] slots = pkcs11Module.getSlotList(true);
}