◆ extractEncryptionAlgorithm()
static extractEncryptionAlgorithm |
( |
|
$key | ) |
|
|
static |
◆ getPBES1EncryptionObject()
static getPBES1EncryptionObject |
( |
|
$algo | ) |
|
|
staticprivate |
Returns a SymmetricKey object based on a PBES1 $algo
- Renvoie
- public
- Paramètres
-
◆ getPBES1Hash()
static getPBES1Hash |
( |
|
$algo | ) |
|
|
staticprivate |
Returns a hash based on a PBES1 $algo
- Renvoie
- string public
- Paramètres
-
◆ getPBES1KDF()
static getPBES1KDF |
( |
|
$algo | ) |
|
|
staticprivate |
Returns a KDF baesd on a PBES1 $algo
- Renvoie
- string public
- Paramètres
-
◆ getPBES2EncryptionObject()
static getPBES2EncryptionObject |
( |
|
$algo | ) |
|
|
staticprivate |
◆ initialize_static_variables()
static initialize_static_variables |
( |
| ) |
|
|
staticprivate |
◆ load()
static load |
( |
|
$key, |
|
|
|
$password = '' |
|
) |
| |
|
staticprotected |
◆ preParse()
static preParse |
( |
& |
$key | ) |
|
|
staticprivate |
◆ setEncryptionAlgorithm()
static setEncryptionAlgorithm |
( |
|
$algo | ) |
|
|
static |
Sets the default encryption algorithm
public
- Paramètres
-
◆ setEncryptionScheme()
static setEncryptionScheme |
( |
|
$algo | ) |
|
|
static |
Sets the default encryption algorithm for PBES2
public
- Paramètres
-
◆ setIterationCount()
static setIterationCount |
( |
|
$count | ) |
|
|
static |
Sets the iteration count
public
- Paramètres
-
Références $count.
◆ setPRF()
Sets the PRF for PBES2
public
- Paramètres
-
◆ wrapPrivateKey()
static wrapPrivateKey |
( |
|
$key, |
|
|
|
$attr, |
|
|
|
$params, |
|
|
|
$password, |
|
|
|
$oid = null , |
|
|
|
$publicKey = '' , |
|
|
array |
$options = [] |
|
) |
| |
|
staticprotected |
Wrap a private key appropriately
public
- Paramètres
-
string | $key | |
string | $attr | |
mixed | $params | |
string | $password | |
string | $oid | optional |
string | $publicKey | optional |
array | $options | optional |
- Renvoie
- string
Références $attr, $hash, $key, $oid, $options, $params, $password, Base64\encode(), ASN1\encodeDER(), phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables(), null, et Random\string().
◆ wrapPublicKey()
static wrapPublicKey |
( |
|
$key, |
|
|
|
$params, |
|
|
|
$oid = null |
|
) |
| |
|
staticprotected |
◆ $defaultEncryptionAlgorithm
$defaultEncryptionAlgorithm = 'id-PBES2' |
|
staticprivate |
◆ $defaultEncryptionScheme
$defaultEncryptionScheme = 'aes128-CBC-PAD' |
|
staticprivate |
◆ $defaultIterationCount
$defaultIterationCount = 2048 |
|
staticprivate |
◆ $defaultPRF
$defaultPRF = 'id-hmacWithSHA256' |
|
staticprivate |
◆ $oidsLoaded
La documentation de cette classe a été générée à partir du fichier suivant :