|
static | powModHelper (BCMath $x, BCMath $e, BCMath $n, $class) |
|
static | prepareReduce ($x, $n, $class) |
|
static | multiplyReduce ($x, $y, $n, $class) |
|
static | squareReduce ($x, $n, $class) |
|
static | setBitmask ($bits) |
|
static | setBitmask ($bits) |
|
static | base256_lshift (&$x, $shift) |
|
static | slidingWindow (Engine $x, Engine $e, Engine $n, $class) |
|
static | randomRangePrimeOuter (Engine $min, Engine $max) |
|
static | randomRangeHelper (Engine $min, Engine $max) |
|
static | randomRangePrimeInner (Engine $x, Engine $min, Engine $max) |
|
static | minHelper (array $nums) |
|
static | maxHelper (array $nums) |
|
◆ isValidEngine()
Test for engine validity
- Renvoie
- bool
Références class.
◆ multiplyReduce()
static multiplyReduce |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$n, |
|
|
|
$class |
|
) |
| |
|
staticprotected |
Modular multiply
- Paramètres
-
string | $x | |
string | $y | |
string | $n | |
string | $class | |
- Voir également
- self::slidingWindow()
- Renvoie
- string
Références $n.
◆ powModHelper()
◆ prepareReduce()
static prepareReduce |
( |
|
$x, |
|
|
|
$n, |
|
|
|
$class |
|
) |
| |
|
staticprotected |
Modular reduction preparation
- Paramètres
-
string | $x | |
string | $n | |
string | $class | |
- Voir également
- self::slidingWindow()
- Renvoie
- string
Références $n.
◆ squareReduce()
static squareReduce |
( |
|
$x, |
|
|
|
$n, |
|
|
|
$class |
|
) |
| |
|
staticprotected |
Modular square
- Paramètres
-
string | $x | |
string | $n | |
string | $class | |
- Voir également
- self::slidingWindow()
- Renvoie
- string
Références $n.
◆ DATA
$cache[self::DATA] contains the cached data.
private
◆ VARIABLE
Cache constants
$cache[self::VARIABLE] tells us whether or not the cached data is still valid.
private
La documentation de cette classe a été générée à partir du fichier suivant :