Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 – 9 of 9) sorted by relevance

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DSymmetricKey.php1143 * @param string $plaintext
1146 public function encrypt($plaintext) argument
1149 $plaintext = $this->pad($plaintext);
1160 $ciphertext = $cipher->encrypt($plaintext);
1177 $ciphertext = $cipher->encrypt($plaintext);
1185 …return openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | OPEN…
1187 …return openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | OPEN…
1189 …$result = openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, OPENSSL_RAW_DATA | O…
1195 … return $this->openssl_ctr_process($plaintext, $this->encryptIV, $this->enbuffer);
1207 $len = strlen($plaintext);
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DOpenSSL.php55 $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 DRC4.php164 * @param string $plaintext
167 public function encrypt($plaintext) argument
170 return parent::encrypt($plaintext);
172 return $this->crypt($plaintext, self::ENCRYPT);
H A DTripleDES.php274 * @param string $plaintext
277 public function encrypt($plaintext) argument
287 $this->pad($plaintext)
293 return parent::encrypt($plaintext);
H A DRijndael.php962 * @param string $plaintext
965 public function encrypt($plaintext) argument
971 …$this->newtag = sodium_crypto_aead_aes256gcm_encrypt($plaintext, $this->aad, $this->nonce, $this->…
972 return Strings::shift($this->newtag, strlen($plaintext));
975 $plaintext,
985 return parent::encrypt($plaintext);
1008 …$plaintext = sodium_crypto_aead_aes256gcm_decrypt($ciphertext . $this->oldtag, $this->aad, $this->…
1009 if ($plaintext === false) {
1013 return $plaintext;
1018 $plaintext = openssl_decrypt(
[all …]
H A DRC2.php388 * @param string $plaintext
391 public function encrypt($plaintext) argument
396 $result = parent::encrypt($plaintext);
401 return parent::encrypt($plaintext);
H A DSalsa20.php241 * @param string $plaintext
244 public function encrypt($plaintext) argument
246 $ciphertext = $this->crypt($plaintext, self::ENCRYPT);
H A DChaCha20.php78 * @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 DPublicKey.php447 * @param string $plaintext
451 public function encrypt($plaintext) argument
455 return $this->raw_encrypt($plaintext);
457 return $this->rsaes_pkcs1_v1_5_encrypt($plaintext);
460 return $this->rsaes_oaep_encrypt($plaintext);