Commit f7a9d2e6 authored by Dave Grijalva's avatar Dave Grijalva

documentation about key requirements

parent bf910aca
...@@ -51,6 +51,8 @@ func (m *SigningMethodRS256) Verify(signingString, signature string, key []byte) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment