This project is read-only.
2

Closed

Windows Platform FIPS validated cryptographic algorithms.

description

Hello,

We found an issue with Microsoft.Cci.UnitHelper.ComputePublicKeyToken(IEnumerable<byte> publicKey)
Current algorithm (System.Security.Cryptography.SHA1Managed) throws an exception if FIPS validation is enabled.
The solution is to get appropriate algorithm by using System.Security.Cryptography.SHA1.Create("SHA1")
that is by default returns System.Security.Cryptography.SHA1CryptoServiceProvider (FIPS compliant).
And if in some cases this algorithm is not appropriate, it can be easily changed from user code using following:

System.Security.Cryptography.CryptoConfig.AddAlgorithm(typeof(System.Security.Cryptography.SHA1Managed), "SHA1");

Discussion:
https://ccimetadata.codeplex.com/discussions/581458
Closed Mar 23, 2015 at 12:31 AM by hermanv
See commit 73192.

comments