"PKCS1" (RFC5915) 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>
generateSymmetricKey(string $password,string $iv,integer $length): string
string
string
integer
string
getEncryptionMode(string $mode): integer
Throws |
|
---|
string
integer
getEncryptionObject(string $algo): string
Throws |
|
---|
string
string
initialize_static_variables()
load(string $key,string $password): array
string
string
optional
array
loadCurveByParam(array $params): \phpseclib3\Crypt\EC\BaseCurves\Base|false
requireAny()
This is the default setting
requireDER()
requirePEM()
saveParameters(\phpseclib3\Crypt\EC\BaseCurves\Base $curve,array $options = array()): string
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
setEncryptionAlgorithm(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
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 $type,string $password,array $options = array()): string
string
string
string
array
optional
string
wrapPublicKey(string $key,string $type): string
string
string
string
MODE_ANY
MODE_PEM
MODE_DER
curveOIDs :array
var |
---|
array
childOIDsLoaded :boolean
var |
---|
boolean
useNamedCurves :boolean
var |
---|
boolean
defaultEncryptionAlgorithm :string
var |
---|
string
format :integer
var |
---|
integer