Method | Description | |
---|---|---|
add ( |
Adds two BigIntegers. | |
compare ( |
Compares two numbers. | |
createFromBinaryString ( string $value ) : |
||
createFromDecimal ( integer $value ) : |
||
createFromDecimalString ( string $value ) : |
||
createFromGMPResource ( resource $value ) : |
||
mod ( |
Performs modular exponentiation. | |
modInverse ( |
Calculates modular inverses. | |
modPow ( |
Performs modular exponentiation. | |
multiply ( |
Multiplies two BigIntegers. | |
subtract ( |
Subtracts two BigIntegers. | |
toBytes ( ) : string | Converts a BigInteger to a binary string. |
Method | Description | |
---|---|---|
__construct ( GMP | string $value, integer $base ) | Converts base-10 and binary strings (base-256) to BigIntegers. |
public add ( |
||
$y | ||
return |
public static createFromBinaryString ( string $value ) : |
||
$value | string | |
return |
public static createFromDecimal ( integer $value ) : |
||
$value | integer | |
return |
public static createFromDecimalString ( string $value ) : |
||
$value | string | |
return |
public static createFromGMPResource ( resource $value ) : |
||
$value | resource | |
return |
public mod ( |
||
$d | ||
return |
public modInverse ( |
||
$n | ||
return |
public modPow ( |
||
$e | ||
$n | ||
return |
public multiply ( |
||
$x | @return \Jose\Util\BigInteger | |
return |
public subtract ( |
||
$y | ||
return |