[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Ed448
Author: | Jim Wigginton |
Copyright: | 2017 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
File Size: | 273 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Ed448:: (8 methods):
__construct()
recoverX()
extractSecret()
encodePoint()
createRandomMultiplier()
convertToInternal()
doublePoint()
addPoint()
__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.2.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.2.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.2.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[] |