Fix FIPS compliance in CouchIniAction.cs
CouchIniAction.cs used the non-FIPS compliant managed SHA256 implementation, which caused an exception to be thrown during uninstall. This change replaces that call with the FIPS compliant SHA256CryptoServiceProvider.
diff --git a/installer/CustomAction/CouchIniAction.cs b/installer/CustomAction/CouchIniAction.cs
index 4a82e3f..eeeb870 100644
--- a/installer/CustomAction/CouchIniAction.cs
+++ b/installer/CustomAction/CouchIniAction.cs
@@ -187,7 +187,7 @@
{
using (FileStream stream = File.OpenRead(file))
{
- SHA256Managed sha = new SHA256Managed();
+ SHA256CryptoServiceProvider sha = new SHA256CryptoServiceProvider();
byte[] checksum = sha.ComputeHash(stream);
return BitConverter.ToString(checksum).Replace("-", String.Empty);
}