Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ECKey

Fonctions membres publiques statiques

static convertToPEM (JWK $jwk)
 
static convertPublicKeyToPEM (JWK $jwk)
 
static convertPrivateKeyToPEM (JWK $jwk)
 
static createECKey (string $curve, array $values=[])
 

Fonctions membres privées statiques

static getNistCurveSize (string $curve)
 
static createECKeyUsingOpenSSL (string $curve)
 
static getOpensslCurveName (string $curve)
 
static p256PublicKey ()
 
static p256KPublicKey ()
 
static p384PublicKey ()
 
static p521PublicKey ()
 
static p256PrivateKey (JWK $jwk)
 
static p256KPrivateKey (JWK $jwk)
 
static p384PrivateKey (JWK $jwk)
 
static p521PrivateKey (JWK $jwk)
 
static getKey (JWK $jwk)
 

Documentation des fonctions membres

◆ convertPrivateKeyToPEM()

static convertPrivateKeyToPEM ( JWK  $jwk)
static
Exceptions
InvalidArgumentExceptionif the curve is not supported

Références JWK\get().

Référencé par ECDSA\sign().

◆ convertPublicKeyToPEM()

static convertPublicKeyToPEM ( JWK  $jwk)
static
Exceptions
InvalidArgumentExceptionif the curve is not supported

Références JWK\get().

Référencé par ECDSA\verify().

◆ convertToPEM()

static convertToPEM ( JWK  $jwk)
static

Références JWK\has().

◆ createECKey()

static createECKey ( string  $curve,
array  $values = [] 
)
static

Creates a EC key with the given curve and additional values.

Paramètres
string$curveThe curve
array$valuesvalues to configure the key

◆ createECKeyUsingOpenSSL()

static createECKeyUsingOpenSSL ( string  $curve)
staticprivate
Exceptions
RuntimeExceptionif the extension OpenSSL is not available
RuntimeExceptionif the key cannot be created

Références $key, $result, et Base64Url\encode().

◆ getKey()

static getKey ( JWK  $jwk)
staticprivate

Références Base64Url\decode(), et JWK\get().

◆ getNistCurveSize()

static getNistCurveSize ( string  $curve)
staticprivate
Exceptions
InvalidArgumentExceptionif the curve is not supported

◆ getOpensslCurveName()

static getOpensslCurveName ( string  $curve)
staticprivate
Exceptions
InvalidArgumentExceptionif the curve is not supported

◆ p256KPrivateKey()

static p256KPrivateKey ( JWK  $jwk)
staticprivate

Références Base64Url\decode(), et JWK\get().

◆ p256KPublicKey()

static p256KPublicKey ( )
staticprivate

◆ p256PrivateKey()

static p256PrivateKey ( JWK  $jwk)
staticprivate

Références Base64Url\decode(), et JWK\get().

◆ p256PublicKey()

static p256PublicKey ( )
staticprivate

◆ p384PrivateKey()

static p384PrivateKey ( JWK  $jwk)
staticprivate

Références Base64Url\decode(), et JWK\get().

◆ p384PublicKey()

static p384PublicKey ( )
staticprivate

◆ p521PrivateKey()

static p521PrivateKey ( JWK  $jwk)
staticprivate

Références Base64Url\decode(), et JWK\get().

◆ p521PublicKey()

static p521PublicKey ( )
staticprivate

La documentation de cette classe a été générée à partir du fichier suivant :