PuTTY Formatted EC Key Handler
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>
generateV2Key(string $password,integer $length): string
string
integer
string
generateV3Key(string $password,string $flavour,integer $memory,integer $passes,string $salt): array
string
string
integer
integer
string
array
initialize_static_variables()
load(string $key,string $password): array
string
string
array
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
savePrivateKey(\phpseclib3\Math\BigInteger $privateKey,\phpseclib3\Crypt\EC\BaseCurves\Base $curve,array<mixed,\phpseclib3\Math\Common\FiniteField\Integer> $publicKey,string $secret = null,string $password = false,array $options = array()): string
\phpseclib3\Math\BigInteger
array<mixed,\phpseclib3\Math\Common\FiniteField\Integer>
string
optional
string
optional
array
optional
string
savePublicKey(\phpseclib3\Crypt\EC\BaseCurves\Base $curve,array<mixed,\phpseclib3\Math\Common\FiniteField> $publicKey): string
setComment(string $comment)
string
setImplicitCurve(\phpseclib3\Crypt\EC\BaseCurves\Base $curve)
If the key contains an implicit curve phpseclib needs the curve to be explicitly provided
setVersion(integer $version)
integer
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
wrapPrivateKey(string $public,string $private,string $type,string $password,array $options = array()): string
string
string
string
string
array
optional
string
wrapPublicKey(string $key,string $type): string
This is basically the format described in RFC 4716 (https://tools.ietf.org/html/rfc4716)
string
string
string
PUBLIC_HANDLER
var |
---|
types :array
var |
---|
array
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean
version :integer
var |
---|
integer
Default comment
Type(s)
string