/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/ |
D | Base.php | 51 * @param BCMath $x 57 protected static function powModHelper(BCMath $x, BCMath $e, BCMath $n, $class) argument 62 return $x->normalize($temp); 65 return $x->normalize(static::slidingWindow($x, $e, $n, $class)); 71 * @param string $x 77 protected static function prepareReduce($x, $n, $class) argument 79 return static::reduce($x, $n); 85 * @param string $x 92 protected static function multiplyReduce($x, $y, $n, $class) argument 94 return static::reduce(bcmul($x, $y), $n); [all …]
|
D | BuiltIn.php | 28 * @param BCMath $x 33 protected static function powModHelper(BCMath $x, BCMath $e, BCMath $n) argument 36 $temp->value = bcpowmod($x->value, $e->value, $n->value); 38 return $x->normalize($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/ |
D | Base.php | 71 * @param PHP $x 77 protected static function powModHelper(PHP $x, PHP $e, PHP $n, $class) argument 82 return $x->normalize($temp); 86 list(, $temp) = $x->divide($n); 87 return $x->normalize($temp); 92 $temp->value = $class::square($x->value); 94 return $x->normalize($temp); 97 return $x->normalize(static::slidingWindow($x, $e, $n, $class)); 103 * @param array $x 109 protected static function prepareReduce(array $x, array $n, $class) argument [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField/ |
D | Integer.php | 100 private static function checkInstance(self $x, self $y) argument 102 if ($x->instanceID != $y->instanceID) { 112 public function equals(self $x) argument 114 static::checkInstance($this, $x); 116 return $this->value == $x->value; 124 public function compare(self $x) argument 126 static::checkInstance($this, $x); 129 $b = $x->value; 142 * @param string $x 145 private static function deg($x) argument [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/ |
D | Montgomery.php | 28 * @param array $x 33 protected static function prepareReduce(array $x, array $n, $class) argument 36 $lhs->value = array_merge(self::array_repeat(0, count($n)), $x); 50 * @param array $x 55 protected static function reduce(array $x, array $n, $class) argument 64 $cache[self::VARIABLE][] = $x; 70 $result = [self::VALUE => $x]; 110 * @param array $x 114 protected static function modInverse67108864(array $x, $class) // 2**26 == 67,108,864 argument 116 $x = -$x[0]; [all …]
|
D | PowerOfTwo.php | 28 * @param array $x 33 protected static function prepareReduce(array $x, array $n, $class) argument 35 return self::reduce($x, $n, $class); 41 * @param array $x 46 protected static function reduce(array $x, array $n, $class) argument 49 $lhs->value = $x;
|
D | Classic.php | 28 * @param array $x 33 protected static function reduce(array $x, array $n, $class) argument 36 $lhs->value = $x;
|
D | MontgomeryMult.php | 33 * @param array $x 39 public static function multiplyReduce(array $x, array $y, array $m, $class) argument 57 $n = max(count($x), count($y), count($m)); 58 $x = array_pad($x, $n, 0); 63 $temp = $a[self::VALUE][0] + $x[$i] * $y[0]; 67 …$temp = $class::addHelper($class::regularMultiply([$x[$i]], $y), false, $class::regularMultiply([$…
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/ |
D | TwistedEdwards.php | 116 public function setBasePoint($x, $y) argument 119 case !$x instanceof BigInteger && !$x instanceof PrimeInteger: 128 $x instanceof BigInteger ? $this->factory->newInteger($x) : $x, 181 list($x, $y, $z) = $p; 184 $x->multiply($z), 206 list($x, $y) = $p; 207 $x2 = $x->multiply($x);
|
D | Montgomery.php | 123 * @param BigInteger|PrimeInteger $x 127 public function setBasePoint($x, $y) argument 130 case !$x instanceof BigInteger && !$x instanceof PrimeInteger: 139 $x instanceof BigInteger ? $this->factory->newInteger($x) : $x, 224 $x = $p[0]; 231 list($p2, $p1) = $this->doubleAndAddPoint($p2, $p1, $x); 233 list($p1, $p2) = $this->doubleAndAddPoint($p1, $p2, $x); 276 list($x, $z) = $p; 277 return [$x->divide($z)];
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/GMP/ |
D | DefaultEngine.php | 28 * @param GMP $x 33 protected static function powModHelper(GMP $x, GMP $e, GMP $n) argument 36 $temp->value = gmp_powm($x->value, $e->value, $n->value); 38 return $x->normalize($temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/ |
D | ANSI.php | 68 private $x; variable in phpseclib3\\File\\ANSI 166 * @param int $x 169 public function setDimensions($x, $y) argument 171 $this->max_x = $x - 1; 173 $this->x = $this->y = 0; 231 $this->old_x = $this->x; 233 $this->x = $this->y = 0; 248 $this->screen[$this->y] = substr($this->screen[$this->y], 0, $this->x); 250 …splice($this->attrs[$this->y], $this->x + 1, $this->max_x - $this->x, array_fill($this->x, $this->… 253 $this->screen[$this->y] = str_repeat(' ', $this->x); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/ |
D | BigInteger.php | 165 * @param string|int|Engine $x Base-10 number or base-$base number if $base set. 168 public function __construct($x = 0, $base = 10) argument 172 if ($x instanceof self::$mainEngine) { 173 $this->value = clone $x; 174 } elseif ($x instanceof Engine) { 175 $this->value = new static("$x"); 176 $this->value->setPrecision($x->getPrecision()); 178 $this->value = new self::$mainEngine($x, $base); 271 * @param BigInteger $x 274 public function multiply(BigInteger $x) argument [all …]
|
D | BinaryField.php | 169 * @param string $x 173 public static function base2ToBase256($x, $size = null) argument 175 $str = Strings::bits2bin($x); 177 $pad = strlen($x) >> 3; 178 if (strlen($x) & 3) { 192 * @param string $x 195 public static function base256ToBase2($x) argument 198 return gmp_strval(gmp_import($x), 2); 201 return Strings::bin2bits($x);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
D | Engine.php | 129 public function __construct($x = 0, $base = 10) argument 140 if (empty($x) && (abs($base) != 256 || $x !== '0')) { 147 if ($base == -256 && (ord($x[0]) & 0x80)) { 148 $this->value = ~$x; 151 $this->value = $x; 164 if ($base > 0 && $x[0] == '-') { 166 $x = substr($x, 1); 169 $x = preg_replace('#^(?:0x)?([A-Fa-f0-9]*).*#s', '$1', $x); 172 if ($base < 0 && hexdec($x[0]) >= 8) { 174 $x = Strings::bin2hex(~Strings::hex2bin($x)); [all …]
|
D | GMP.php | 54 * @param mixed $x integer Base-10 number or base-$base number if $base set. 58 public function __construct($x = 0, $base = 10) argument 67 if ($x instanceof \GMP) { 68 $this->value = $x; 74 parent::__construct($x, $base); 191 * @param GMP $x 194 public function multiply(GMP $x) argument 197 $temp->value = $this->value * $x->value; 262 * @param GMP $x 265 public function equals(GMP $x) argument [all …]
|
D | OpenSSL.php | 39 * @param Engine $x 44 public static function powModHelper(Engine $x, Engine $e, Engine $n) argument 55 $plaintext = str_pad($x->toBytes(), $n->getLengthInBytes(), "\0", STR_PAD_LEFT); 65 $class = get_class($x);
|
D | BCMath.php | 55 * @param mixed $x integer Base-10 number or base-$base number if $base set. 59 public function __construct($x = 0, $base = 10) argument 70 parent::__construct($x, $base); 86 $x = str_pad($this->value, $len, chr(0), STR_PAD_LEFT); 93 0x1000000 * ord($x[$i]) + ((ord($x[$i + 1]) << 16) | (ord( 94 $x[$i + 2] 95 ) << 8) | ord($x[$i + 3])), 105 $x = (strlen($this->value) & 1) ? '0' . $this->value : $this->value; 106 $temp = new self(Strings::hex2bin($x), 256); 192 * @param BCMath $x [all …]
|
D | PHP64.php | 204 * @param PHP64 $x 207 public function bitwise_and(PHP64 $x) argument 209 return $this->bitwiseAndHelper($x); 215 * @param PHP64 $x 218 public function bitwise_or(PHP64 $x) argument 220 return $this->bitwiseOrHelper($x); 226 * @param PHP64 $x 229 public function bitwise_xor(PHP64 $x) argument 231 return $this->bitwiseXorHelper($x); 262 * @param PHP64 $x [all …]
|
D | PHP32.php | 203 * @param PHP32 $x 206 public function bitwise_and(PHP32 $x) argument 208 return $this->bitwiseAndHelper($x); 214 * @param PHP32 $x 217 public function bitwise_or(PHP32 $x) argument 219 return $this->bitwiseOrHelper($x); 225 * @param PHP32 $x 228 public function bitwise_xor(PHP32 $x) argument 230 return $this->bitwiseXorHelper($x); 261 * @param PHP32 $x [all …]
|
/dokuwiki/lib/plugins/authad/adLDAP/classes/ |
D | adLDAPUtils.php | 153 for ($x=0;$x < $subcount; $x++) { 154 $subauth[$x] = 155 hexdec($this->littleEndian(substr($hex_sid, 16 + ($x * 8), 8))); 156 $result .= "-" . $subauth[$x]; 172 for ($x = strlen($hex) - 2; $x >= 0; $x = $x - 2) { 173 $result .= substr($hex, $x, 2);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/ |
D | Integer.php | 130 public static function checkInstance(self $x, self $y) argument 132 if ($x->instanceID != $y->instanceID) { 142 public function equals(self $x) argument 144 static::checkInstance($this, $x); 146 return $this->value->equals($x->value); 154 public function compare(self $x) argument 156 static::checkInstance($this, $x); 158 return $this->value->compare($x->value); 166 public function add(self $x) argument 168 static::checkInstance($this, $x); [all …]
|
/dokuwiki/_test/tests/inc/ |
D | difference_engine.test.php | 9 public $x = "zzz\n\naaa\n\nbbb\n\nccc\n\nddd\n\nddd\n\nddd\n\neee\n\nfff"; variable in difference_engine_test 13 $diff = new Diff(explode("\n", $this->x), explode("\n", $this->y)); 45 $diff = new Diff(explode("\n", $this->x), explode("\n", $this->y)); 77 $eng->diff(explode("\n", $this->x), explode("\n", $this->y));
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Common/Functions/ |
D | Strings.php | 256 * @param string $x 259 public static function bits2bin($x) argument 268 if (preg_match('#[^01]#', $x)) { 276 $length = strlen($x); 283 $x = str_repeat('0', $pad) . $x; 286 $parts = str_split($x, $block_size); 302 * @param string $x 305 public static function bin2bits($x, $trim = true) argument 315 $len = strlen($x); 318 $x = str_pad($x, $len + PHP_INT_SIZE - $mod, "\0", STR_PAD_LEFT); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/ |
D | Ed25519.php | 132 $x = $x2->pow($exp); 135 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) { 139 $x = $x->multiply($temp); 140 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) { 144 if ($x->isOdd() != $sign) { 145 $x = $x->negate(); 148 return [$x, $y]; 196 list($x, $y) = $point; 199 if ($x->isOdd()) {
|