Generic EC Key Parsing Helper functions
author | Jim Wigginton terrafrost@php.net |
---|---|
package | Default |
encodeParameters(\phpseclib3\Crypt\EC\BaseCurves\Base $curve,boolean $returnArray = false,array $options = array()): string|false
todo | Maybe at some point this could be moved to __toString() for each of the curves? |
---|
boolean
optional
array
optional
string|false
extractPoint(string $str,\phpseclib3\Crypt\EC\BaseCurves\Base $curve): array<mixed,object>
Supports both compressed and uncompressed points
string
array<mixed,object>
initialize_static_variables()
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
setImplicitCurve(\phpseclib3\Crypt\EC\BaseCurves\Base $curve)
If the key contains an implicit curve phpseclib needs the curve to be explicitly provided
useNamedCurve()
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
useSpecifiedCurve()
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
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean