Home | History | Annotate | Download | only in rsa

Lines Matching full:privatekey

19 // over the public-key primitive, the PrivateKey struct implements the
79 // A PrivateKey represents an RSA key
80 type PrivateKey struct {
91 func (priv *PrivateKey) Public() crypto.PublicKey {
102 func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) {
113 func (priv *PrivateKey) Decrypt(rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) {
161 func (priv *PrivateKey) Validate() error {
199 func GenerateKey(random io.Reader, bits int) (*PrivateKey, error) {
214 func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error) {
215 priv := new(PrivateKey)
449 func (priv *PrivateKey) Precompute() {
480 func decrypt(random io.Reader, priv *PrivateKey, c *big.Int) (m *big.Int, err error) {
559 func decryptAndCheck(random io.Reader, priv *PrivateKey, c *big.Int) (m *big.Int, err error) {
586 func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {