mirror of https://github.com/golang-jwt/jwt.git
Added support for RSA-PSS in jwt CLI
* input key is RSA for RS* _and_ PS* algs Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
This commit is contained in:
parent
3af4c746e1
commit
382e92cd09
|
@ -278,5 +278,5 @@ func isEs() bool {
|
|||
}
|
||||
|
||||
func isRs() bool {
|
||||
return strings.HasPrefix(*flagAlg, "RS")
|
||||
return strings.HasPrefix(*flagAlg, "RS") || strings.HasPrefix(*flagAlg, "PS")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue