Skip to content

Commit e6c5f21

Browse files
authored
Merge pull request #1208 from smallstep/mariano/fix-1207
Set proper JOSE algorithm for Ed25519 keys
2 parents d02d826 + b40cd46 commit e6c5f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cryptoutil/cryptoutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func LoadJSONWebKey(kms, name string, opts ...jose.Option) (*jose.JSONWebKey, er
135135
case *rsa.PublicKey:
136136
jwk.Algorithm = jose.RS256
137137
case ed25519.PublicKey:
138-
jwk.Algorithm = jose.XEdDSA
138+
jwk.Algorithm = jose.EdDSA
139139
default:
140140
return nil, fmt.Errorf("unsupported key type %T", pub)
141141
}

0 commit comments

Comments
 (0)