OpenSSH Formatted EC Key Handler
author | Jim Wigginton terrafrost@php.net |
---|---|
package | Default |
checkType(string $candidate)
string
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>
getAlias(\phpseclib3\Crypt\EC\BaseCurves\Base $curve): string
initialize_static_variables()
load(string $key,string $password = ''): array
$type can be either ssh-dss or ssh-rsa
string
string
array
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
savePrivateKey(\phpseclib3\Math\BigInteger $privateKey,\phpseclib3\Crypt\EC\Curves\Ed25519 $curve,array<mixed,\phpseclib3\Math\Common\FiniteField\Integer> $publicKey,string $secret = null,string $password = '',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\Integer> $publicKey,array $options = array()): string
array<mixed,\phpseclib3\Math\Common\FiniteField\Integer>
array
optional
string
setBinaryOutput(boolean $enabled)
Printable keys are what are generated by default. These are the ones that go in $HOME/.ssh/authorized_key.
boolean
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
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 $publicKey,string $privateKey,string $password,array $options): string
string
string
string
array
string
types :array
var |
---|
array
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean
binary :boolean
var |
---|
boolean
Default comment
Type(s)
string