Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
It appears some changes in go 1.13 require larger key sizes.
Browse files Browse the repository at this point in the history
This test failed with "key size too small for PSS signature".
  • Loading branch information
Dan Lorenc committed Dec 21, 2020
1 parent ca5ab3f commit c8d4c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/jwt_test.go
Expand Up @@ -981,7 +981,7 @@ func TestJwtWrongSigningMethod(t *testing.T) {
// Setup pre-req bits needed to make our PS256 valid.
// Should we use a fake source of randomness instead of real
// rand.Reader here?
pk, err := rsa.GenerateKey(rand.Reader, 256*2)
pk, err := rsa.GenerateKey(rand.Reader, 512*2)
tests.Assert(t, err == nil, "rsa.GenerateKey failed:", err)
tokenString, err := token.SignedString(pk)
tests.Assert(t, err == nil, "token.SignedString failed:", err)
Expand Down

0 comments on commit c8d4c50

Please sign in to comment.