forked from mirror/jwt
documentation about key requirements
This commit is contained in:
parent
bf910acaf8
commit
f7a9d2e66e
2
rs256.go
2
rs256.go
|
@ -51,6 +51,8 @@ func (m *SigningMethodRS256) Verify(signingString, signature string, key []byte)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Implements the Sign method from SigningMethod
|
||||||
|
// For this signing method, must be PEM encoded PKCS1 or PKCS8 RSA private key
|
||||||
func (m *SigningMethodRS256) Sign(signingString string, key []byte) (sig string, err error) {
|
func (m *SigningMethodRS256) Sign(signingString string, key []byte) (sig string, err error) {
|
||||||
// Key
|
// Key
|
||||||
var rsaKey *rsa.PrivateKey
|
var rsaKey *rsa.PrivateKey
|
||||||
|
|
Loading…
Reference in New Issue