Skip to content

Commit

Permalink
ps256 instead of rs256 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe authored Mar 9, 2022
1 parent d06de94 commit f196e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptosuite/jsonwebkey2020.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func NewJSONWebKeyVerifier(kid string, key PublicKeyJWK) (*JSONWebKeyVerifier, e
// The curve parameter is optional (e.g. "") as in the case of RSA.
func AlgFromKeyAndCurve(kty jwa.KeyType, crv jwa.EllipticCurveAlgorithm) (jwa.SignatureAlgorithm, error) {
if kty == jwa.RSA {
return jwa.RS256, nil
return jwa.PS256, nil
}

if crv == "" {
Expand Down

0 comments on commit f196e10

Please sign in to comment.