Lines Matching refs:_string_shift

1190                 if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
1197 $tag = ord($this->_string_shift($key));
1210 $this->_string_shift($key, 3);
1215 $temp = $this->_string_shift($key, $this->_decodeLength($key));
1216 if (ord($this->_string_shift($temp)) != self::ASN1_OBJECT) {
1220 switch ($this->_string_shift($temp, $length)) {
1230 if (ord($this->_string_shift($temp)) != self::ASN1_SEQUENCE) {
1236 $this->_string_shift($temp); // assume it's an octet string
1237 $salt = $this->_string_shift($temp, $this->_decodeLength($temp));
1238 if (ord($this->_string_shift($temp)) != self::ASN1_INTEGER) {
1243 $this->_string_shift($key); // assume it's an octet string
1266 … $tag = ord($this->_string_shift($key)); // skip over the BIT STRING / OCTET STRING tag
1272 $this->_string_shift($key);
1274 if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
1280 $tag = ord($this->_string_shift($key));
1287 $temp = $this->_string_shift($key, $length);
1290 $this->_string_shift($key); // skip over self::ASN1_INTEGER
1292 …PKCS1 ? 'publicExponent' : 'privateExponent'] = new BigInteger($this->_string_shift($key, $length)…
1296 if (ord($this->_string_shift($key)) != self::ASN1_INTEGER) {
1300 $components['modulus'] = new BigInteger($this->_string_shift($key, $length), 256);
1301 $this->_string_shift($key);
1303 … $components['publicExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
1304 $this->_string_shift($key);
1306 … $components['privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
1307 $this->_string_shift($key);
1309 … $components['primes'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
1310 $this->_string_shift($key);
1312 $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
1313 $this->_string_shift($key);
1315 … $components['exponents'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
1316 $this->_string_shift($key);
1318 … $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
1319 $this->_string_shift($key);
1321 …$components['coefficients'] = array(2 => new BigInteger($this->_string_shift($key, $length), 256));
1324 if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
1329 if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
1335 … $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
1336 $this->_string_shift($key);
1338 … $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
1339 $this->_string_shift($key);
1341 … $components['coefficients'][] = new BigInteger($this->_string_shift($key, $length), 256);
1361 extract(unpack('Nlength', $this->_string_shift($key, 4)));
1362 $publicExponent = new BigInteger($this->_string_shift($key, $length), -256);
1366 extract(unpack('Nlength', $this->_string_shift($key, 4)));
1367 $modulus = new BigInteger($this->_string_shift($key, $length), -256);
1373 extract(unpack('Nlength', $this->_string_shift($key, 4)));
1374 $realModulus = new BigInteger($this->_string_shift($key, $length), -256);
1422 extract(unpack('Nlength', $this->_string_shift($public, 4)));
1423 … $components['publicExponent'] = new BigInteger($this->_string_shift($public, $length), -256);
1424 extract(unpack('Nlength', $this->_string_shift($public, 4)));
1425 … $components['modulus'] = new BigInteger($this->_string_shift($public, $length), -256);
1451 extract(unpack('Nlength', $this->_string_shift($private, 4)));
1455 … $components['privateExponent'] = new BigInteger($this->_string_shift($private, $length), -256);
1456 extract(unpack('Nlength', $this->_string_shift($private, 4)));
1460 … $components['primes'] = array(1 => new BigInteger($this->_string_shift($private, $length), -256));
1461 extract(unpack('Nlength', $this->_string_shift($private, 4)));
1465 … $components['primes'][] = new BigInteger($this->_string_shift($private, $length), -256);
1472 extract(unpack('Nlength', $this->_string_shift($private, 4)));
1476 …$components['coefficients'] = array(2 => new BigInteger($this->_string_shift($private, $length), -…
1482 $magic = $this->_string_shift($decoded, 15);
1486 $options = $this->_string_shift($decoded, 24);
1494 extract(unpack('Nlength', $this->_string_shift($decoded, 4)));
1498 $publicKey = $this->_string_shift($decoded, $length);
1499 extract(unpack('Nlength', $this->_string_shift($decoded, 4)));
1503 $paddedKey = $this->_string_shift($decoded, $length);
1505 if ($this->_string_shift($publicKey, 11) !== "\0\0\0\7ssh-rsa") {
1509 $checkint1 = $this->_string_shift($paddedKey, 4);
1510 $checkint2 = $this->_string_shift($paddedKey, 4);
1515 if ($this->_string_shift($paddedKey, 11) !== "\0\0\0\7ssh-rsa") {
1529 extract(unpack('Nlength', $this->_string_shift($paddedKey, 4)));
1533 $value = new BigInteger($this->_string_shift($paddedKey, $length), -256);
1536 extract(unpack('Nlength', $this->_string_shift($paddedKey, 4)));
1540 $components['comment'] = $this->_string_shift($decoded, $length);
2053 $length = ord($this->_string_shift($string));
2056 $temp = $this->_string_shift($string, $length);
2092 function _string_shift(&$string, $index = 1) function in phpseclib\\Crypt\\RSA