Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
setKeyLength ($length) | |
setKey ($key) | |
encrypt ($plaintext) | |
decrypt ($ciphertext) | |
Fonctions membres publiques hérités de StreamCipher | |
__construct () | |
usesIV () | |
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 () | |
Champs de données | |
const | ENCRYPT = 0 |
const | DECRYPT = 1 |
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 | |
isValidEngineHelper ($engine) | |
encryptBlock ($in) | |
decryptBlock ($in) | |
setupKey () | |
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 | |
$key_length = 128 | |
$cipher_name_mcrypt = 'arcfour' | |
$key | |
Attributs protégés hérités de StreamCipher | |
$block_size = 0 | |
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 | |
Fonctions membres privées | |
crypt ($text, $mode) | |
Attributs privés | |
$stream | |
Membres hérités additionnels | |
Fonctions membres protégées statiques hérités de SymmetricKey | |
static | safe_intval ($x) |
static | safe_intval_inline () |
static | nullPad128 ($str) |
|
private |
Encrypts or decrypts a message.
string | $text | |
int | $mode |
Références $i, SymmetricKey\$mode, RC4\$stream, $text, et SymmetricKey\setup().
Référencé par RC4\decrypt(), et RC4\encrypt().
decrypt | ( | $ciphertext | ) |
Decrypts a message.
$this->decrypt($this->encrypt($plaintext)) == $this->encrypt($this->encrypt($plaintext)). At least if the continuous buffer is disabled.
string | $ciphertext |
Références RC4\crypt().
|
protected |
Decrypts a block
private
string | $in |
encrypt | ( | $plaintext | ) |
Encrypts a message.
string | $plaintext |
Références RC4\crypt().
|
protected |
Encrypts a block
private
string | $in |
|
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.
setKey | ( | $key | ) |
Sets the key length
Keys can be between 1 and 256 bytes long.
public
string | $key |
Références RC4\$key.
setKeyLength | ( | $length | ) |
Sets the key length
Keys can be between 1 and 256 bytes long.
public
int | $length |
|
protected |
|
protected |
|
protected |
Référencé par RC4\setKey(), et RC4\setupKey().
|
protected |
|
private |
Référencé par RC4\crypt().
const DECRYPT = 1 |
private
const ENCRYPT = 0 |
private