/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/ |
H A D | Base.php | 80 $temp = new $class(); 81 $temp->value = [1]; 82 return $x->normalize($temp); 86 list(, $temp) = $x->divide($n); 87 return $x->normalize($temp); 91 $temp = new $class(); 92 $temp->value = $class::square($x->value); 93 list(, $temp) = $temp->divide($n); 94 return $x->normalize($temp); 126 $temp = $class::multiplyHelper($x, false, $y, false); [all …]
|
H A D | Montgomery.php | 58 $temp = decbin($n->value[$i]); 59 $j = strlen($temp) - strrpos($temp, '1') - 1; 81 $temp = $part2->multiply($mod1); 82 $temp = $temp->multiply($y2); 84 $result = $result->add($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/ |
H A D | MontgomeryMult.php | 63 $temp = $a[self::VALUE][0] + $x[$i] * $y[0]; 64 …$temp = $temp - $class::BASE_FULL * ($class::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 3… 65 $temp = $temp * $cache[self::DATA][$key]; 66 …$temp = $temp - $class::BASE_FULL * ($class::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 3… 67 …$temp = $class::addHelper($class::regularMultiply([$x[$i]], $y), false, $class::regularMultiply([$… 68 $a = $class::addHelper($a[self::VALUE], false, $temp[self::VALUE], false);
|
H A D | Barrett.php | 64 list(, $temp) = $lhs->divide($rhs); 65 return $temp->value; 109 $temp = $class::multiplyHelper($msd, false, $m1, false); // m.length + (m.length >> 1) 110 …$n = $class::addHelper($lsd, false, $temp[self::VALUE], false); // m.length + (m.length >> 1) + 1 … 116 $temp = array_slice($n[self::VALUE], $m_length - 1); 123 $temp = $class::multiplyHelper($temp, false, $u, false); 126 $temp = array_slice($temp[self::VALUE], ($m_length >> 1) + 1); 129 $temp = $class::multiplyHelper($temp, false, $m, false); 133 $result = $class::subtractHelper($n[self::VALUE], false, $temp[self::VALUE], false); 171 list(, $temp) = $lhs->divide($rhs); [all …]
|
H A D | Montgomery.php | 40 list(, $temp) = $lhs->divide($rhs); 41 return $temp->value; 73 $temp = $result[self::VALUE][$i] * $cache[self::DATA][$key]; 74 …$temp = $temp - $class::BASE_FULL * ($class::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 3… 75 $temp = $class::regularMultiply([$temp], $n); 76 $temp = array_merge(self::array_repeat(0, $i), $temp); 77 $result = $class::addHelper($result[self::VALUE], false, $temp, false);
|
H A D | PowerOfTwo.php | 53 $temp = new $class(); 54 $temp->value = [1]; 56 $result = $lhs->bitwise_and($rhs->subtract($temp));
|
H A D | Classic.php | 39 list(, $temp) = $lhs->divide($rhs); 40 return $temp->value;
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Common/Traits/ |
H A D | ReadBytes.php | 31 $temp = fread($this->fsock, $length); 32 if (strlen($temp) != $length) { 33 throw new \RuntimeException("Expected $length bytes; got " . strlen($temp)); 35 return $temp;
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/ |
H A D | Barrett.php | 107 $temp = bcmul($msd, $m1); // m.length + (m.length >> 1) 108 …$n = bcadd($lsd, $temp); // m.length + (m.length >> 1) + 1 (so basically we're adding two same len… 114 $temp = substr($n, 0, -$m_length + 1); 117 $temp = bcmul($temp, $u); 120 $temp = substr($temp, 0, -($m_length >> 1) - 1); 123 $temp = bcmul($temp, $m); 129 $result = bcsub($n, $temp); 133 $temp = '1' . str_repeat('0', $m_length + 1); 134 $result = bcadd($result, $temp); 174 $temp = substr($x, 0, -$n_length + 1); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
H A D | GMP.php | 93 $temp = $this->is_negative ? '-0x' . $this->value : '0x' . $this->value; 94 $this->value = gmp_init($temp); 153 $temp = gmp_export($this->value); 156 … substr(str_pad($temp, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) : 157 ltrim($temp, chr(0)); 168 $temp = new self(); 169 $temp->value = $this->value + $y->value; 171 return $this->normalize($temp); 182 $temp = new self(); 183 $temp->value = $this->value - $y->value; [all …]
|
H A D | BCMath.php | 106 $temp = new self(Strings::hex2bin($x), 256); 107 $this->value = $this->is_negative ? '-' . $temp->value : $temp->value; 151 $temp = bcmod($current, '16777216'); 152 $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value; 169 $temp = new self(); 170 $temp->value = bcadd($this->value, $y->value); 172 return $this->normalize($temp); 183 $temp = new self(); 184 $temp->value = bcsub($this->value, $y->value); 186 return $this->normalize($temp); [all …]
|
H A D | PHP.php | 98 $temp = new static(Strings::hex2bin($x), 256); 99 $this->value = $temp->value; 102 $temp = new static(); 121 $temp = $temp->multiply($multiplier); 122 … $temp = $temp->add(new static($this->int2bytes(substr($x, 0, static::MAX10LEN)), 256)); 126 $this->value = $temp->value; 156 $temp = clone $this; 157 $temp->bitmask = false; 158 $temp->is_negative = false; 163 while (count($temp->value)) { [all …]
|
H A D | Engine.php | 158 $temp = $this->add(new static('-1')); 159 $this->value = $temp->value; 181 $temp = $this->add(new static('-1')); 182 $this->value = $temp->value; 205 $temp = new static(Strings::bits2bin($x), 128 * $base); // ie. either -16 or +16 206 $this->value = $temp->value; 207 if ($temp->is_negative) { 250 $temp = $comparison < 0 ? $this->add(new static(1)) : $this; 251 $bytes = $temp->toBytes(); 314 $temp = $this->abs(); [all …]
|
H A D | PHP64.php | 87 $temp = $i > 0 ? ord($val[$i - 1]) : 0; 88 $digit |= ($temp << $shift) & 0x7F000000; 117 $temp = self::addHelper($this->value, $this->is_negative, $y->value, $y->is_negative); 119 return $this->convertToObj($temp); 130 $temp = self::subtractHelper($this->value, $this->is_negative, $y->value, $y->is_negative); 132 return $this->convertToObj($temp); 143 $temp = self::multiplyHelper($this->value, $this->is_negative, $y->value, $y->is_negative); 145 return $this->convertToObj($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/ |
H A D | ASN1.php | 242 $temp = ord($encoded[$encoded_pos++]); 244 $loop = $temp >> 7; 246 $temp &= 0x7F; 248 if ($startOffset == 2 && $temp == 0) { 251 $tag |= $temp; 271 $temp = substr($encoded, $encoded_pos, $length); 276 extract(unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4))); 317 $temp = self::decode_ber($content, $start, $content_pos); 318 if ($temp === false) { 321 $length = $temp['length']; [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/ |
H A D | BuiltIn.php | 35 $temp = new BCMath(); 36 $temp->value = bcpowmod($x->value, $e->value, $n->value); 38 return $x->normalize($temp);
|
H A D | Base.php | 60 $temp = new $class(); 61 $temp->value = '1'; 62 return $x->normalize($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/GMP/ |
H A D | DefaultEngine.php | 35 $temp = new GMP(); 36 $temp->value = gmp_powm($x->value, $e->value, $n->value); 38 return $x->normalize($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/ |
H A D | Integer.php | 170 $temp = new static($this->instanceID); 171 $temp->value = $this->value->add($x->value); 172 if ($temp->value->compare(static::$modulo[$this->instanceID]) >= 0) { 173 $temp->value = $temp->value->subtract(static::$modulo[$this->instanceID]); 176 return $temp; 188 $temp = new static($this->instanceID); 189 $temp->value = $this->value->subtract($x->value); 190 if ($temp->value->isNegative()) { 191 $temp->value = $temp->value->add(static::$modulo[$this->instanceID]); 194 return $temp; [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Common/Functions/ |
H A D | Strings.php | 119 list(, $temp) = unpack('N', self::shift($data, 4)); 120 $result[] = $temp; 130 $temp = $upper ? 4294967296 * $upper : 0; 131 $temp += $lower < 0 ? ($lower & 0x7FFFFFFFF) + 0x80000000 : $lower; 133 $result[] = $temp; 140 $temp = self::shift($data, $length); 143 $result[] = new BigInteger($temp, -256); 146 $result[] = $temp; 149 $result[] = explode(',', $temp); 381 $temp = substr($var, -$i, 4); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
H A D | Hash.php | 699 $temp = self::add32($m[$i], $k[$i]); 701 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 703 $temp = self::add32($m[$i + 1], $k[$i + 1]); 705 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 707 $temp = self::add32($m[$i + 2], $k[$i + 2]); 709 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 711 $temp = self::add32($m[$i + 3], $k[$i + 3]); 713 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 825 $temp = ($m[$i] + $k[$i]) & 0xFFFFFFFF; 827 $y = self::add64($y, self::mul64($temp, $temp2)); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/ |
H A D | PKCS8.php | 360 $temp = ASN1::decodeBER($decrypted['encryptionAlgorithm']['parameters']); 361 if (!$temp) { 364 extract(ASN1::asn1map($temp[0], Maps\PBEParameter::MAP)); 377 $temp = ASN1::decodeBER($decrypted['encryptionAlgorithm']['parameters']); 378 if (!$temp) { 381 $temp = ASN1::asn1map($temp[0], Maps\PBES2params::MAP); 382 extract($temp); 387 $temp = ASN1::decodeBER($decrypted['encryptionAlgorithm']['parameters']); 388 if (!$temp) { 391 $temp = ASN1::asn1map($temp[0], Maps\PBES2params::MAP); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/ |
H A D | Montgomery.php | 195 $temp = $da->add($cb); 196 $x5 = $temp->multiply($temp); 197 $temp = $da->subtract($cb); 198 $z5 = $x1->multiply($temp->multiply($temp)); 200 $temp = static::class == Curve25519::class ? $bb : $aa; 201 $z4 = $e->multiply($temp->add($this->a24->multiply($e)));
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/ |
H A D | PublicKey.php | 244 $temp = chr(0xFF << ($emBits & 7)); 245 if ((~$maskedDB[0] & $temp) != $temp) { 251 $temp = $emLen - $this->hLen - $sLen - 2; 252 if (substr($db, 0, $temp) != str_repeat(chr(0), $temp) || ord($db[$temp]) != 1) { 255 $salt = substr($db, $temp + 1); // should be $sLen long 340 $temp = Random::string($psLen - strlen($ps)); 341 $temp = str_replace("\x00", '', $temp); 342 $ps .= $temp; 434 $temp = $this->os2ip($m); 435 $temp = $this->rsaep($temp); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
H A D | XML.php | 74 $temp = self::isolateNamespace($key, 'http://www.w3.org/2009/xmldsig11#'); 80 if ($temp) { 81 $key = $temp; 429 $temp = $result['specifiedCurve']; 430 switch ($temp['fieldID']['fieldType']) { 433 … '<' . $pre . 'P>' . $temp['fieldID']['parameters'] . '</' . $pre . 'P>' . "\r\n" . 440 …throw new UnsupportedCurveException('Field Type of ' . $temp['fieldID']['fieldType'] . ' is not su… 464 $temp = $result['specifiedCurve']; 465 switch ($temp['fieldID']['fieldType']) { 468 …'<' . $pre . 'P>' . Strings::base64_encode($temp['fieldID']['parameters']->toBytes()) . '</' . $pr… [all …]
|