[Mono-dev] About System.Core.dll System.Security.Cryptography and Cng

Sebastien Pouliot sebastien.pouliot at gmail.com
Thu Feb 17 08:04:10 EST 2011

Le 2011-02-17 à 07:56, Juho Vähä-Herttua <juhovh at gmail.com> a écrit :


Sorry for spamming the list a bit, but I think this is quite big chunk of
code so it's worth to note

16.2.2011 21:55, Juho V�h�-Herttua kirjoitti:

I started from the most simple one and added some enumerations that are
required by the classes, a patch can be seen in my github tree. They should
go without any testing, I checked the values match values in .NET, but if
someone else wants to check I wouldn't mind.


Next I should move to the Serializable classes CngKeyBlobFormat and
CngProvider that are very similar to CngAlgorithm and CngAlgorithmGroup. I
can probably also get the needed unit tests from there.

CngKeyCreationParameters, CngProperty, CngPropertyCollection and CngUIPolicy
are also very simple classes but need their own unit tests.

These classes are now also in GitHub in my repository.

The corresponding unit tests can be found in another commit.

Only thing worth to mention was the CngProperty.GetHashCode() method, it
should be similar to the .NET method and I figured it out by creating a lot
of CngProperty objects and changing the constructor parameters a bit one at
the time. I got different GetHashCode() values on .NET and Mono, but that
might have been some language issue on the String.GetHashCode().

It's important that GetHashCode varies on the same fields/properties (than
MS implementation). However having the same value is not needed - in fact
very few (and simple) Mono types will have identical results with MS.

I'll give you guys time to review all this and after getting some comments I
will start working on the ECDiffieHellman* and ECDsa* classes that will most
likely take a bit more time to finish.

I'll check them soon.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110217/9815e599/attachment.html 

More information about the Mono-devel-list mailing list