Lines Matching full:ciphertext
62 func DecryptPKCS1v15(rand io.Reader, priv *PrivateKey, ciphertext []byte) (out []byte, err error) {
66 valid, out, index, err := decryptPKCS1v15(rand, priv, ciphertext)
79 // It returns an error if the ciphertext is the wrong length or if the
80 // ciphertext is greater than the public modulus. Otherwise, no error is
87 // See ``Chosen Ciphertext Attacks Against Protocols Based on the RSA
90 func DecryptPKCS1v15SessionKey(rand io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) (err error) {
99 valid, em, index, err := decryptPKCS1v15(rand, priv, ciphertext)
115 // decryptPKCS1v15 decrypts ciphertext using priv and blinds the operation if
121 func decryptPKCS1v15(rand io.Reader, priv *PrivateKey, ciphertext []byte) (valid int, em []byte, index int, err error) {
128 c := new(big.Int).SetBytes(ciphertext)