diff --git a/algo_hs.go b/algo_hs.go index b5c0cd6..9438fbf 100644 --- a/algo_hs.go +++ b/algo_hs.go @@ -38,9 +38,11 @@ func newHS(alg Algorithm, key []byte) (hmacAlgo, error) { alg: alg, hash: hash, key: key, - hashPool: &sync.Pool{New: func() interface{} { - return hmac.New(hash.New, key) - }}, + hashPool: &sync.Pool{ + New: func() interface{} { + return hmac.New(hash.New, key) + }, + }, }, nil } diff --git a/algo_test.go b/algo_test.go index db12f4c..21fc01e 100644 --- a/algo_test.go +++ b/algo_test.go @@ -26,7 +26,7 @@ func TestSignerAlg(t *testing.T) { f(mustSigner(NewSignerES(ES256, ecdsaPrivateKey256)), ES256) f(mustSigner(NewSignerES(ES384, ecdsaPrivateKey384)), ES384) - // f(mustSigner(NewSignerES(ES512, ecdsaPrivateKey521)), ES512) + f(mustSigner(NewSignerES(ES512, ecdsaPrivateKey521)), ES512) } func TestVerifierAlg(t *testing.T) { diff --git a/jwt_test.go b/jwt_test.go index 2343975..fd80d73 100644 --- a/jwt_test.go +++ b/jwt_test.go @@ -28,11 +28,6 @@ func mustVerifier(v Verifier, err error) Verifier { return v } -type customClaims struct { - StandardClaims - TestField string `json:"test_field"` -} - func TestMarshalHeader(t *testing.T) { f := func(h *Header, want string) { t.Helper()