Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($mode) | |
setKeyLength ($length) | |
getKeyLength () | |
setKey ($key, $t1=false) | |
encrypt ($plaintext) | |
decrypt ($ciphertext) | |
Fonctions membres publiques hérités de SymmetricKey | |
__construct ($mode) | |
setIV ($iv) | |
enablePoly1305 () | |
setPoly1305Key ($key=null) | |
setNonce ($nonce) | |
setAAD ($aad) | |
usesIV () | |
usesNonce () | |
getKeyLength () | |
getBlockLength () | |
getBlockLengthInBytes () | |
setKeyLength ($length) | |
setKey ($key) | |
setPassword ($password, $method='pbkdf2',... $func_args) | |
encrypt ($plaintext) | |
decrypt ($ciphertext) | |
getTag ($length=16) | |
setTag ($tag) | |
enablePadding () | |
disablePadding () | |
enableContinuousBuffer () | |
disableContinuousBuffer () | |
isValidEngine ($engine) | |
setPreferredEngine ($engine) | |
getEngine () | |
getMode () | |
Fonctions membres protégées | |
isValidEngineHelper ($engine) | |
encryptBlock ($in) | |
decryptBlock ($in) | |
setupKey () | |
setupInlineCrypt () | |
Fonctions membres protégées hérités de SymmetricKey | |
getIV ($iv) | |
openssl_translate_mode () | |
isValidEngineHelper ($engine) | |
setEngine () | |
encryptBlock ($in) | |
decryptBlock ($in) | |
setupKey () | |
setup () | |
pad ($text) | |
unpad ($text) | |
createInlineCryptFunction ($cipher_code) | |
poly1305 ($text) | |
Attributs protégés | |
$block_size = 8 | |
$key | |
$key_length = 16 | |
$cipher_name_mcrypt = 'rc2' | |
$cfb_init_len = 500 | |
Attributs protégés hérités de SymmetricKey | |
$mode | |
$block_size = 16 | |
$key = false | |
$iv = false | |
$encryptIV | |
$decryptIV | |
$continuousBuffer = false | |
$enbuffer | |
$debuffer | |
$cfb_init_len = 600 | |
$changed = true | |
$nonIVChanged = true | |
$engine | |
$cipher_name_mcrypt | |
$cipher_name_openssl | |
$cipher_name_openssl_ecb | |
$inline_crypt | |
$explicit_key_length = false | |
$aad = '' | |
$newtag = false | |
$oldtag = false | |
$poly1305Key | |
$usePoly1305 = false | |
$nonce = false | |
Attributs privés | |
$orig_key | |
$skip_key_adjustment = true | |
$default_key_length = 1024 | |
$current_key_length | |
$keys | |
Attributs privés statiques | |
static | $pitable |
static | $invpitable |
Membres hérités additionnels | |
Champs de données hérités de SymmetricKey | |
const | MODE_CTR = -1 |
const | MODE_ECB = 1 |
const | MODE_CBC = 2 |
const | MODE_CFB = 3 |
const | MODE_CFB8 = 7 |
const | MODE_OFB8 = 8 |
const | MODE_OFB = 4 |
const | MODE_GCM = 5 |
const | MODE_STREAM = 6 |
const | MODE_MAP |
const const | ENGINE_INTERNAL = 1 |
const | ENGINE_EVAL = 2 |
const | ENGINE_MCRYPT = 3 |
const | ENGINE_OPENSSL = 4 |
const | ENGINE_LIBSODIUM = 5 |
const | ENGINE_OPENSSL_GCM = 6 |
const | ENGINE_MAP |
Fonctions membres protégées statiques hérités de SymmetricKey | |
static | safe_intval ($x) |
static | safe_intval_inline () |
static | nullPad128 ($str) |
__construct | ( | $mode | ) |
Default Constructor.
string | $mode | public |
Références SymmetricKey\$mode, et Symfony\Contracts\Service\__construct().
decrypt | ( | $ciphertext | ) |
Decrypts a message.
Mostly a wrapper for ::decrypt, with some additional OpenSSL handling code
string | $ciphertext |
Références RC2\$key, RC2\$orig_key, $result, et $temp.
|
protected |
encrypt | ( | $plaintext | ) |
Encrypts a message.
Mostly a wrapper for ::encrypt, with some additional OpenSSL handling code
string | $plaintext |
Références RC2\$key, RC2\$orig_key, $result, et $temp.
|
protected |
getKeyLength | ( | ) |
|
protected |
Test for engine validity
This is mainly just a wrapper to set things up for ::isValidEngine()
int | $engine | protected |
Références SymmetricKey\$engine, et SymmetricKey\openssl_translate_mode().
setKey | ( | $key, | |
$t1 = false |
|||
) |
Sets the key.
Keys can be of any length. RC2, itself, uses 8 to 1024 bit keys (eg. strlen($key) <= 128), however, we only use the first 128 bytes if $key has more then 128 bytes in it, and set $key to a single null byte if it is empty.
string | $key | |
int | boolean | $t1 | optional Effective key length in bits. |
Références RC2\$default_key_length, $i, RC2\$key, RC2\$pitable, et SymmetricKey\setEngine().
Référencé par RC2\setupKey().
setKeyLength | ( | $length | ) |
Sets the key length.
Valid key lengths are 8 to 1024. Calling this function after setting the key has no effect until the next ::setKey() call.
public
int | $length | in bits |
|
protected |
Setup the performance-optimized function for de/encrypt()
Références $actions, RC2\$keys, $limit, et SymmetricKey\createInlineCryptFunction().
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
|
staticprivate |
|
protected |
Référencé par RC2\decrypt(), RC2\encrypt(), et RC2\setKey().
|
protected |
|
private |
Référencé par RC2\decryptBlock(), RC2\encryptBlock(), et RC2\setupInlineCrypt().
|
private |
Référencé par RC2\decrypt(), et RC2\encrypt().
|
staticprivate |
Référencé par RC2\setKey().
|
private |