◆ convertPrivateKeyToPEM()
static convertPrivateKeyToPEM |
( |
JWK |
$jwk | ) |
|
|
static |
- Exceptions
-
InvalidArgumentException | if the curve is not supported |
Références JWK\get().
Référencé par ECDSA\sign().
◆ convertPublicKeyToPEM()
static convertPublicKeyToPEM |
( |
JWK |
$jwk | ) |
|
|
static |
- Exceptions
-
InvalidArgumentException | if the curve is not supported |
Références JWK\get().
Référencé par ECDSA\verify().
◆ convertToPEM()
static convertToPEM |
( |
JWK |
$jwk | ) |
|
|
static |
◆ createECKey()
static createECKey |
( |
string |
$curve, |
|
|
array |
$values = [] |
|
) |
| |
|
static |
Creates a EC key with the given curve and additional values.
- Paramètres
-
string | $curve | The curve |
array | $values | values to configure the key |
◆ createECKeyUsingOpenSSL()
static createECKeyUsingOpenSSL |
( |
string |
$curve | ) |
|
|
staticprivate |
- Exceptions
-
RuntimeException | if the extension OpenSSL is not available |
RuntimeException | if the key cannot be created |
Références $key, $result, et Base64Url\encode().
◆ getKey()
static getKey |
( |
JWK |
$jwk | ) |
|
|
staticprivate |
◆ getNistCurveSize()
static getNistCurveSize |
( |
string |
$curve | ) |
|
|
staticprivate |
- Exceptions
-
InvalidArgumentException | if the curve is not supported |
◆ getOpensslCurveName()
static getOpensslCurveName |
( |
string |
$curve | ) |
|
|
staticprivate |
- Exceptions
-
InvalidArgumentException | if the curve is not supported |
◆ p256KPrivateKey()
static p256KPrivateKey |
( |
JWK |
$jwk | ) |
|
|
staticprivate |
◆ p256KPublicKey()
static p256KPublicKey |
( |
| ) |
|
|
staticprivate |
◆ p256PrivateKey()
static p256PrivateKey |
( |
JWK |
$jwk | ) |
|
|
staticprivate |
◆ p256PublicKey()
◆ p384PrivateKey()
static p384PrivateKey |
( |
JWK |
$jwk | ) |
|
|
staticprivate |
◆ p384PublicKey()
◆ p521PrivateKey()
static p521PrivateKey |
( |
JWK |
$jwk | ) |
|
|
staticprivate |
◆ p521PublicKey()
La documentation de cette classe a été générée à partir du fichier suivant :