<link>http://ncryptoki.com/forum.aspx</link> <description /> <docs>http://www.rssboard.org/rss-specification</docs> <generator>mojoPortal Forum module</generator> <item> <title>Re: I can't find session.DecryptUpdate Hi Ugo,

 

I've tested and works perfect now!

 

Thank you for your support!

 

Regards

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post459 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 18 Mar 2013 19:02:20 GMT Re: I can't find session.DecryptUpdate Hi,

we find the problem. We put in the latest package a wrong version of NCryptokiMngd.dll

We really sorry for the inconvenience. To much stress ;)

You can now get the new fixed version in the download section.

Let me know...

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post458 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Wed, 13 Mar 2013 00:18:22 GMT
Re: I can't find session.DecryptUpdate Hi Ugo,

 

I've create a new simple project on a computer where it was not installed any version of the NCryptoki! The code we can find below! I have add references to NCryptoki.dll version 1.5.4.1 and NCryptokiMngd.dll version 1.1.1.2. The exception is the: "Could not load file or assembly 'NCryptoki, Version=1.5.3.2, Culture=neutral, PublicKeyToken=6a3e54934ab72177' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

 

Imports Cryptware.NCryptoki
Imports Cryptware.NCryptokiMngd
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cryptoki As Cryptoki
cryptoki = New Cryptoki("C:\Program Files\SafeNet\ProtectToolkit C SDK\bin\sw\cryptoki.dll")
Cryptoki.Initialize()
End Sub
End Class

 

Risking to bother you, can you check again the new release; please advise me where I wrong!

 

Thank you in advanced!

Regards,

  Externus

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post457 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 12 Mar 2013 20:41:08 GMT
Re: I can't find session.DecryptUpdate In the latest package I updated all dlls and exes.

In the CryptokiExplorer folder you can find the updated version of CryptokiExplorer.exe that takes the latest version of NCryptoki assembly.

 

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post456 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Wed, 06 Mar 2013 16:18:44 GMT
Re: I can't find session.DecryptUpdate Hi,

 

I received also this exception when I run CryptokiExplorera application from the NCryptoki1.5.4.1 package:  "Could not load file or assembly 'NCryptoki, Version=1.5.3.2, Culture=neutral, PublicKeyToken=6a3e54934ab72177' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)".

In my program I removed the reference to NCryptoki.dll version 1.5.3.2 and create new one to library  NCryptoki.dll version 1.5.4.1 !

 

Also the only assembly is the  c:\WINDOWS\assembly\GAC_MSIL\NCryptoki\1.5.4.1__6a3e54934ab72177\NCryptoki.dll

 

Can you advise that other checks I need to perform in order to be able to use the last NCryptoki library!

 

Thank you in advanced!

 

Regards,

  Externus

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post455 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Tue, 05 Mar 2013 19:30:22 GMT
Re: I can't find session.DecryptUpdate Hi,

NCryptoki.dll assembly is strongnamed, this means that you should update all references in your projects and recompile with the new version.

You got that error because your application still wants the old version.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post454 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Mon, 04 Mar 2013 10:23:43 GMT
Re: I can't find session.DecryptUpdate   Hi Ugo,

 

Thank you for the new version! The function DecryptUpdate it is included!

 

After I updated the NCryptoki.dll file version 1.5.4.1 , I received the following exception:

"Could not load file or assembly 'NCryptoki, Version=1.5.3.2, Culture=neutral, PublicKeyToken=6a3e54934ab72177' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

 

Can you advise me please!

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post453 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Sun, 03 Mar 2013 19:48:02 GMT
Re: I can't find session.DecryptUpdate You can now download the new version with DecryptUpdate method.

Let's know

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post452 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Sun, 03 Mar 2013 18:32:18 GMT
Re: I can't find session.DecryptUpdate Hi,

you are right. We have just seen that DecryptUpdate is non exported in the latest version.

We are going to release e new version tomorrow with DecryptUpdate method.

I'll update you as soon as it is available.

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post451 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Fri, 01 Mar 2013 00:28:51 GMT
I can't find session.DecryptUpdate Dear Ugo,

I want to implement encrypt / decrypt functions using SafeNet.CKM_DES3_ECB_PAD mechanism. For encryption I have the following function:

 

Function EncryptDES3_ECB_PAD(ByVal clearInput As Byte(), ByVal key As SecretKey, ByVal session As Session) As Byte()
Dim output() As Byte

Dim DES3_ECB_PAD As Mechanism
Dim param As Object
DES3_ECB_PAD = New Mechanism(SafeNet.CKM_DES3_ECB_PAD, param)

Dim nRes As Integer
nRes = session.EncryptInit(DES3_ECB_PAD, key)

clearInput = session.EncryptUpdate(clearInput)

output = session.EncryptFinal

Return output
End Function

 

For decryption I need to use the primitives: C_DecryptInit with SafeNet.CKM_DES3_ECB_PAD mechanism, C_DecryptUpdate and C_DecryptFinal.

I founded the functions DecryptInit and DecrypFinal, but I can't found the DecryptUpdate that supose to call the C_DecryptUpdate.

 

Can you help me with this issue!

I used the demo NCryptoki v.1.5.3.2!

 

Thank you in advanced!

 

 

]]>
http://ncryptoki.com/Forums/Thread.aspx?pageid=9&t=96~-1#post450 Externus http://ncryptoki.com/Forums/Thread.aspx?pageid= Thu, 28 Feb 2013 20:22:01 GMT