Lines Matching refs:rsa
102 _, ok := key.(*rsa.PrivateKey)
107 rsaKey, ok := key.(*rsa.PrivateKey)
112 return rsa.SignPKCS1v15(config.rand(), rsaKey, r.hash, r.computeHash(msg))
116 rsaKey, ok := key.(*rsa.PublicKey)
121 return rsa.VerifyPKCS1v15(rsaKey, r.hash, r.computeHash(msg), sig)
212 var pssOptions = rsa.PSSOptions{SaltLength: rsa.PSSSaltLengthEqualsHash}
219 _, ok := key.(*rsa.PrivateKey)
224 rsaKey, ok := key.(*rsa.PrivateKey)
231 return rsa.SignPSS(config.rand(), rsaKey, r.hash, h.Sum(nil), &pssOptions)
235 rsaKey, ok := key.(*rsa.PublicKey)
242 return rsa.VerifyPSS(rsaKey, r.hash, h.Sum(nil), sig, &pssOptions)
249 case *rsa.PrivateKey, *rsa.PublicKey: