Lines Matching refs:this
47 $cmp = $this->cmp($long, 0);
60 while ($this->cmp($long, 0) > 0) {
61 array_unshift($bytes, $this->mod($long, 256));
62 $long = $this->div($long, pow(2, 8));
96 $n = $this->init(0);
105 $n = $this->mul($n, pow(2, 8));
106 $n = $this->add($n, $byte);
120 return $this->binaryToLong($b64);
125 return base64_encode($this->longToBinary($str));
147 $rbytes = $this->longToBinary($stop);
158 $mxrand = $this->pow(256, $nbytes);
162 $duplicate = $this->mod($mxrand, $stop);
173 $n = $this->binaryToLong($bytes);
175 } while ($this->cmp($n, $duplicate) < 0);
177 return $this->mod($n, $stop);
240 $square = $this->mod($base, $modulus);
242 while($this->cmp($exponent, 0) > 0) {
243 if ($this->mod($exponent, 2)) {
244 $result = $this->mod($this->mul($result, $square), $modulus);
246 $square = $this->mod($this->mul($square, $square), $modulus);
247 $exponent = $this->div($exponent, 2);
257 return $this->_powmod($base, $exponent, $modulus);