Skip to content

Commit

Permalink
Merge pull request #1208 from smallstep/mariano/fix-1207
Browse files Browse the repository at this point in the history
Set proper JOSE algorithm for Ed25519 keys
  • Loading branch information
maraino authored Jun 18, 2024
2 parents d02d826 + b40cd46 commit e6c5f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cryptoutil/cryptoutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func LoadJSONWebKey(kms, name string, opts ...jose.Option) (*jose.JSONWebKey, er
case *rsa.PublicKey:
jwk.Algorithm = jose.RS256
case ed25519.PublicKey:
jwk.Algorithm = jose.XEdDSA
jwk.Algorithm = jose.EdDSA
default:
return nil, fmt.Errorf("unsupported key type %T", pub)
}
Expand Down

0 comments on commit e6c5f21

Please sign in to comment.