Base

Base

author

Jim Wigginton terrafrost@php.net

package

Default

Methods

Converts a BigInteger to a \phpseclib3\Math\FiniteField\Integer integer

convertInteger(\phpseclib3\Math\BigInteger $x): object

Arguments

Response

object

Returns the affine point

convertToAffine(array $p): array<mixed,object>

Arguments

$p

array

Response

array<mixed,object>

Converts an affine point to a jacobian coordinate

convertToInternal(array $p): array<mixed,object>

Arguments

$p

array

Response

array<mixed,object>

Creates a random scalar multiplier

createRandomMultiplier(): \phpseclib3\Math\BigInteger

Returns the length, in bits, of the modulo

getLength(): integer

Response

integer

Returns the length, in bytes, of the modulo

getLengthInBytes(): integer

Response

integer

Returns the Order

getOrder(): \phpseclib3\Math\BigInteger

Multiply and Add Points

multiplyAddPoints(array $points,array $scalars): array<mixed,integer>

Arguments

$points

array

$scalars

array

Response

array<mixed,integer>

Multiply a point on the curve by a scalar

multiplyPoint(array $p,\phpseclib3\Math\BigInteger $d): array

Negates a point

negatePoint(array $p): array<mixed,object>

Arguments

$p

array

Response

array<mixed,object>

Returns a random integer

randomInteger(): object

Response

object

Performs range check

rangeCheck(\phpseclib3\Math\BigInteger $x)

Sets the Order

setOrder(\phpseclib3\Math\BigInteger $order)

Arguments

Use a custom defined modular reduction function

setReduction(callable $func): object

Arguments

$func

callable

Response

object

Properties

The Order

order :\phpseclib3\Math\BigInteger

Finite Field Integer factory

factory :\phpseclib3\Math\FiniteField\Integer
var

Type(s)

\phpseclib3\Math\FiniteField\Integer