[ Index ]

PHP Cross Reference of DokuWiki




/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ -> Common.php (summary)

Generic EC Key Parsing Helper functions PHP version 5

Author: Jim Wigginton
Copyright: 2015 Jim Wigginton
License: http://www.opensource.org/licenses/mit-license.html MIT License
Link: http://phpseclib.sourceforge.net
File Size: 549 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

initialize_static_variables()   X-Ref
Initialize static variables

setImplicitCurve(BaseCurve $curve)   X-Ref
Explicitly set the curve

If the key contains an implicit curve phpseclib needs the curve
to be explicitly provided

param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve

loadCurveByParam(array $params)   X-Ref
Returns an instance of \phpseclib3\Crypt\EC\BaseCurves\Base based
on the curve parameters

return: \phpseclib3\Crypt\EC\BaseCurves\Base|false
param: array $params

extractPoint($str, BaseCurve $curve)   X-Ref
Extract points from a string

Supports both compressed and uncompressed points

return: object[]
param: string $str
param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve

encodeParameters(BaseCurve $curve, $returnArray = false, array $options = [])   X-Ref
Encode Parameters

return: string|false
param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve
param: bool $returnArray optional
param: array $options optional

useSpecifiedCurve()   X-Ref
Use Specified Curve

A specified curve has all the coefficients, the base points, etc, explicitely included.
A specified curve is a more verbose way of representing a curve

useNamedCurve()   X-Ref
Use Named Curve

A named curve does not include any parameters. It is up to the EC parameters to
know what the coefficients, the base points, etc, are from the name of the curve.
A named curve is a more concise way of representing a curve