Prime Finite Fields
author | Jim Wigginton terrafrost@php.net |
---|---|
package | Default |
__construct(integer $instanceID,\phpseclib3\Math\BigInteger $num = null)
__debugInfo(): array
array
__toString(): string
string
add(self $x): static
self
static
checkInstance(self $x,self $y): void
Throws an exception if the incorrect class is being utilized
self
self
cleanupCache( $instanceID)
compare(self $x): integer
self
integer
divide(self $x): static
self
static
equals(self $x): boolean
self
boolean
getModulo(integer $instanceID): \phpseclib3\Math\BigInteger
getNAF(integer $w = 1): \phpseclib3\Math\PrimeField\array<int,
integer
optional
\phpseclib3\Math\PrimeField\arrayint>
isOdd(): boolean
boolean
jsonSerialize()
multiply(self $x): static
self
static
negate(): static
A negative number can be written as 0-12. With modulos, 0 is the same thing as the modulo so 0-12 is the same thing as modulo-12
static
pow(\phpseclib3\Math\BigInteger $x): static
setModulo(integer $instanceID,\phpseclib3\Math\BigInteger $modulo): void
setRecurringModuloFunction(integer $instanceID,callable $function): void
integer
callable
squareRoot(): static|false
subtract(self $x): static
self
static
toBigInteger(): \phpseclib3\Math\BigInteger
toBits(): string
string
toBytes(): string
string
toHex(): string
string
value :\phpseclib3\Math\BigInteger
instanceID :integer
var |
---|
integer
modulo :\phpseclib3\Math\PrimeField\array<int,
var | BigInteger> |
---|
\phpseclib3\Math\PrimeField\array
reduce :\phpseclib3\Math\PrimeField\array<int,
var | callable(BigInteger):BigInteger> |
---|
\phpseclib3\Math\PrimeField\array