XML Formatted EC Key Handler
author | Jim Wigginton terrafrost@php.net |
---|---|
package | Default |
decodeValue(string $value)
string
disableRFC4050Syntax()
enableRFC4050Syntax()
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
encodeXMLParameters(\phpseclib3\Crypt\EC\BaseCurves\Base $curve,string $pre,array $options = array()): string|false
string
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>
extractPointRFC4050(\DOMXPath $xpath,\phpseclib3\Crypt\EC\BaseCurves\Base $curve): array<mixed,object>
initialize_static_variables()
isolateNamespace(string $xml,string $ns)
string
string
load(string $key,string $password = ''): array
string
string
optional
array
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
loadCurveByParamRFC4050(\DomXPath $xpath): \phpseclib3\Crypt\EC\BaseCurves\Base|false
query(\DOMXPath $xpath,string $name,string $error = null,boolean $decode = true): \DOMNodeList
\DOMXPath
string
string
optional
boolean
optional
\DOMNodeList
savePublicKey(\phpseclib3\Crypt\EC\BaseCurves\Base $curve,array<mixed,\phpseclib3\Math\Common\FiniteField\Integer> $publicKey,array $options = array()): string
array<mixed,\phpseclib3\Math\Common\FiniteField\Integer>
array
optional
string
setImplicitCurve(\phpseclib3\Crypt\EC\BaseCurves\Base $curve)
If the key contains an implicit curve phpseclib needs the curve to be explicitly provided
setNamespace(string $namespace)
Set to null to unset. Used only for creating public keys.
string
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
namespace :string
var |
---|
string
rfc4050 :boolean
var |
---|
boolean
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean