Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Oct 21, 2023
1 parent bf8c364 commit 193b1cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwe/jwe.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func (dctx *decryptCtx) try(ctx context.Context, recipient Recipient, keyUsed in
alg := pair.alg.(jwa.KeyEncryptionAlgorithm)
key := pair.key

decrypted, err := dctx.decryptContent(ctx, alg, key, recipient)
decrypted, err := dctx.decryptContent(alg, key, recipient)
if err != nil {
lastError = err
continue
Expand All @@ -569,7 +569,7 @@ func (dctx *decryptCtx) try(ctx context.Context, recipient Recipient, keyUsed in
return nil, fmt.Errorf(`jwe.Decrypt: tried %d keys, but failed to match any of the keys with recipient (last error = %s)`, tried, lastError)
}

func (dctx *decryptCtx) decryptContent(ctx context.Context, alg jwa.KeyEncryptionAlgorithm, key interface{}, recipient Recipient) ([]byte, error) {
func (dctx *decryptCtx) decryptContent(alg jwa.KeyEncryptionAlgorithm, key interface{}, recipient Recipient) ([]byte, error) {
if jwkKey, ok := key.(jwk.Key); ok {
var raw interface{}
if err := jwkKey.Raw(&raw); err != nil {
Expand Down

0 comments on commit 193b1cd

Please sign in to comment.