remove unneeded constructor param for crypto provider
This commit is contained in:
parent
d4e266ed94
commit
e472468c02
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user