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

Fonctions membres publiques statiques

static setEncryptionAlgorithm ($algo)
 
- 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, $type, $password, array $options=[])
 
static wrapPublicKey ($key, $type)
 

Fonctions membres privées statiques

static getEncryptionMode ($mode)
 
static getEncryptionObject ($algo)
 
static generateSymmetricKey ($password, $iv, $length)
 

Attributs privés statiques

static $defaultEncryptionAlgorithm = 'AES-128-CBC'
 

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

◆ 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
string$mode
Renvoie
int
Exceptions

Références $mode.

◆ getEncryptionObject()

static getEncryptionObject (   $algo)
staticprivate

Returns a cipher object corresponding to a string

public

Paramètres
string$algo
Renvoie
string
Exceptions

◆ 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 $format, $key, $password, EncoderInterface\decode(), elseif, ASN1\extractBER(), et Strings\is_stringable().

◆ setEncryptionAlgorithm()

static setEncryptionAlgorithm (   $algo)
static

Sets the default encryption algorithm

public

Paramètres
string$algo

◆ wrapPrivateKey()

static wrapPrivateKey (   $key,
  $type,
  $password,
array  $options = [] 
)
staticprotected

Wrap a private key appropriately

public

Paramètres
string$key
string$type
string$password
array$optionsoptional
Renvoie
string

Références $key, $options, $password, EncoderInterface\encode(), Base64\encode(), et Random\string().

◆ wrapPublicKey()

static wrapPublicKey (   $key,
  $type 
)
staticprotected

Wrap a public key appropriately

public

Paramètres
string$key
string$type
Renvoie
string

Références $key, et Base64\encode().

Documentation des champs

◆ $defaultEncryptionAlgorithm

$defaultEncryptionAlgorithm = 'AES-128-CBC'
staticprivate

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