Skip to content

Commit

Permalink
rsa: remove hash algorithm encryption validation
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Jan 3, 2023
1 parent a6b3c0c commit a14f11c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions NetCrypsi.Lib/Src/Rsax/Encryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ private static void Validate(byte[] key, byte[] data, HashAlgorithmName algorith
{
throw new ArgumentException("data cannot be null");
}

if (algorithmName == null)
{
throw new ArgumentException("algorithmName cannot be null");
}
}

// Encrypt
Expand Down

0 comments on commit a14f11c

Please sign in to comment.