remove unneeded constructor param for crypto provider

This commit is contained in:
RaidMax 2023-07-30 14:30:16 -05:00
parent d4e266ed94
commit e472468c02

View File

@ -17,7 +17,7 @@ public static class Helpers
private static byte[] SignData(byte[] data, string privateKey)
{
using var rsa = new RSACryptoServiceProvider(512);
using var rsa = new RSACryptoServiceProvider();
rsa.ImportFromPem(privateKey);
var rsaFormatter = new RSAPKCS1SignatureFormatter(rsa);
rsaFormatter.SetHashAlgorithm("SHA512");