documentation about key requirements

This commit is contained in:
Dave Grijalva 2014-06-28 11:31:26 -07:00
parent bf910acaf8
commit f7a9d2e66e
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ func (m *SigningMethodRS256) Verify(signingString, signature string, key []byte)
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) {
// Key
var rsaKey *rsa.PrivateKey