Lines Matching refs:substr

1009                         $s = substr($s, 0, $blockLength);
1017 $p = substr($p, 0, $blockLength);
1035 $key = substr($t, 0, $dkLen);
1037 $this->setKey(substr($key, 0, $dkLen >> 1));
1039 $this->setIV(substr($key, $dkLen >> 1));
1054 $key = substr($key, 0, $dkLen);
1105 $b = substr($b, 0, $blockLength);
1109 $temp = substr($i, $k, $blockLength);
1120 return substr($a, 0, $n);
1189 $this->encryptIV = substr($result, -$this->block_size);
1220 $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
1222 $plaintext = substr($plaintext, $i);
1228 …$ciphertext .= openssl_encrypt(substr($plaintext, 0, -$overflow) . str_repeat("\0", $this->block_s…
1232 $block = $iv ^ substr($plaintext, -$overflow);
1238 $iv = substr($ciphertext, -$this->block_size);
1246 $this->encryptIV = substr($ciphertext, -$this->block_size);
1248 …$this->encryptIV = substr($this->encryptIV, $len - $this->block_size) . substr($ciphertext, -$len);
1260 $iv = substr($iv, 1) . $xor[0];
1302 $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
1312 … $ciphertext .= mcrypt_generic($this->enmcrypt, substr($plaintext, $i, $len - $len % $block_size));
1313 $iv = substr($ciphertext, -$block_size);
1317 … $iv = mcrypt_generic($this->ecb, $iv) ^ substr($plaintext, $i, $block_size);
1327 $block = $iv ^ substr($plaintext, -$len);
1360 $ciphertext .= $this->encryptBlock(substr($plaintext, $i, $block_size));
1366 $block = substr($plaintext, $i, $block_size);
1379 $block = substr($plaintext, $i, $block_size);
1389 $block = substr($plaintext, $i, $block_size);
1398 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1427 $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
1431 $iv = $this->encryptBlock($iv) ^ substr($plaintext, $i, $block_size);
1438 $block = $iv ^ substr($plaintext, $i);
1451 $iv = substr($iv, 1) . $c;
1456 $this->encryptIV = substr($ciphertext, -$block_size);
1458 … $this->encryptIV = substr($this->encryptIV, $len - $block_size) . substr($ciphertext, -$len);
1470 $iv = substr($iv, 1) . $xor[0];
1481 $block = substr($plaintext, $i, $block_size);
1492 $ciphertext .= substr($plaintext, $i, $block_size) ^ $xor;
1499 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1556 if ($this->oldtag != substr($newtag, 0, strlen($newtag))) {
1580 $this->decryptIV = substr($ciphertext, -$offset, $this->block_size);
1612 $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
1613 $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
1614 $ciphertext = substr($ciphertext, $i);
1618 …$plaintext .= openssl_decrypt(substr($ciphertext, 0, -$overflow), $this->cipher_name_openssl, $thi…
1620 $iv = substr($ciphertext, -$overflow - $this->block_size, -$overflow);
1623 $plaintext .= $iv ^ substr($ciphertext, -$overflow);
1624 $iv = substr_replace($iv, substr($ciphertext, -$overflow), 0, $overflow);
1628 $iv = substr($ciphertext, -$this->block_size);
1635 $this->decryptIV = substr($ciphertext, -$this->block_size);
1637 …$this->decryptIV = substr($this->decryptIV, $len - $this->block_size) . substr($ciphertext, -$len);
1649 $iv = substr($iv, 1) . $xor[0];
1691 $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
1692 $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
1695 $cb = substr($ciphertext, $i, $len - $len % $block_size);
1697 $iv = substr($cb, -$block_size);
1702 $plaintext .= $iv ^ substr($ciphertext, -$len);
1703 $iv = substr_replace($iv, substr($ciphertext, -$len), 0, $len);
1735 $plaintext .= $this->decryptBlock(substr($ciphertext, $i, $block_size));
1741 $block = substr($ciphertext, $i, $block_size);
1753 $block = substr($ciphertext, $i, $block_size);
1763 $block = substr($ciphertext, $i, $block_size);
1772 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
1799 $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
1800 $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
1804 $cb = substr($ciphertext, $i, $block_size);
1812 $plaintext .= $iv ^ substr($ciphertext, $i);
1813 $iv = substr_replace($iv, substr($ciphertext, $i), 0, $len);
1824 $iv = substr($iv, 1) . $ciphertext[$i];
1829 $this->decryptIV = substr($ciphertext, -$block_size);
1831 … $this->decryptIV = substr($this->decryptIV, $len - $block_size) . substr($ciphertext, -$len);
1843 $iv = substr($iv, 1) . $xor[0];
1854 $block = substr($ciphertext, $i, $block_size);
1865 $plaintext .= substr($ciphertext, $i, $block_size) ^ $xor;
1872 $buffer['xor'] = substr($key, $start) . $buffer['xor'];
1916 substr($this->newtag, 0, $length);
1990 $block = substr($plaintext, $i, $block_size);
2000 $block = substr($plaintext, $i, $block_size);
2009 $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
2018 $plaintext = substr($plaintext, strlen($ciphertext));
2032 $buffer['ciphertext'] = substr($temp, $overflow);
2071 $buffer['xor'] = substr($buffer['xor'], strlen($ciphertext));
2072 $plaintext = substr($plaintext, strlen($ciphertext));
2085 …$ciphertext .= openssl_encrypt(substr($plaintext, 0, -$overflow) . str_repeat("\0", $block_size), …
2090 $ciphertext .= Strings::shift($xor, $overflow) ^ substr($plaintext, -$overflow);
2097 … $encryptIV = substr($ciphertext, -$block_size) ^ substr($plaintext, -$block_size);
2618 return substr($text, 0, -$length);
3334 $y[$n] = substr($y[$n], 1);