Skip to content

Commit

Permalink
Change BuildWithFactoryReadDirect to not use RSA+MD5
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones authored and pull[bot] committed Sep 30, 2024
1 parent b473e7d commit 1744844
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void BuildWithFactoryReadDirect()
Assert.True(rsa2.TrySignData(
keyBag.Pkcs8PrivateKey.Span,
sig,
HashAlgorithmName.MD5,
HashAlgorithmName.SHA256,
RSASignaturePadding.Pkcs1,
out int sigLen));

Expand All @@ -38,7 +38,7 @@ public static void BuildWithFactoryReadDirect()
Assert.True(rsa.VerifyData(
keyBag.Pkcs8PrivateKey.Span,
sig,
HashAlgorithmName.MD5,
HashAlgorithmName.SHA256,
RSASignaturePadding.Pkcs1));
}
}
Expand Down

0 comments on commit 1744844

Please sign in to comment.