Lines Matching refs:buffer

1354         $buffer = &$this->enbuffer;
1377 if (strlen($buffer['ciphertext'])) {
1380 if (strlen($block) > strlen($buffer['ciphertext'])) {
1381 $buffer['ciphertext'] .= $this->encryptBlock($xor);
1384 $key = Strings::shift($buffer['ciphertext'], $block_size);
1398 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1407 $pos = &$buffer['pos'];
1479 if (strlen($buffer['xor'])) {
1482 if (strlen($block) > strlen($buffer['xor'])) {
1484 $buffer['xor'] .= $xor;
1486 $key = Strings::shift($buffer['xor'], $block_size);
1499 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1592 $pos = &$this->buffer['pos'];
1730 $buffer = &$this->debuffer;
1751 if (strlen($buffer['ciphertext'])) {
1754 if (strlen($block) > strlen($buffer['ciphertext'])) {
1755 $buffer['ciphertext'] .= $this->encryptBlock($xor);
1758 $key = Strings::shift($buffer['ciphertext'], $block_size);
1772 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1779 $pos = &$buffer['pos'];
1852 if (strlen($buffer['xor'])) {
1855 if (strlen($block) > strlen($buffer['xor'])) {
1857 $buffer['xor'] .= $xor;
1859 $key = Strings::shift($buffer['xor'], $block_size);
1872 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1975 * @param array $buffer
1979 private function openssl_ctr_process($plaintext, &$encryptIV, &$buffer) argument
1988 if (strlen($buffer['ciphertext'])) {
1991 if (strlen($block) > strlen($buffer['ciphertext'])) {
1992 …$buffer['ciphertext'] .= openssl_encrypt($xor, $this->cipher_name_openssl_ecb, $key, OPENSSL_RAW_D…
1995 $otp = Strings::shift($buffer['ciphertext'], $block_size);
2009 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
2016 if (strlen($buffer['ciphertext'])) {
2017 $ciphertext = $plaintext ^ Strings::shift($buffer['ciphertext'], strlen($plaintext));
2032 $buffer['ciphertext'] = substr($temp, $overflow);
2035 } elseif (!strlen($buffer['ciphertext'])) {
2063 * @param array $buffer
2067 private function openssl_ofb_process($plaintext, &$encryptIV, &$buffer) argument
2069 if (strlen($buffer['xor'])) {
2070 $ciphertext = $plaintext ^ $buffer['xor'];
2071 $buffer['xor'] = substr($buffer['xor'], strlen($ciphertext));
2092 $buffer['xor'] = $xor;