Skip to content

Commit

Permalink
Using correct HMACSHA in corresponding IAlgorithm implementation (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
abatishchev committed Apr 2, 2017
1 parent deb9088 commit c9e01e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JWT.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>JWT</id>
<version>2.1.0-beta</version>
<version>2.1.1-beta</version>
<authors>John Sheehan, Michael Lehenbauer, Alexander Batishchev</authors>
<owners>johnsheehan, devinrader, abatishchev</owners>
<description>Jwt.Net, a JWT (JSON Web Token) implementation for .NET</description>
Expand Down
2 changes: 1 addition & 1 deletion src/JWT/Algorithms/HMACSHA384Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public sealed class HMACSHA384Algorithm : IJwtAlgorithm
{
public byte[] Sign(byte[] key, byte[] bytesToSign)
{
using (var sha = new HMACSHA256(key))
using (var sha = new HMACSHA384(key))
{
return sha.ComputeHash(bytesToSign);
}
Expand Down
2 changes: 1 addition & 1 deletion src/JWT/Algorithms/HMACSHA512Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public sealed class HMACSHA512Algorithm : IJwtAlgorithm
{
public byte[] Sign(byte[] key, byte[] bytesToSign)
{
using (var sha = new HMACSHA256(key))
using (var sha = new HMACSHA512(key))
{
return sha.ComputeHash(bytesToSign);
}
Expand Down

0 comments on commit c9e01e6

Please sign in to comment.