Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe RSAKey

Fonctions membres publiques

 getModulus ()
 
 getModulusLength ()
 
 getExponent ()
 
 getPublicExponent ()
 
 getPrivateExponent ()
 
 getPrimes ()
 
 getExponents ()
 
 getCoefficient ()
 
 isPublic ()
 
 toArray ()
 
 toPEM ()
 

Fonctions membres publiques statiques

static createFromJWK (JWK $jwk)
 
static toPublic (self $private)
 
static exponentiate (self $key, BigInteger $c)
 

Fonctions membres privées

 __construct (JWK $data)
 
 populateBigIntegers ()
 
 convertBase64StringToBigInteger (string $value)
 
 initPublicKey ()
 
 initPrivateKey ()
 
 fromBase64ToInteger ($value)
 

Attributs privés

 $sequence
 
 $private
 
 $values
 
 $modulus
 
 $modulus_length
 
 $public_exponent
 
 $private_exponent
 
 $primes = []
 
 $exponents = []
 
 $coefficient
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( JWK  $data)
private

Documentation des fonctions membres

◆ convertBase64StringToBigInteger()

convertBase64StringToBigInteger ( string  $value)
private

◆ createFromJWK()

static createFromJWK ( JWK  $jwk)
static

◆ exponentiate()

static exponentiate ( self  $key,
BigInteger  $c 
)
static

Exponentiate with or without Chinese Remainder Theorem. Operation with primes 'p' and 'q' is appox. 2x faster.

Paramètres
RSAKey$key
Exceptions
RuntimeExceptionif the exponentiation cannot be achieved

Références $c, $key, BigInteger\createFromDecimal(), et null.

Référencé par RSA\signWithPKCS15(), RSA\signWithPSS(), RSA\verifyWithPKCS15(), et RSA\verifyWithPSS().

◆ fromBase64ToInteger()

fromBase64ToInteger (   $value)
private
Paramètres
string$value
Renvoie
string

Références $value, et Base64Url\decode().

Référencé par RSAKey\initPrivateKey(), et RSAKey\initPublicKey().

◆ getCoefficient()

getCoefficient ( )

Références RSAKey\$coefficient.

◆ getExponent()

getExponent ( )

◆ getExponents()

getExponents ( )
Renvoie
BigInteger[]

Références RSAKey\$exponents.

◆ getModulus()

getModulus ( )

Références RSAKey\$modulus.

Référencé par RSAKey\populateBigIntegers().

◆ getModulusLength()

getModulusLength ( )

Références RSAKey\$modulus_length.

◆ getPrimes()

getPrimes ( )
Renvoie
BigInteger[]

Références RSAKey\$primes.

◆ getPrivateExponent()

getPrivateExponent ( )

Références RSAKey\$private_exponent.

Référencé par RSAKey\getExponent().

◆ getPublicExponent()

getPublicExponent ( )

Références RSAKey\$public_exponent.

Référencé par RSAKey\getExponent().

◆ initPrivateKey()

initPrivateKey ( )
private

Références $n, et RSAKey\fromBase64ToInteger().

Référencé par RSAKey\toPEM().

◆ initPublicKey()

initPublicKey ( )
private

Références $n, et RSAKey\fromBase64ToInteger().

Référencé par RSAKey\toPEM().

◆ isPublic()

isPublic ( )

Référencé par RSAKey\populateBigIntegers().

◆ populateBigIntegers()

populateBigIntegers ( )
private

◆ toArray()

toArray ( )

Références RSAKey\$values.

◆ toPEM()

◆ toPublic()

static toPublic ( self  $private)
static
Paramètres
RSAKey$private
Renvoie
RSAKey

Références $data, $key, et RSAKey\$private.

Documentation des champs

◆ $coefficient

$coefficient
private

Référencé par RSAKey\getCoefficient().

◆ $exponents

$exponents = []
private

Référencé par RSAKey\getExponents().

◆ $modulus

$modulus
private

Référencé par RSAKey\getModulus().

◆ $modulus_length

$modulus_length
private

Référencé par RSAKey\getModulusLength().

◆ $primes

$primes = []
private

Référencé par RSAKey\getPrimes().

◆ $private

$private
private

Référencé par RSAKey\toPublic().

◆ $private_exponent

$private_exponent
private

Référencé par RSAKey\getPrivateExponent().

◆ $public_exponent

$public_exponent
private

Référencé par RSAKey\getPublicExponent().

◆ $sequence

$sequence
private

◆ $values

$values
private

Référencé par RSAKey\toArray().


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