Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 10 of 10) sorted by relevance

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
DSymmetricKey.php1160 $ciphertext = $cipher->encrypt($plaintext);
1164 self::nullPad128($ciphertext) .
1166 self::len64($ciphertext)
1170 return $ciphertext;
1177 $ciphertext = $cipher->encrypt($plaintext);
1178 $this->newtag = $this->poly1305($ciphertext);
1179 return $ciphertext;
1199 $ciphertext = '';
1222 $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
1223 $iv = substr_replace($iv, $ciphertext, $orig_pos, $i);
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
DSalsa20.php246 $ciphertext = $this->crypt($plaintext, self::ENCRYPT);
248 $this->newtag = $this->poly1305($ciphertext);
250 return $ciphertext;
261 * @param string $ciphertext
264 public function decrypt($ciphertext) argument
270 $newtag = $this->poly1305($ciphertext);
278 return $this->crypt($ciphertext, self::DECRYPT);
339 $ciphertext = '';
341 $ciphertext = $text ^ Strings::shift($buffer['ciphertext'], strlen($text));
342 $text = substr($text, strlen($ciphertext));
[all …]
DRC4.php183 * @param string $ciphertext
186 public function decrypt($ciphertext) argument
189 return parent::decrypt($ciphertext);
191 return $this->crypt($ciphertext, self::DECRYPT);
DTripleDES.php300 * @param string $ciphertext
303 public function decrypt($ciphertext) argument
310 str_pad($ciphertext, (strlen($ciphertext) + 7) & 0xFFFFFFF8, "\0")
317 return parent::decrypt($ciphertext);
DRC2.php410 * @param string $ciphertext
413 public function decrypt($ciphertext) argument
418 $result = parent::decrypt($ciphertext);
423 return parent::decrypt($ciphertext);
DRijndael.php993 * @param string $ciphertext
996 public function decrypt($ciphertext) argument
1008 …$plaintext = sodium_crypto_aead_aes256gcm_decrypt($ciphertext . $this->oldtag, $this->aad, $this->…
1019 $ciphertext,
1034 return parent::decrypt($ciphertext);
DChaCha20.php100 * @param string $ciphertext
103 public function decrypt($ciphertext) argument
108 return $this->decrypt_with_libsodium($ciphertext);
111 return parent::decrypt($ciphertext);
124 $ciphertext = strlen($this->nonce) == 8 ?
128 return substr($ciphertext, 0, strlen($plaintext));
131 $newciphertext = substr($ciphertext, 0, strlen($plaintext));
134 substr($ciphertext, strlen($plaintext)) :
144 * @param string $ciphertext
147 private function decrypt_with_libsodium($ciphertext) argument
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/
DPKCS1.php142 $ciphertext = ASN1::extractBER($key);
143 if ($ciphertext === false) {
144 $ciphertext = $key;
149 $key = $crypto->decrypt($ciphertext);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/
DPrivateKey.php432 * @param string $ciphertext
435 public function decrypt($ciphertext) argument
439 return $this->raw_encrypt($ciphertext);
441 return $this->rsaes_pkcs1_v1_5_decrypt($ciphertext);
444 return $this->rsaes_oaep_decrypt($ciphertext);
/dokuwiki/inc/
Dauth.php483 * @param string $ciphertext The encrypted data
487 function auth_decrypt($ciphertext, $secret) argument
489 $iv = substr($ciphertext, 0, 16);
495 return $cipher->decrypt(substr($ciphertext, 16));