◆ generateSymmetricKey()
static generateSymmetricKey |
( |
|
$password, |
|
|
|
$iv, |
|
|
|
$length |
|
) |
| |
|
staticprivate |
Generate a symmetric key for PKCS#1 keys
private
- Paramètres
-
string | $password | |
string | $iv | |
int | $length | |
- Renvoie
- string
Références $password.
◆ getEncryptionMode()
static getEncryptionMode |
( |
|
$mode | ) |
|
|
staticprivate |
Returns the mode constant corresponding to the mode string
public
- Paramètres
-
- Renvoie
- int
- Exceptions
-
Références $mode.
◆ getEncryptionObject()
static getEncryptionObject |
( |
|
$algo | ) |
|
|
staticprivate |
Returns a cipher object corresponding to a string
public
- Paramètres
-
- Renvoie
- string
- Exceptions
-
◆ load()
static load |
( |
|
$key, |
|
|
|
$password |
|
) |
| |
|
staticprotected |
◆ setEncryptionAlgorithm()
static setEncryptionAlgorithm |
( |
|
$algo | ) |
|
|
static |
Sets the default encryption algorithm
public
- Paramètres
-
◆ wrapPrivateKey()
static wrapPrivateKey |
( |
|
$key, |
|
|
|
$type, |
|
|
|
$password, |
|
|
array |
$options = [] |
|
) |
| |
|
staticprotected |
◆ wrapPublicKey()
static wrapPublicKey |
( |
|
$key, |
|
|
|
$type |
|
) |
| |
|
staticprotected |
Wrap a public key appropriately
public
- Paramètres
-
- Renvoie
- string
Références $key, et Base64\encode().
◆ $defaultEncryptionAlgorithm
$defaultEncryptionAlgorithm = 'AES-128-CBC' |
|
staticprivate |
La documentation de cette classe a été générée à partir du fichier suivant :