| /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; 111 $temp = $class::multiplyHelper($msd, false, $m1, false); // m.length + (m.length >> 1) 112 …$n = $class::addHelper($lsd, false, $temp[self::VALUE], false); // m.length + (m.length >> 1) + 1 … 118 $temp = array_slice($n[self::VALUE], $m_length - 1); 125 $temp = $class::multiplyHelper($temp, false, $u, false); 128 $temp = array_slice($temp[self::VALUE], ($m_length >> 1) + 1); 131 $temp = $class::multiplyHelper($temp, false, $m, false); 135 $result = $class::subtractHelper($n[self::VALUE], false, $temp[self::VALUE], false); 173 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/ |
| 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 | 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 | BCMath.php | 111 $temp = new self(Strings::hex2bin($x), 256); 112 $this->value = $this->is_negative ? '-' . $temp->value : $temp->value; 156 … $temp = self::BCMOD_THREE_PARAMS ? bcmod($current, '16777216', 0) : bcmod($current, '16777216'); 157 $value = chr($temp >> 16) . chr(($temp >> 8) & 0xFF) . chr($temp & 0xFF) . $value; 174 $temp = new self(); 175 $temp->value = bcadd($this->value, $y->value, 0); 177 return $this->normalize($temp); 188 $temp = new self(); 189 $temp->value = bcsub($this->value, $y->value, 0); 191 return $this->normalize($temp); [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 …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/ |
| H A D | Barrett.php | 109 $temp = bcmul($msd, $m1, 0); // m.length + (m.length >> 1) 110 …$n = bcadd($lsd, $temp, 0); // m.length + (m.length >> 1) + 1 (so basically we're adding two same … 116 $temp = substr($n, 0, -$m_length + 1); 119 $temp = bcmul($temp, $u, 0); 122 $temp = substr($temp, 0, -($m_length >> 1) - 1); 125 $temp = bcmul($temp, $m, 0); 131 $result = bcsub($n, $temp, 0); 135 $temp = '1' . str_repeat('0', $m_length + 1); 136 $result = bcadd($result, $temp, 0); 176 $temp = substr($x, 0, -$n_length + 1); [all …]
|
| /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 … $length = unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4))['length']; 316 $temp = self::decode_ber($content, $start, $content_pos); 317 if ($temp === false) { 320 $length = $temp['length']; [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; 132 $temp = $upper ? 4294967296 * $upper : 0; 133 $temp += $lower < 0 ? ($lower & 0x7FFFFFFFF) + 0x80000000 : $lower; 135 $result[] = $temp; 142 $temp = self::shift($data, $length); 145 $result[] = new BigInteger($temp, -256); 148 $result[] = $temp; 151 $result[] = explode(',', $temp); 359 $temp = ($p1 | $p2) * 0x10101; [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, 0); 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 | 187 $temp = new static($this->instanceID); 188 $temp->value = $this->value->add($x->value); 189 if ($temp->value->compare(static::$modulo[$this->instanceID]) >= 0) { 190 $temp->value = $temp->value->subtract(static::$modulo[$this->instanceID]); 193 return $temp; 205 $temp = new static($this->instanceID); 206 $temp->value = $this->value->subtract($x->value); 207 if ($temp->value->isNegative()) { 208 $temp->value = $temp->value->add(static::$modulo[$this->instanceID]); 211 return $temp; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | Hash.php | 725 $temp = self::add32($m[$i], $k[$i]); 727 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 729 $temp = self::add32($m[$i + 1], $k[$i + 1]); 731 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 733 $temp = self::add32($m[$i + 2], $k[$i + 2]); 735 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 737 $temp = self::add32($m[$i + 3], $k[$i + 3]); 739 $y = self::add32_64($y, self::mul32_64($temp, $temp2)); 851 $temp = ($m[$i] + $k[$i]) & 0xFFFFFFFF; 853 $y = self::add64($y, self::mul64($temp, $temp2)); [all …]
|
| H A D | Rijndael.php | 346 $temp = []; 354 $temp[$i] = $t0[$state[$i] >> 24 & 0x000000FF] ^ 364 $state = $temp; 381 $temp[$i] = ($state[$i] & (PHP_INT_SIZE == 8 ? 0xFF000000 : -16777216)) ^ 392 return pack('N*', ...$temp); 427 $temp = []; 435 $temp[$i] = $dt0[$state[$i] >> 24 & 0x000000FF] ^ 445 $state = $temp; 460 $temp[$i] = $dw[$i] ^ ($isbox[$word & 0x000000FF] | 470 return pack('N*', ...$temp); [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 $map = ASN1::asn1map($temp[0], Maps\PBEParameter::MAP); 379 $temp = ASN1::decodeBER($decrypted['encryptionAlgorithm']['parameters']); 380 if (!$temp) { 383 $temp = ASN1::asn1map($temp[0], Maps\PBES2params::MAP); 384 $keyDerivationFunc = $temp['keyDerivationFunc']; 385 $encryptionScheme = $temp['encryptionScheme']; 390 $temp = ASN1::decodeBER($decrypted['encryptionAlgorithm']['parameters']); 391 if (!$temp) { [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/Net/ |
| H A D | SCP.php | 107 $temp = $this->get_channel_packet(self::CHANNEL_EXEC, true); 108 if ($temp !== chr(0)) { 151 $temp = 'C0644 ' . $size . ' ' . $remote_file . "\n"; 152 $this->send_channel_packet(self::CHANNEL_EXEC, $temp); 154 $temp = $this->get_channel_packet(self::CHANNEL_EXEC, true); 155 if ($temp !== chr(0)) { 162 …$temp = $mode & self::SOURCE_STRING ? substr($data, $sent, $packet_size) : fread($fp, $packet_size… 163 $this->send_channel_packet(self::CHANNEL_EXEC, $temp); 164 $sent += strlen($temp);
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
| H A D | XML.php | 78 $temp = self::isolateNamespace($key, 'http://www.w3.org/2009/xmldsig11#'); 84 if ($temp) { 85 $key = $temp; 430 $temp = $result['specifiedCurve']; 431 switch ($temp['fieldID']['fieldType']) { 434 … '<' . $pre . 'P>' . $temp['fieldID']['parameters'] . '</' . $pre . 'P>' . "\r\n" . 441 …throw new UnsupportedCurveException('Field Type of ' . $temp['fieldID']['fieldType'] . ' is not su… 465 $temp = $result['specifiedCurve']; 466 switch ($temp['fieldID']['fieldType']) { 469 …'<' . $pre . 'P>' . Strings::base64_encode($temp['fieldID']['parameters']->toBytes()) . '</' . $pr… [all …]
|