Error when loading cryptoki.dll

4/27/2012 11:30:45 AM
Gravatar
Total Posts 22

Error when loading cryptoki.dll

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? 

4/27/2012 11:36:26 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Error when loading cryptoki.dll

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

4/27/2012 11:40:38 AM
Gravatar
Total Posts 22

Re: Error when loading cryptoki.dll

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

4/27/2012 11:49:00 AM
Gravatar
Total Posts 30

Re: Error when loading cryptoki.dll

This may also happen when some dependencies of crypotki.dll is missing

4/27/2012 12:03:13 PM
Gravatar
Total Posts 22

Re: Error when loading cryptoki.dll

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?

4/27/2012 12:40:47 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Error when loading cryptoki.dll

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?

4/27/2012 1:45:22 PM
Gravatar
Total Posts 22

Re: Error when loading cryptoki.dll

Well, looks like the problem wasnt int NCryptoki at all. The connection between the HSM and machine was lost. Thanks for the help!