Skip to content

Commit b40cd46

Browse files
committed
Set proper JOSE algorithm for Ed25519 keys
This commit fixes a typo in the JOSE algorithm specified for Ed25519 keys when a kms is used. Fixes #1207
1 parent d02d826 commit b40cd46

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)