Home
last modified time | relevance | path

Searched refs:subtract (Results 1 – 25 of 30) sorted by relevance

12

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/
H A DPrime.php199 $h = $u2->subtract($u1);
200 $r = $s2->subtract($s1);
204 $x3 = $r->multiply($r)->subtract($h3)->subtract($v->multiply($this->two));
206 $v->subtract($x3)
207 )->subtract(
236 $h = $u2->subtract($u1);
237 $r = $s2->subtract($s1);
241 $x3 = $r->multiply($r)->subtract($h3)->subtract($v->multiply($this->two));
243 $v->subtract($x3)
244 )->subtract(
[all …]
H A DKoblitzPrime.php83 $inv->subtract($s)
100 $inv->subtract($s)
142 $k1 = $k->subtract($p1)->subtract($p2);
211 $d = $d->multiply($d)->subtract($a)->subtract($c)->multiply($this->two);
214 $x3 = $f->subtract($this->two->multiply($d));
215 $y3 = $e->multiply($d->subtract($x3))->subtract(
236 $s = $s->multiply($s)->subtract($xx)->subtract($yyyy)->multiply($this->two);
238 $t = $m->multiply($m)->subtract($this->two->multiply($s));
240 $y3 = $s->subtract($t);
241 $y3 = $m->multiply($y3)->subtract($this->eight->multiply($yyyy));
[all …]
H A DMontgomery.php117 $this->a24 = $this->a->subtract($two)->divide($four);
188 $b = $x2->subtract($z2);
190 $e = $aa->subtract($bb);
192 $d = $x3->subtract($z3);
197 $temp = $da->subtract($cb);
H A DBase.php118 return BigInteger::randomRange($one, $this->order->subtract($one));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/
H A DEd448.php68 $u = $y2->subtract($this->one);
69 $v = $this->d->multiply($y2)->subtract($this->one);
82 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) {
215 $j = $e->subtract($this->two->multiply($h));
217 $x3 = $b->subtract($e)->multiply($j);
218 $y3 = $c->subtract($d)->multiply($e);
263 $f = $b->subtract($e);
267 $x3 = $a->multiply($f)->multiply($h->subtract($c)->subtract($d));
268 $y3 = $a->multiply($g)->multiply($d->subtract($c));
H A DEd25519.php112 $u = $y2->subtract($this->one);
135 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) {
136 $temp = $this->getModulo()->subtract(new BigInteger(1));
140 if (!$x->multiply($x)->subtract($x2)->equals($this->zero)) {
271 $e = $h->subtract($temp->multiply($temp));
272 $g = $a->subtract($b);
317 $a = $y1->subtract($x1)->multiply($y2->subtract($x2));
321 $e = $b->subtract($a);
322 $f = $d->subtract($c);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/PrimeField/
H A DInteger.php190 $temp->value = $temp->value->subtract(static::$modulo[$this->instanceID]);
201 public function subtract(self $x) function in phpseclib3\\Math\\PrimeField\\Integer
206 $temp->value = $this->value->subtract($x->value);
269 $p_1 = $modulo->subtract($one);
296 $b = $c->powMod($two->pow($m->subtract($i)->subtract($one)), $modulo);
326 … return new static($this->instanceID, static::$modulo[$this->instanceID]->subtract($this->value));
393 $d->bitwise_and($mask)->subtract($sub) :
397 $d = $d->subtract($bigInteger);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DDSA.php151 $p = $x->subtract($c->subtract(self::$one));
154 $p_1 = $p->subtract(self::$one);
248 $private->x = BigInteger::randomRange(self::$one, $private->q->subtract(self::$one));
H A DDH.php264 $max = $max->subtract($one);
266 $max = $params->prime->subtract($one);
H A DHash.php961 $y = $k->multiply($y)->add($m->subtract($offset));
1094 … self::$offset64 = self::$factory64->newInteger(self::$offset64->subtract($prime64));
1096 … self::$offset128 = self::$factory128->newInteger(self::$offset128->subtract($prime128));
1098 self::$marker64 = self::$factory64->newInteger($prime64->subtract($one));
1099 self::$marker128 = self::$factory128->newInteger($prime128->subtract($one));
1101 … $maxwordrange64 = $one->bitwise_leftShift(64)->subtract($one->bitwise_leftShift(32));
1104 … $maxwordrange128 = $one->bitwise_leftShift(128)->subtract($one->bitwise_leftShift(96));
H A DRSA.php372 $temp = $primes[$i]->subtract(self::$one);
390 $temp = $prime->subtract(self::$one);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/
H A DPowerOfTwo.php56 $result = $lhs->bitwise_and($rhs->subtract($temp));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/
H A DPuTTY.php80 $temp = $primes[1]->subtract($one);
82 $temp = $primes[2]->subtract($one);
H A DOpenSSH.php70 $temp = $primes[1]->subtract($one);
72 $temp = $primes[2]->subtract($one);
H A DRaw.php117 $temp = $components['primes'][1]->subtract($one);
119 $temp = $components['primes'][2]->subtract($one);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DEngine.php316 return $this->normalize($n->subtract($temp));
329 …return $this->compare(static::$zero[static::class]) < 0 ? $this->normalize($n->subtract($x)) : $th…
577 $mask = $this->bitmask->subtract(new static(1));
861 $max = $max->subtract($min->subtract(static::$one[static::class]));
887 $random = $random->subtract($max_multiple);
888 $random_max = $random_max->subtract($max_multiple);
991 $n_1 = $n->subtract(static::$one[static::class]);
992 $n_2 = $n->subtract(static::$two[static::class]);
1096 …$step = $og->subtract($g)->divide(static::$two[static::class])[0]; // step is the half of upper bo…
1110 $g = $g->subtract($step);
[all …]
H A DPHP64.php128 public function subtract(PHP64 $y) function in phpseclib3\\Math\\BigInteger\\Engines\\PHP64
H A DPHP32.php127 public function subtract(PHP32 $y) function in phpseclib3\\Math\\BigInteger\\Engines\\PHP32
H A DPHP.php564 $x = $y->subtract($x);
605 $x = $x->subtract($temp);
653 $x = $x->subtract($temp);
673 $x = $y->subtract($x);
1159 $n = $n->subtract(static::$one[static::class]);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/
H A DPrivateKey.php113 $h = $m_i[1]->subtract($m_i[2]);
124 $h = $m_i->subtract($m);
138 $r = BigInteger::randomRange(self::$one, $smallest->subtract(self::$one));
144 $h = $m_i[1]->subtract($m_i[2]);
155 $h = $m_i->subtract($m);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/
H A DPublicKey.php69 $q_1 = $this->q->subtract(self::$one);
H A DPrivateKey.php118 $k = BigInteger::randomRange(self::$one, $this->q->subtract(self::$one));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php268 public function subtract(BigInteger $y) function in phpseclib3\\Math\\BigInteger
270 return new static($this->value->subtract($y->value));
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/
H A DPublicKey.php192 $n_1 = $order->subtract(self::$one);
H A DPrivateKey.php249 $k = BigInteger::randomRange(self::$one, $order->subtract(self::$one));

12