Lines Matching refs:length

1219                     $length = $this->_decodeLength($temp);
1220 switch ($this->_string_shift($temp, $length)) {
1244 $length = $this->_decodeLength($key);
1245 if (strlen($key) != $length) {
1286 $length = $this->_decodeLength($key);
1287 $temp = $this->_string_shift($key, $length);
1291 $length = $this->_decodeLength($key);
1292 …? 'publicExponent' : 'privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
1299 $length = $this->_decodeLength($key);
1300 $components['modulus'] = new BigInteger($this->_string_shift($key, $length), 256);
1302 $length = $this->_decodeLength($key);
1303 … $components['publicExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
1305 $length = $this->_decodeLength($key);
1306 … $components['privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
1308 $length = $this->_decodeLength($key);
1309 … $components['primes'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
1311 $length = $this->_decodeLength($key);
1312 $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
1314 $length = $this->_decodeLength($key);
1315 … $components['exponents'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
1317 $length = $this->_decodeLength($key);
1318 … $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
1320 $length = $this->_decodeLength($key);
1321 …$components['coefficients'] = array(2 => new BigInteger($this->_string_shift($key, $length), 256));
1334 $length = $this->_decodeLength($key);
1335 … $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
1337 $length = $this->_decodeLength($key);
1338 … $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
1340 $length = $this->_decodeLength($key);
1341 … $components['coefficients'][] = new BigInteger($this->_string_shift($key, $length), 256);
1362 $publicExponent = new BigInteger($this->_string_shift($key, $length), -256);
1367 $modulus = new BigInteger($this->_string_shift($key, $length), -256);
1374 $realModulus = new BigInteger($this->_string_shift($key, $length), -256);
1423 … $components['publicExponent'] = new BigInteger($this->_string_shift($public, $length), -256);
1425 … $components['modulus'] = new BigInteger($this->_string_shift($public, $length), -256);
1452 if (strlen($private) < $length) {
1455 … $components['privateExponent'] = new BigInteger($this->_string_shift($private, $length), -256);
1457 if (strlen($private) < $length) {
1460 … $components['primes'] = array(1 => new BigInteger($this->_string_shift($private, $length), -256));
1462 if (strlen($private) < $length) {
1465 … $components['primes'][] = new BigInteger($this->_string_shift($private, $length), -256);
1473 if (strlen($private) < $length) {
1476 …onents['coefficients'] = array(2 => new BigInteger($this->_string_shift($private, $length), -256));
1495 if (strlen($decoded) < $length) {
1498 $publicKey = $this->_string_shift($decoded, $length);
1500 if (strlen($decoded) < $length) {
1503 $paddedKey = $this->_string_shift($decoded, $length);
1530 if (strlen($paddedKey) < $length) {
1533 $value = new BigInteger($this->_string_shift($paddedKey, $length), -256);
1537 if (strlen($paddedKey) < $length) {
1540 $components['comment'] = $this->_string_shift($decoded, $length);
2053 $length = ord($this->_string_shift($string));
2054 if ($length & 0x80) { // definite length, long form
2055 $length&= 0x7F;
2056 $temp = $this->_string_shift($string, $length);
2057 list(, $length) = unpack('N', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4));
2059 return $length;
2069 * @param int $length
2072 function _encodeLength($length) argument
2074 if ($length <= 0x7F) {
2075 return chr($length);
2078 $temp = ltrim(pack('N', $length), chr(0));
3123 $length = $this->k - 11;
3124 if ($length <= 0) {
3128 $plaintext = str_split($plaintext, $length);
3136 $length = $this->k - 2 * $this->hLen - 2;
3137 if ($length <= 0) {
3141 $plaintext = str_split($plaintext, $length);