Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe PKCS8
+ Graphe d'héritage de PKCS8:

Fonctions membres publiques statiques

static setEncryptionAlgorithm ($algo)
 
static setEncryptionScheme ($algo)
 
static setIterationCount ($count)
 
static setPRF ($algo)
 
static extractEncryptionAlgorithm ($key)
 
- Fonctions membres publiques statiques hérités de PKCS
static requirePEM ()
 
static requireDER ()
 
static requireAny ()
 

Fonctions membres protégées statiques

static load ($key, $password='')
 
static wrapPrivateKey ($key, $attr, $params, $password, $oid=null, $publicKey='', array $options=[])
 
static wrapPublicKey ($key, $params, $oid=null)
 

Fonctions membres privées statiques

static getPBES1EncryptionObject ($algo)
 
static getPBES1Hash ($algo)
 
static getPBES1KDF ($algo)
 
static getPBES2EncryptionObject ($algo)
 
static initialize_static_variables ()
 
static preParse (&$key)
 

Attributs privés statiques

static $defaultEncryptionAlgorithm = 'id-PBES2'
 
static $defaultEncryptionScheme = 'aes128-CBC-PAD'
 
static $defaultPRF = 'id-hmacWithSHA256'
 
static $defaultIterationCount = 2048
 
static $oidsLoaded = false
 

Membres hérités additionnels

- Champs de données hérités de PKCS
const MODE_ANY = 0
 
const MODE_PEM = 1
 
const MODE_DER = 2
 
- Attributs protégés statiques hérités de PKCS
static $format = self::MODE_ANY
 

Documentation des fonctions membres

◆ extractEncryptionAlgorithm()

static extractEncryptionAlgorithm (   $key)
static

Returns the encryption parameters used by the key

Paramètres
string$key
Renvoie
array

Références $key, $r, ASN1\asn1map(), et ASN1\decodeBER().

◆ getPBES1EncryptionObject()

static getPBES1EncryptionObject (   $algo)
staticprivate

Returns a SymmetricKey object based on a PBES1 $algo

Renvoie
public
Paramètres
string$algo

◆ getPBES1Hash()

static getPBES1Hash (   $algo)
staticprivate

Returns a hash based on a PBES1 $algo

Renvoie
string public
Paramètres
string$algo

◆ getPBES1KDF()

static getPBES1KDF (   $algo)
staticprivate

Returns a KDF baesd on a PBES1 $algo

Renvoie
string public
Paramètres
string$algo

◆ getPBES2EncryptionObject()

static getPBES2EncryptionObject (   $algo)
staticprivate

Returns a SymmetricKey object baesd on a PBES2 $algo

Renvoie
SymmetricKey public
Paramètres
string$algo

◆ initialize_static_variables()

static initialize_static_variables ( )
staticprivate

Initialize static variables

private

Références phpseclib3\Crypt\EC\Formats\Keys\$childOIDsLoaded, et ASN1\loadOIDs().

◆ load()

static load (   $key,
  $password = '' 
)
staticprotected

Break a public or private key down into its constituent components

public

Paramètres
string$key
string$passwordoptional
Renvoie
array

Références $hash, $key, $params, $password, $temp, ASN1\asn1map(), et ASN1\decodeBER().

◆ preParse()

static preParse ( $key)
staticprivate

Perform some preliminary parsing of the key

Paramètres
string$key
Renvoie
array

Références $format, $key, ASN1\decodeBER(), elseif, ASN1\extractBER(), phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables(), et Strings\is_stringable().

◆ setEncryptionAlgorithm()

static setEncryptionAlgorithm (   $algo)
static

Sets the default encryption algorithm

public

Paramètres
string$algo

◆ setEncryptionScheme()

static setEncryptionScheme (   $algo)
static

Sets the default encryption algorithm for PBES2

public

Paramètres
string$algo

◆ setIterationCount()

static setIterationCount (   $count)
static

Sets the iteration count

public

Paramètres
int$count

Références $count.

◆ setPRF()

static setPRF (   $algo)
static

Sets the PRF for PBES2

public

Paramètres
string$algo

◆ 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$oidoptional
string$publicKeyoptional
array$optionsoptional
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

Wrap a public key appropriately

public

Paramètres
string$key
mixed$params
string$oid
Renvoie
string

Références $key, $oid, $params, Base64\encode(), ASN1\encodeDER(), et phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables().

Documentation des champs

◆ $defaultEncryptionAlgorithm

$defaultEncryptionAlgorithm = 'id-PBES2'
staticprivate

◆ $defaultEncryptionScheme

$defaultEncryptionScheme = 'aes128-CBC-PAD'
staticprivate

◆ $defaultIterationCount

$defaultIterationCount = 2048
staticprivate

◆ $defaultPRF

$defaultPRF = 'id-hmacWithSHA256'
staticprivate

◆ $oidsLoaded

$oidsLoaded = false
staticprivate

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