Searched refs:plaintext (Results 1 – 9 of 9) sorted by relevance
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/ |
| H A D | SymmetricKey.php | 1148 * @param string $plaintext 1151 public function encrypt($plaintext) argument 1154 $plaintext = $this->pad($plaintext); 1165 $ciphertext = $cipher->encrypt($plaintext); 1182 $ciphertext = $cipher->encrypt($plaintext); 1190 …return openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | OPEN… 1192 …return openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | OPEN… 1194 …$result = openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | O… 1200 … return $this->openssl_ctr_process($plaintext, $this->encryptIV, $this->enbuffer); 1212 $len = strlen($plaintext); [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
| H A D | OpenSSL.php | 55 $plaintext = str_pad($x->toBytes(), $n->getLengthInBytes(), "\0", STR_PAD_LEFT); 61 if (!openssl_public_encrypt($plaintext, $result, $key, OPENSSL_NO_PADDING)) {
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | RC4.php | 164 * @param string $plaintext 167 public function encrypt($plaintext) argument 170 return parent::encrypt($plaintext); 172 return $this->crypt($plaintext, self::ENCRYPT);
|
| H A D | TripleDES.php | 274 * @param string $plaintext 277 public function encrypt($plaintext) argument 287 $this->pad($plaintext) 293 return parent::encrypt($plaintext);
|
| H A D | Rijndael.php | 972 * @param string $plaintext 975 public function encrypt($plaintext) argument 981 …$this->newtag = sodium_crypto_aead_aes256gcm_encrypt($plaintext, $this->aad, $this->nonce, $this->… 982 return Strings::shift($this->newtag, strlen($plaintext)); 985 $plaintext, 995 return parent::encrypt($plaintext); 1018 …$plaintext = sodium_crypto_aead_aes256gcm_decrypt($ciphertext . $this->oldtag, $this->aad, $this->… 1019 if ($plaintext === false) { 1023 return $plaintext; 1028 $plaintext = openssl_decrypt( [all …]
|
| H A D | RC2.php | 388 * @param string $plaintext 391 public function encrypt($plaintext) argument 396 $result = parent::encrypt($plaintext); 401 return parent::encrypt($plaintext);
|
| H A D | Salsa20.php | 241 * @param string $plaintext 244 public function encrypt($plaintext) argument 246 $ciphertext = $this->crypt($plaintext, self::ENCRYPT);
|
| H A D | ChaCha20.php | 78 * @param string $plaintext 81 public function encrypt($plaintext) argument 86 return $this->encrypt_with_libsodium($plaintext); 89 return parent::encrypt($plaintext); 118 * @param string $plaintext 121 private function encrypt_with_libsodium($plaintext) argument 123 $params = [$plaintext, $this->aad, $this->nonce, $this->key]; 128 return substr($ciphertext, 0, strlen($plaintext)); 131 $newciphertext = substr($ciphertext, 0, strlen($plaintext)); 134 substr($ciphertext, strlen($plaintext)) : [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/ |
| H A D | PublicKey.php | 491 * @param string $plaintext 495 public function encrypt($plaintext) argument 497 $result = $this->handleOpenSSL('openssl_public_encrypt', $plaintext); 504 return $this->raw_encrypt($plaintext); 506 return $this->rsaes_pkcs1_v1_5_encrypt($plaintext); 509 return $this->rsaes_oaep_encrypt($plaintext);
|