Library error on Windows 8 , Windows 8.1.

8/26/2014 10:10:20 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Library error on Windows 8 , Windows 8.1.

It's very strange. We never seen this error till now.

Can you send us the stack trace of the exception?

8/26/2014 10:26:19 AM
Gravatar
Total Posts 6

Re: Library error on Windows 8 , Windows 8.1.

   at . (Int32 , Int32 , Byte[] , Int32 )
   at .C_Login(Int32 , Int32 , String )
   at Cryptware.NCryptoki.Session.Login(Int32 userType, String pin)
   at Cryptware.NDigitSign.DigitalSigner.Login(String pin)
   at FullTestNDigitSign.Form1.button4_Click(Object sender, EventArgs e) in d:\Users\Tito\Documents\Projects\TKS\Digital\FullTestNDigitSign\Form1.cs:line 45
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at FullTestNDigitSign.Program.Main() in d:\Users\Tito\Documents\Projects\TKS\Digital\FullTestNDigitSign\Program.cs:line 17
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

8/26/2014 10:32:11 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Library error on Windows 8 , Windows 8.1.

Which PIN are you passing?

Which is your language encoding?

8/26/2014 10:43:22 AM
Gravatar
Total Posts 6

Re: Library error on Windows 8 , Windows 8.1.

Not exactly sure about your question, but there is no pin being passed. There is also no code that sets the encoding. The certificates are pre-configured as a mean of authentication between the client and the server.

8/26/2014 10:50:54 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Library error on Windows 8 , Windows 8.1.

I don't understand.

In your code you call:

Cryptware.NDigitSign.DigitalSigner.Login(String pin)

 

Which PIN are you passing to this method?

 

The stacktrace says that the exception is raised by the PKCS#11 function C_Login in your cryptoki.dll. So the problem is the PIN

8/26/2014 10:54:05 AM
Gravatar
Total Posts 6

Re: Library error on Windows 8 , Windows 8.1.

Sorry, it is .NET string hardcoded into the sourcecode. It contains @ sign, English letters, and number

8/26/2014 12:27:52 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Library error on Windows 8 , Windows 8.1.

Ok. I don't know why it happens.

The stack trace says that the exception is raised by C_Login inside your cryptoki.dll.

Try to change another PIN to test if it works

 

8/28/2014 7:51:32 AM
Gravatar
Total Posts 6

Re: Library error on Windows 8 , Windows 8.1.

I tried to input other PIN number such as 1234 or even left blank, but got the same error. 

10/13/2014 10:27:13 AM
Gravatar
Total Posts 6

Re: Library error on Windows 8 , Windows 8.1.

Any potential suggestions or follow-up regarding this matter? Can you please help look into it?

10/13/2014 4:05:23 PM
Gravatar
Total Posts 13

Re: Library error on Windows 8 , Windows 8.1.

Try:

digitalSigner = new DigitalSigner(@"C:\\Progra~1\\LunaSA\\cryptoki.dll");