Merge pull request #16 from tadgerb/patch-1
Fix FIPS compliance in CouchIniAction.cs
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);
}