Lines Matching refs:buffer
340 $buffer = &$this->enbuffer;
342 $buffer = &$this->debuffer;
344 if (!strlen($buffer['ciphertext'])) {
347 $ciphertext = $text ^ Strings::shift($buffer['ciphertext'], strlen($text));
358 $iv = pack('V', $buffer['counter']) . $this->p2;
360 $buffer['counter'] += (strlen($text) >> 6) + 1; // ie. divide by 64
373 … $block ^= static::salsa20($this->p1 . pack('V', $buffer['counter']++) . $this->p2);
377 $temp = static::salsa20($this->p1 . pack('V', $buffer['counter']++) . $this->p2);
380 $buffer['ciphertext'] = substr($temp, $overflow);
381 } elseif (!strlen($buffer['ciphertext'])) {
383 $iv = pack('V', $buffer['counter']) . $this->p2;
384 $buffer['counter'] += (strlen($text) >> 6);
395 … $block ^= static::salsa20($this->p1 . pack('V', $buffer['counter']++) . $this->p2);