◆ __construct()
◆ __toString()
◆ addFileFormat()
static addFileFormat |
( |
|
$fullname | ) |
|
|
static |
◆ bits2int()
◆ bits2octets()
◆ computek()
◆ getComment()
Returns the key's comment
Not all key formats support comments. If you want to set a comment use toString()
public
- Renvoie
- null|string
Références AsymmetricKey\$comment.
◆ getHash()
◆ getLoadedFormat()
Returns the format of the loaded key.
If the key that was loaded wasn't in a valid or if the key was auto-generated with RSA::createKey() then this will throw an exception.
- Voir également
- self::load() public
- Renvoie
- mixed
◆ getSupportedKeyFormats()
static getSupportedKeyFormats |
( |
| ) |
|
|
static |
◆ initialize_static_variables()
static initialize_static_variables |
( |
| ) |
|
|
staticprotected |
Initialize static variables
◆ int2octets()
◆ load()
static load |
( |
|
$key, |
|
|
|
$password = false |
|
) |
| |
|
static |
◆ loadFormat()
static loadFormat |
( |
|
$type, |
|
|
|
$key, |
|
|
|
$password = false |
|
) |
| |
|
static |
Load the key, assuming a specific format
- Paramètres
-
string | $type | |
string | $key | |
string | $password | optional |
- Renvoie
- static
Références AsymmetricKey\$format, $key, $password, $type, phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables(), et PrivateKey\withPassword().
Référencé par EC\createKey(), PrivateKey\getPublicKey(), X509\getPublicKey(), SSH2\getServerPublicHostKey(), et X509\validateSignatureHelper().
◆ loadParameters()
static loadParameters |
( |
|
$key | ) |
|
|
static |
◆ loadParametersFormat()
static loadParametersFormat |
( |
|
$type, |
|
|
|
$key |
|
) |
| |
|
static |
Loads parameters
- Renvoie
- AsymmetricKey public
- Paramètres
-
string | $type | |
string | array | $key | |
Références $key, et $type.
◆ loadPlugins()
static loadPlugins |
( |
|
$format | ) |
|
|
staticprivate |
◆ loadPrivateKey()
static loadPrivateKey |
( |
|
$key, |
|
|
|
$password = '' |
|
) |
| |
|
static |
Loads a private key
- Renvoie
- PrivateKey public
- Paramètres
-
string | array | $key | |
string | $password | optional |
Références $key, et $password.
◆ loadPrivateKeyFormat()
static loadPrivateKeyFormat |
( |
|
$type, |
|
|
|
$key, |
|
|
|
$password = false |
|
) |
| |
|
static |
Loads a private key
- Renvoie
- PrivateKey public
- Paramètres
-
string | $type | |
string | $key | |
string | $password | optional |
Références $key, $password, et $type.
◆ loadPublicKey()
static loadPublicKey |
( |
|
$key | ) |
|
|
static |
Loads a public key
- Renvoie
- PublicKey public
- Paramètres
-
Références $key.
◆ loadPublicKeyFormat()
static loadPublicKeyFormat |
( |
|
$type, |
|
|
|
$key |
|
) |
| |
|
static |
◆ toString()
toString |
( |
|
$type, |
|
|
array |
$options = [] |
|
) |
| |
|
abstract |
◆ useBestEngine()
Tests engine validity
public
◆ useInternalEngine()
static useInternalEngine |
( |
| ) |
|
|
static |
Flag to use internal engine only (useful for unit testing)
public
Références false.
◆ validatePlugin()
static validatePlugin |
( |
|
$format, |
|
|
|
$type, |
|
|
|
$method = null |
|
) |
| |
|
staticprotected |
◆ withHash()
◆ $comment
◆ $engines
◆ $format
◆ $hash
◆ $hmac
◆ $invisiblePlugins
◆ $one
◆ $plugins
◆ $signatureFileFormats
$signatureFileFormats = [] |
|
staticprivate |
◆ $signatureFormats
◆ $zero
La documentation de cette classe a été générée à partir du fichier suivant :