From f7a9d2e66ed71a4e3bfaa24380e84bf465d665a8 Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Sat, 28 Jun 2014 11:31:26 -0700 Subject: [PATCH] documentation about key requirements --- rs256.go | 2 ++ 1 file changed, 2 insertions(+) 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