Skip to content

Commit c916abb

Browse files
committed
CSHARP-1331: changed SHA256 algorithm to one that is FIPS compliant.
1 parent 9ae9892 commit c916abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver/PasswordEvidence.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private static SecureString CreateSecureString(string str)
127127
/// </summary>
128128
private static string GenerateDigest(SecureString secureString)
129129
{
130-
using (var sha256 = new SHA256Managed())
130+
using (var sha256 = new SHA256CryptoServiceProvider())
131131
{
132132
TransformFinalBlock(sha256, secureString);
133133
return BsonUtils.ToHexString(sha256.Hash);

0 commit comments

Comments
 (0)