[ Index ]

PHP Cross Reference of DokuWiki




/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/ -> Ed25519.php (summary)


Author: Jim Wigginton
Copyright: 2017 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
File Size: 333 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Ed25519:: (8 methods):

Class: Ed25519  - X-Ref

__construct()   X-Ref
No description

recoverX(BigInteger $y, $sign)   X-Ref
Recover X from Y

Implements steps 2-4 at https://tools.ietf.org/html/rfc8032#section-5.1.3

Used by EC\Keys\Common.php

return: object[]
param: BigInteger $y
param: boolean $sign

extractSecret($str)   X-Ref
Extract Secret Scalar

Implements steps 1-3 at https://tools.ietf.org/html/rfc8032#section-5.1.5

Used by the various key handlers

return: array
param: string $str

encodePoint($point)   X-Ref
Encode a point as a string

return: string
param: array $point

createRandomMultiplier()   X-Ref
Creates a random scalar multiplier

return: \phpseclib3\Math\PrimeField\Integer

convertToInternal(array $p)   X-Ref
Converts an affine point to an extended homogeneous coordinate

From https://tools.ietf.org/html/rfc8032#section-5.1.4 :

A point (x,y) is represented in extended homogeneous coordinates (X, Y, Z, T),
with x = X/Z, y = Y/Z, x * y = T/Z.

return: \phpseclib3\Math\PrimeField\Integer[]

doublePoint(array $p)   X-Ref
Doubles a point on a curve

return: FiniteField[]

addPoint(array $p, array $q)   X-Ref
Adds two points on the curve

return: FiniteField[]