Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
randomInteger () | |
convertInteger (BigInteger $x) | |
getLengthInBytes () | |
getLength () | |
multiplyPoint (array $p, BigInteger $d) | |
createRandomMultiplier () | |
rangeCheck (BigInteger $x) | |
setOrder (BigInteger $order) | |
getOrder () | |
setReduction (callable $func) | |
convertToAffine (array $p) | |
convertToInternal (array $p) | |
negatePoint (array $p) | |
multiplyAddPoints (array $points, array $scalars) | |
Attributs protégés | |
$doubles | |
$order | |
$factory | |
Attributs privés | |
$naf | |
convertInteger | ( | BigInteger | $x | ) |
Converts a BigInteger to a integer
Références EC\$x.
Référencé par Prime\derivePoint().
convertToAffine | ( | array | $p | ) |
Returns the affine point
Référencé par Base\multiplyAddPoints(), et Base\multiplyPoint().
convertToInternal | ( | array | $p | ) |
Converts an affine point to a jacobian coordinate
Référencé par Base\multiplyAddPoints(), et Base\multiplyPoint().
createRandomMultiplier | ( | ) |
Creates a random scalar multiplier
Références AsymmetricKey\$one, et BigInteger\randomRange().
getLength | ( | ) |
Returns the length, in bits, of the modulo
getLengthInBytes | ( | ) |
Returns the length, in bytes, of the modulo
getOrder | ( | ) |
multiplyAddPoints | ( | array | $points, |
array | $scalars | ||
) |
Multiply and Add Points
Références $r, Base\convertToAffine(), Base\convertToInternal(), et Base\multiplyPoint().
multiplyPoint | ( | array | $p, |
BigInteger | $d | ||
) |
Multiply a point on the curve by a scalar
Uses the montgomery ladder technique as described here:
https://en.wikipedia.org/wiki/Elliptic_curve_point_multiplication#Montgomery_ladder https://github.com/phpecc/phpecc/issues/16#issuecomment-59176772
Références $i, $r, Base\convertToAffine(), Base\convertToInternal(), et BigInteger\toBits().
Référencé par KoblitzPrime\multiplyAddPoints(), et Base\multiplyAddPoints().
negatePoint | ( | array | $p | ) |
Negates a point
Références $temp.
Référencé par KoblitzPrime\multiplyAddPoints(), et Prime\multiplyAddPoints().
randomInteger | ( | ) |
Returns a random integer
rangeCheck | ( | BigInteger | $x | ) |
Performs range check
Références $this, EC\$x, et AsymmetricKey\$zero.
setOrder | ( | BigInteger | $order | ) |
Sets the Order
Références Base\$order.
Référencé par brainpoolP160r1\__construct(), sect571r1\__construct(), sect571k1\__construct(), sect409r1\__construct(), sect409k1\__construct(), sect283r1\__construct(), sect283k1\__construct(), sect239k1\__construct(), sect233r1\__construct(), sect233k1\__construct(), sect193r2\__construct(), sect193r1\__construct(), sect163r2\__construct(), sect163r1\__construct(), sect163k1\__construct(), sect131r2\__construct(), sect131r1\__construct(), sect113r2\__construct(), sect113r1\__construct(), secp521r1\__construct(), secp384r1\__construct(), brainpoolP192t1\__construct(), brainpoolP256t1\__construct(), Curve448\__construct(), secp224k1\__construct(), secp224r1\__construct(), secp192k1\__construct(), secp160r2\__construct(), secp160r1\__construct(), secp160k1\__construct(), secp128r2\__construct(), secp128r1\__construct(), secp112r2\__construct(), secp112r1\__construct(), prime239v3\__construct(), prime239v2\__construct(), prime239v1\__construct(), prime192v3\__construct(), brainpoolP320r1\__construct(), secp256r1\__construct(), prime192v2\__construct(), brainpoolP224r1\__construct(), Curve25519\__construct(), brainpoolP512t1\__construct(), brainpoolP512r1\__construct(), brainpoolP384t1\__construct(), brainpoolP320t1\__construct(), brainpoolP384r1\__construct(), brainpoolP192r1\__construct(), brainpoolP224t1\__construct(), brainpoolP256r1\__construct(), secp192r1\__construct(), secp256k1\__construct(), Ed448\__construct(), brainpoolP160t1\__construct(), et Ed25519\__construct().
setReduction | ( | callable | $func | ) |
Use a custom defined modular reduction function
|
protected |
|
protected |
|
private |
Référencé par Prime\multiplyAddPoints().
|
protected |
Référencé par Base\getOrder(), et Base\setOrder().