From acc5a5f31e3493f1992315fd85aa49226372b810 Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Tue, 20 Oct 2015 13:53:03 -0700 Subject: [PATCH] fixes #95 - incorrect documentation --- rsa_pss.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsa_pss.go b/rsa_pss.go index 0cedd5e..b5b7073 100644 --- a/rsa_pss.go +++ b/rsa_pss.go @@ -69,7 +69,7 @@ func init() { } // Implements the Verify method from SigningMethod -// For this verify method, key must be an rsa.PrivateKey struct +// For this verify method, key must be an rsa.PublicKey struct func (m *SigningMethodRSAPSS) Verify(signingString, signature string, key interface{}) error { var err error @@ -98,7 +98,7 @@ func (m *SigningMethodRSAPSS) Verify(signingString, signature string, key interf } // Implements the Sign method from SigningMethod -// For this signing method, key must be an rsa.PublicKey struct +// For this signing method, key must be an rsa.PrivateKey struct func (m *SigningMethodRSAPSS) Sign(signingString string, key interface{}) (string, error) { var rsaKey *rsa.PrivateKey