Skip to content

Commit

Permalink
Added a note about Linux support for PSS padding
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddesmet committed Mar 21, 2018
1 parent 6968716 commit b9eb054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -286,3 +286,6 @@ __pycache__/
*.btm.cs
*.odx.cs
*.xsd.cs

# Visual Studio Code
*.vscode
5 changes: 5 additions & 0 deletions src/Paseto/Algorithms/Version1Algorithm.cs
Expand Up @@ -84,6 +84,11 @@ public byte[] Sign(byte[] message, byte[] key)
/// <returns><c>true</c> if verified, <c>false</c> otherwise.</returns>
public bool Verify(byte[] message, byte[] signature, byte[] key)
{
// NOTE: Not Supported in Linux until 2.1
//
// Enable RSA-OAEP(SHA-2) and RSA-PSS on Unix systems #27394
// https://github.com/dotnet/corefx/pull/27394
// https://github.com/dotnet/corefx/issues/2522
#if NETSTANDARD2_0
using (var rsa = RSA.Create())
{
Expand Down

0 comments on commit b9eb054

Please sign in to comment.