◆ __construct()
◆ __toString()
◆ createKey()
static createKey |
( |
|
$curve | ) |
|
|
static |
◆ getContext()
Returns the signature format currently being used
public
Références EC\$context.
◆ getCurve()
◆ getEncodedCoordinates()
getEncodedCoordinates |
( |
| ) |
|
Returns the public key coordinates as a string
Used by ECDH
- Renvoie
- string
◆ getEngine()
Returns the current engine being used
- Voir également
- self::useInternalEngine()
-
self::useBestEngine() public
- Renvoie
- string
◆ getLength()
Returns the key size
Quoting https://tools.ietf.org/html/rfc5656#section-2,
"The size of a set of elliptic curve domain parameters on a prime curve is defined as the number of bits in the binary representation of the field order, commonly denoted by p. Size on a characteristic-2 curve is defined as the number of bits in the binary representation of the field, commonly denoted by m. A set of elliptic curve domain parameters defines a group of order n generated by a base point P"
public
- Renvoie
- int
◆ getParameters()
getParameters |
( |
|
$type = 'PKCS1' | ) |
|
◆ getSignatureFormat()
Returns the signature format currently being used
public
Références EC\$shortFormat.
◆ onLoad()
static onLoad |
( |
|
$components | ) |
|
|
staticprotected |
OnLoad Handler
- Renvoie
- bool protected
- Paramètres
-
◆ withContext()
withContext |
( |
|
$context = null | ) |
|
Sets the context
Used by Ed25519 / Ed448.
- Voir également
- self::sign()
-
self::verify() public
- Paramètres
-
Références EC\$context, $this, et null.
◆ withHash()
Determines which hashing function should be used
public
- Paramètres
-
Références AsymmetricKey\$hash.
◆ withSignatureFormat()
withSignatureFormat |
( |
|
$format | ) |
|
◆ $context
◆ $curve
Référencé par EC\createKey(), phpseclib3\Crypt\EC\Formats\Keys\encodeParameters(), XML\encodeXMLParameters(), phpseclib3\Crypt\EC\Formats\Keys\extractPoint(), XML\extractPointRFC4050(), OpenSSH\getAlias(), MontgomeryPublic\load(), libsodium\load(), MontgomeryPrivate\load(), OpenSSH\load(), XML\load(), phpseclib3\Crypt\EC\Formats\Keys\loadCurveByParam(), XML\loadCurveByParam(), XML\loadCurveByParamRFC4050(), SSH2\save(), PKCS1\saveParameters(), PuTTY\savePrivateKey(), libsodium\savePrivateKey(), PKCS1\savePrivateKey(), OpenSSH\savePrivateKey(), PKCS8\savePrivateKey(), libsodium\savePublicKey(), PuTTY\savePublicKey(), OpenSSH\savePublicKey(), PKCS8\savePublicKey(), XML\savePublicKey(), phpseclib3\Crypt\EC\Formats\Keys\setImplicitCurve(), PrivateKey\sign(), et PublicKey\verify().
◆ $curveName
◆ $format
◆ $q
◆ $QA
◆ $shortFormat
◆ $x
Référencé par Prime\addPoint(), Base\convertInteger(), TwistedEdwards\convertToAffine(), Montgomery\convertToAffine(), Binary\convertToAffine(), Prime\convertToAffine(), Prime\derivePoint(), Prime\doublePoint(), phpseclib3\Crypt\EC\Formats\Keys\encodeParameters(), Ed448\encodePoint(), Ed25519\encodePoint(), XML\encodeXMLParameters(), phpseclib3\Crypt\EC\Formats\Keys\extractPoint(), XML\extractPointRFC4050(), Prime\jacobianDoublePoint(), Prime\jacobianDoublePointMixed(), XML\loadCurveByParamRFC4050(), Montgomery\multiplyPoint(), Curve25519\rangeCheck(), Curve448\rangeCheck(), Base\rangeCheck(), Ed448\recoverX(), Ed25519\recoverX(), Binary\setBasePoint(), TwistedEdwards\setBasePoint(), Montgomery\setBasePoint(), Prime\setBasePoint(), PrivateKey\sign(), TwistedEdwards\verifyPoint(), KoblitzPrime\verifyPoint(), Binary\verifyPoint(), et Prime\verifyPoint().
◆ ALGORITHM
La documentation de cette classe a été générée à partir du fichier suivant :