fixes #95 - incorrect documentation

This commit is contained in:
Dave Grijalva 2015-10-20 13:53:03 -07:00
parent f62f64ea22
commit acc5a5f31e
1 changed files with 2 additions and 2 deletions

View File

@ -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