diff --git a/rs256.go b/rs256.go index 271f5df..05f24c4 100644 --- a/rs256.go +++ b/rs256.go @@ -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