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 Aug 29, 2024
1 parent 063ae05 commit 4f01cb7
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 4f01cb7

Please sign in to comment.