Skip to content

Commit

Permalink
Removed the SHA256 functionality until it works
Browse files Browse the repository at this point in the history
  • Loading branch information
aariste committed Oct 7, 2021
1 parent 80e183c commit 886f367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,14 @@ private string GenerateSignature(X509Certificate2 certificate)

private byte[] SignData(RSA rsa, byte[] data)
{
byte[] numArray = (byte[])null;
try
{
numArray = rsa.SignData(data, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
return rsa.SignData(data, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
}
catch
{
throw;
}
return numArray;
}

[SuppressMessage("Microsoft.Cryptographic.Standard", "CA5354:SHA1CannotBeUsed", Justification = "Supporting SHA1 due to business decisions that industry has not taken SHA2 widely, exception will be fired on this case.")]
Expand Down
4 changes: 3 additions & 1 deletion ISVLicenseGenerator/ISVLicenseGeneratorForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 886f367

Please sign in to comment.