Hei, im getting strange error message when tryng to load cryptoki.dll. First messagebox popsup sayng that "The Specified Cryptoki library is not found". The path is correct!! And the exception then says: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Any ides why i am getting this error?
Hi,
other then the wrong parh, this may happen when you are using a 32bit version of NCryptoki and are trying to load a 64bit cryptoki dll (or vice versa).
I'm 90% sure that im using the right version of NCryptoki dll. I doublecheck that... EDIT: Yes, i registered the NCryptoki and NCryptokiMngd dll -s again and they are both for 32 bit windiows. Machine itself is allso 32 bit. There is something more strange going on there..
This may also happen when some dependencies of crypotki.dll is missing
Ok, so i got over that problem. Now i receiving error n. 1400 . This error is not specified in the wiki page. What this could be?
1400 is not a standard PKCS#11 error, nor a NCryptoki. This is why you don't see in the related wiki page.
Which NCryptoki methods return such an error?
Well, looks like the problem wasnt int NCryptoki at all. The connection between the HSM and machine was lost. Thanks for the help!