PKCS#8 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
extractEncryptionAlgorithm(string $key): array
string
array
extractPoint(string $str,\phpseclib3\Crypt\EC\BaseCurves\Base $curve): array<mixed,object>
Supports both compressed and uncompressed points
string
array<mixed,object>
getPBES1EncryptionObject(string $algo): \phpseclib3\Crypt\Common\SymmetricKey
getPBES1Hash(string $algo): string
string
string
getPBES1KDF(string $algo): string
string
string
getPBES2EncryptionObject(string $algo): \phpseclib3\Crypt\Common\Formats\Keys\SymmetricKey
string
\phpseclib3\Crypt\Common\Formats\Keys\SymmetricKey
initialize_static_variables()
load(string $key,string $password = ''): array
string
string
optional
array
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
loadEdDSA(array $key): array
array
array
preParse(string &$key): array
string
array
requireAny()
This is the default setting
requireDER()
requirePEM()
savePrivateKey(\phpseclib3\Math\BigInteger $privateKey,\phpseclib3\Crypt\EC\BaseCurves\Base $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
setEncryptionAlgorithm(string $algo)
string
setEncryptionScheme(string $algo)
string
setImplicitCurve(\phpseclib3\Crypt\EC\BaseCurves\Base $curve)
If the key contains an implicit curve phpseclib needs the curve to be explicitly provided
setIterationCount(integer $count)
integer
setPRF(string $algo)
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
wrapPrivateKey(string $key,string $attr,mixed $params,string $password,string $oid = null,string $publicKey = '',array $options = array()): string
string
string
mixed
string
string
optional
string
optional
array
optional
string
wrapPublicKey(string $key,mixed $params,string $oid = null): string
string
mixed
string
string
OID_NAME
var |
---|
OID_VALUE
var |
---|
MODE_ANY
MODE_PEM
MODE_DER
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean
defaultEncryptionAlgorithm :string
var |
---|
string
defaultEncryptionScheme :string
Only used when defaultEncryptionAlgorithm is id-PBES2
var |
---|
string
defaultPRF :string
Only used when defaultEncryptionAlgorithm is id-PBES2
var |
---|
string
defaultIterationCount :integer
var |
---|
integer
oidsLoaded :boolean
var |
---|
boolean
format :integer
var |
---|
integer