Lines Matching refs:buffer

871         $buffer = &$this->enbuffer;
894 if (strlen($buffer['ciphertext'])) {
897 if (strlen($block) > strlen($buffer['ciphertext'])) {
898 $buffer['ciphertext'].= $this->_encryptBlock($xor);
901 $key = $this->_string_shift($buffer['ciphertext'], $block_size);
915 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
924 $pos = &$buffer['pos'];
981 if (strlen($buffer['xor'])) {
984 if (strlen($block) > strlen($buffer['xor'])) {
986 $buffer['xor'].= $xor;
988 $key = $this->_string_shift($buffer['xor'], $block_size);
1001 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1070 $pos = &$this->buffer['pos'];
1200 $buffer = &$this->debuffer;
1221 if (strlen($buffer['ciphertext'])) {
1224 if (strlen($block) > strlen($buffer['ciphertext'])) {
1225 $buffer['ciphertext'].= $this->_encryptBlock($xor);
1228 $key = $this->_string_shift($buffer['ciphertext'], $block_size);
1242 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1249 $pos = &$buffer['pos'];
1307 if (strlen($buffer['xor'])) {
1310 if (strlen($block) > strlen($buffer['xor'])) {
1312 $buffer['xor'].= $xor;
1314 $key = $this->_string_shift($buffer['xor'], $block_size);
1327 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1350 * @param array $buffer
1354 function _openssl_ctr_process($plaintext, &$encryptIV, &$buffer) argument
1363 if (strlen($buffer['ciphertext'])) {
1366 if (strlen($block) > strlen($buffer['ciphertext'])) {
1369 $buffer['ciphertext'].= $result;
1372 $otp = $this->_string_shift($buffer['ciphertext'], $block_size);
1387 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1394 if (strlen($buffer['ciphertext'])) {
1395 … $ciphertext = $plaintext ^ $this->_string_shift($buffer['ciphertext'], strlen($plaintext));
1410 $buffer['ciphertext'] = substr($temp, $overflow);
1413 } elseif (!strlen($buffer['ciphertext'])) {
1444 * @param array $buffer
1448 function _openssl_ofb_process($plaintext, &$encryptIV, &$buffer) argument
1450 if (strlen($buffer['xor'])) {
1451 $ciphertext = $plaintext ^ $buffer['xor'];
1452 $buffer['xor'] = substr($buffer['xor'], strlen($ciphertext));
1473 $buffer['xor'] = $xor;