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

Fonctions membres publiques statiques

static sign (RSAKey $key, string $message, string $hash, int $mode)
 
static signWithPSS (RSAKey $key, string $message, string $hash)
 
static signWithPKCS15 (RSAKey $key, string $message, string $hash)
 
static verify (RSAKey $key, string $message, string $signature, string $hash, int $mode)
 
static verifyWithPSS (RSAKey $key, string $message, string $signature, string $hash)
 
static verifyWithPKCS15 (RSAKey $key, string $message, string $signature, string $hash)
 

Champs de données

const SIGNATURE_PSS = 1
 
const SIGNATURE_PKCS1 = 2
 

Fonctions membres privées statiques

static convertIntegerToOctetString (BigInteger $x, int $xLen)
 
static getMGF1 (string $mgfSeed, int $maskLen, Hash $mgfHash)
 
static encodeEMSAPSS (string $message, int $modulusLength, Hash $hash)
 
static verifyEMSAPSS (string $m, string $em, int $emBits, Hash $hash)
 
static encodeEMSA15 (string $m, int $emBits, Hash $hash)
 

Documentation des fonctions membres

◆ convertIntegerToOctetString()

static convertIntegerToOctetString ( BigInteger  $x,
int  $xLen 
)
staticprivate
Exceptions
RuntimeExceptionif the value cannot be converted

Références BigInteger\toBytes().

◆ encodeEMSA15()

static encodeEMSA15 ( string  $m,
int  $emBits,
Hash  $hash 
)
staticprivate
Exceptions
RuntimeExceptionif the value cannot be encoded

Références $hash.

◆ encodeEMSAPSS()

static encodeEMSAPSS ( string  $message,
int  $modulusLength,
Hash  $hash 
)
staticprivate

EMSA-PSS-ENCODE.

Exceptions
RuntimeExceptionif the message length is invalid

Références $db, $hash, et $message.

◆ getMGF1()

static getMGF1 ( string  $mgfSeed,
int  $maskLen,
Hash  $mgfHash 
)
staticprivate

MGF1.

Références $c, $count, $i, Hash\getLength(), et Hash\hash().

◆ sign()

static sign ( RSAKey  $key,
string  $message,
string  $hash,
int  $mode 
)
static
Exceptions
RuntimeExceptionif the data cannot be signed
InvalidArgumentExceptionif the signature mode is not supported

Références $hash, $key, $message, $mode, et $result.

◆ signWithPKCS15()

static signWithPKCS15 ( RSAKey  $key,
string  $message,
string  $hash 
)
static

Create a signature.

Obsolète:
Please use openssl_sign

Références Hash\$hash, $key, $message, BigInteger\createFromBinaryString(), et RSAKey\exponentiate().

◆ signWithPSS()

static signWithPSS ( RSAKey  $key,
string  $message,
string  $hash 
)
static

◆ verify()

static verify ( RSAKey  $key,
string  $message,
string  $signature,
string  $hash,
int  $mode 
)
static
Exceptions
InvalidArgumentExceptionif the signature mode is not supported

Références $hash, $key, $message, et $mode.

◆ verifyEMSAPSS()

static verifyEMSAPSS ( string  $m,
string  $em,
int  $emBits,
Hash  $hash 
)
staticprivate

EMSA-PSS-VERIFY.

Exceptions
InvalidArgumentExceptionif the signature cannot be verified

Références $db, $hash, $temp, et null.

◆ verifyWithPKCS15()

static verifyWithPKCS15 ( RSAKey  $key,
string  $message,
string  $signature,
string  $hash 
)
static

Verifies a signature.

Obsolète:
Please use openssl_sign
Exceptions
RuntimeExceptionif the signature cannot be verified

Références Hash\$hash, $key, $message, BigInteger\createFromBinaryString(), et RSAKey\exponentiate().

◆ verifyWithPSS()

static verifyWithPSS ( RSAKey  $key,
string  $message,
string  $signature,
string  $hash 
)
static

Verifies a signature.

Exceptions
RuntimeExceptionif the signature cannot be verified

Références Hash\$hash, $key, $message, BigInteger\createFromBinaryString(), et RSAKey\exponentiate().

Documentation des champs

◆ SIGNATURE_PKCS1

const SIGNATURE_PKCS1 = 2

Use the PKCS#1.

◆ SIGNATURE_PSS

const SIGNATURE_PSS = 1

Probabilistic Signature Scheme.


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