|
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) |
|
|
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) |
|
◆ convertIntegerToOctetString()
static convertIntegerToOctetString |
( |
BigInteger |
$x, |
|
|
int |
$xLen |
|
) |
| |
|
staticprivate |
◆ encodeEMSA15()
static encodeEMSA15 |
( |
string |
$m, |
|
|
int |
$emBits, |
|
|
Hash |
$hash |
|
) |
| |
|
staticprivate |
- Exceptions
-
RuntimeException | if the value cannot be encoded |
Références $hash.
◆ encodeEMSAPSS()
static encodeEMSAPSS |
( |
string |
$message, |
|
|
int |
$modulusLength, |
|
|
Hash |
$hash |
|
) |
| |
|
staticprivate |
EMSA-PSS-ENCODE.
- Exceptions
-
RuntimeException | if the message length is invalid |
Références $db, $hash, et $message.
◆ getMGF1()
static getMGF1 |
( |
string |
$mgfSeed, |
|
|
int |
$maskLen, |
|
|
Hash |
$mgfHash |
|
) |
| |
|
staticprivate |
◆ sign()
static sign |
( |
RSAKey |
$key, |
|
|
string |
$message, |
|
|
string |
$hash, |
|
|
int |
$mode |
|
) |
| |
|
static |
- Exceptions
-
RuntimeException | if the data cannot be signed |
InvalidArgumentException | if 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 |
◆ 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
-
InvalidArgumentException | if 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
-
InvalidArgumentException | if 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 |
◆ verifyWithPSS()
static verifyWithPSS |
( |
RSAKey |
$key, |
|
|
string |
$message, |
|
|
string |
$signature, |
|
|
string |
$hash |
|
) |
| |
|
static |
◆ SIGNATURE_PKCS1
const SIGNATURE_PKCS1 = 2 |
◆ SIGNATURE_PSS
La documentation de cette classe a été générée à partir du fichier suivant :