|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for phpseclib\Crypt\Rijndael:
Collaboration diagram for phpseclib\Crypt\Rijndael:Public Member Functions | |
| setKeyLength ($length) | |
| Sets the key length. More... | |
| setBlockLength ($length) | |
| Sets the block length. More... | |
| isValidEngine ($engine) | |
| Test for engine validity. More... | |
| _encryptBlock ($in) | |
| Encrypts a block. More... | |
| _decryptBlock ($in) | |
| Decrypts a block. More... | |
| _setupKey () | |
| Setup the key (expansion) More... | |
| _subWord ($word) | |
| Performs S-Box substitutions. More... | |
| & | _getTables () |
| Provides the mixColumns and sboxes tables. More... | |
| & | _getInvTables () |
| Provides the inverse mixColumns and inverse sboxes tables. More... | |
| _setupInlineCrypt () | |
| Setup the performance-optimized function for de/encrypt() More... | |
Public Member Functions inherited from phpseclib\Crypt\Base | |
| __construct ($mode=self::MODE_CBC) | |
| Default Constructor. More... | |
| setIV ($iv) | |
| Sets the initialization vector. More... | |
| setKeyLength ($length) | |
| Sets the key length. More... | |
| getKeyLength () | |
| Returns the current key length in bits. More... | |
| getBlockLength () | |
| Returns the current block length in bits. More... | |
| setKey ($key) | |
| Sets the key. More... | |
| setPassword ($password, $method='pbkdf2') | |
| Sets the password. More... | |
| encrypt ($plaintext) | |
| Encrypts a message. More... | |
| decrypt ($ciphertext) | |
| Decrypts a message. More... | |
| _openssl_ctr_process ($plaintext, &$encryptIV, &$buffer) | |
| OpenSSL CTR Processor. More... | |
| _openssl_ofb_process ($plaintext, &$encryptIV, &$buffer) | |
| OpenSSL OFB Processor. More... | |
| _openssl_translate_mode () | |
| phpseclib <-> OpenSSL Mode Mapper More... | |
| enablePadding () | |
| Pad "packets". More... | |
| disablePadding () | |
| Do not pad packets. More... | |
| enableContinuousBuffer () | |
| Treat consecutive "packets" as if they are a continuous buffer. More... | |
| disableContinuousBuffer () | |
| Treat consecutive packets as if they are a discontinuous buffer. More... | |
| isValidEngine ($engine) | |
| Test for engine validity. More... | |
| setPreferredEngine ($engine) | |
| Sets the preferred crypt engine. More... | |
| getEngine () | |
| Returns the engine currently being utilized. More... | |
| _setEngine () | |
| Sets the engine as appropriate. More... | |
| _encryptBlock ($in) | |
| Encrypts a block. More... | |
| _decryptBlock ($in) | |
| Decrypts a block. More... | |
| _setupKey () | |
| Setup the key (expansion) More... | |
| _setup () | |
| Setup the self::ENGINE_INTERNAL $engine. More... | |
| _setupMcrypt () | |
| Setup the self::ENGINE_MCRYPT $engine. More... | |
| _pad ($text) | |
| Pads a string. More... | |
| _unpad ($text) | |
| Unpads a string. More... | |
| _clearBuffers () | |
| Clears internal buffers. More... | |
| _string_shift (&$string, $index=1) | |
| String Shift. More... | |
| _string_pop (&$string, $index=1) | |
| String Pop. More... | |
| _increment_str (&$var) | |
| Increment the current string. More... | |
| _setupInlineCrypt () | |
| Setup the performance-optimized function for de/encrypt() More... | |
| _createInlineCryptFunction ($cipher_code) | |
| Creates the performance-optimized function for en/decrypt() More... | |
| & | _getLambdaFunctions () |
| Holds the lambda_functions table (classwide) More... | |
| _hashInlineCryptFunction ($bytes) | |
| Generates a digest from $bytes. More... | |
Data Fields | |
| $cipher_name_mcrypt = 'rijndael-128' | |
| $password_default_salt = 'phpseclib' | |
| $w | |
| $dw | |
| $Nb = 4 | |
| $key_length = 16 | |
| $Nk = 4 | |
| $Nr | |
| $c | |
| $kl | |
Data Fields inherited from phpseclib\Crypt\Base | |
| const | MODE_CTR = -1 |
| #+ @access public More... | |
| const | MODE_ECB = 1 |
| Encrypt / decrypt using the Electronic Code Book mode. More... | |
| const | MODE_CBC = 2 |
| Encrypt / decrypt using the Code Book Chaining mode. More... | |
| const | MODE_CFB = 3 |
| Encrypt / decrypt using the Cipher Feedback mode. More... | |
| const | MODE_OFB = 4 |
| Encrypt / decrypt using the Output Feedback mode. More... | |
| const | MODE_STREAM = 5 |
| Encrypt / decrypt using streaming mode. More... | |
| const | ENGINE_INTERNAL = 1 |
| #+ @access private More... | |
| const | ENGINE_MCRYPT = 2 |
| Base value for the mcrypt implementation $engine switch. More... | |
| const | ENGINE_OPENSSL = 3 |
| Base value for the mcrypt implementation $engine switch. More... | |
| $mode | |
| $block_size = 16 | |
| $key = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" | |
| $iv | |
| $encryptIV | |
| $decryptIV | |
| $continuousBuffer = false | |
| $enbuffer | |
| $debuffer | |
| $enmcrypt | |
| $demcrypt | |
| $enchanged = true | |
| $dechanged = true | |
| $ecb | |
| $cfb_init_len = 600 | |
| $changed = true | |
| $padding = true | |
| $paddable = false | |
| $engine | |
| $preferredEngine | |
| $cipher_name_mcrypt | |
| $cipher_name_openssl | |
| $cipher_name_openssl_ecb | |
| $password_default_salt = 'phpseclib/salt' | |
| $inline_crypt | |
| $use_inline_crypt | |
| $openssl_emulate_ctr = false | |
| $openssl_options | |
| $explicit_key_length = false | |
| $skip_key_adjustment = false | |
Additional Inherited Members | |
Static Public Attributes inherited from phpseclib\Crypt\Base | |
| static | $WHIRLPOOL_AVAILABLE |
Definition at line 66 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::_decryptBlock | ( | $in | ) |
Decrypts a block.
@access private
| string | $in |
Reimplemented from phpseclib\Crypt\Base.
Definition at line 377 of file Rijndael.php.
References phpseclib\Crypt\Rijndael\$c, phpseclib\Crypt\Rijndael\$dw, $i, $in, $l, phpseclib\Crypt\Rijndael\$Nb, phpseclib\Crypt\Rijndael\$Nr, $state, and phpseclib\Crypt\Rijndael\_getInvTables().
Here is the call graph for this function:| phpseclib\Crypt\Rijndael::_encryptBlock | ( | $in | ) |
Encrypts a block.
@access private
| string | $in |
Reimplemented from phpseclib\Crypt\Base.
Definition at line 276 of file Rijndael.php.
References phpseclib\Crypt\Rijndael\$c, $i, $in, $l, phpseclib\Crypt\Rijndael\$Nb, phpseclib\Crypt\Rijndael\$Nr, $state, phpseclib\Crypt\Rijndael\$w, and phpseclib\Crypt\Rijndael\_getTables().
Here is the call graph for this function:| & phpseclib\Crypt\Rijndael::_getInvTables | ( | ) |
Provides the inverse mixColumns and inverse sboxes tables.
Definition at line 690 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_decryptBlock(), and phpseclib\Crypt\Rijndael\_setupKey().
Here is the caller graph for this function:| & phpseclib\Crypt\Rijndael::_getTables | ( | ) |
Provides the mixColumns and sboxes tables.
Definition at line 601 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_encryptBlock(), and phpseclib\Crypt\Rijndael\_subWord().
Here is the caller graph for this function:| phpseclib\Crypt\Rijndael::_setupInlineCrypt | ( | ) |
Setup the performance-optimized function for de/encrypt()
Reimplemented from phpseclib\Crypt\Base.
Definition at line 771 of file Rijndael.php.
References phpseclib\Crypt\Rijndael\$c, phpseclib\Crypt\Rijndael\$dw, $i, phpseclib\Crypt\Rijndael\$Nb, phpseclib\Crypt\Rijndael\$Nr, $s, phpseclib\Crypt\Rijndael\$w, phpseclib\Crypt\Base\_createInlineCryptFunction(), phpseclib\Crypt\Base\_getLambdaFunctions(), and phpseclib\Crypt\Base\_hashInlineCryptFunction().
Here is the call graph for this function:| phpseclib\Crypt\Rijndael::_setupKey | ( | ) |
Setup the key (expansion)
Reimplemented from phpseclib\Crypt\Base.
Definition at line 466 of file Rijndael.php.
References phpseclib\Crypt\Rijndael\$c, phpseclib\Crypt\Rijndael\$dw, $i, phpseclib\Crypt\Rijndael\$Nk, $r, $row, phpseclib\Crypt\Rijndael\$w, phpseclib\Crypt\Rijndael\_getInvTables(), and phpseclib\Crypt\Rijndael\_subWord().
Here is the call graph for this function:| phpseclib\Crypt\Rijndael::_subWord | ( | $word | ) |
Performs S-Box substitutions.
@access private
| int | $word |
Definition at line 579 of file Rijndael.php.
References phpseclib\Crypt\Rijndael\_getTables().
Referenced by phpseclib\Crypt\Rijndael\_setupKey().
Here is the call graph for this function:
Here is the caller graph for this function:| phpseclib\Crypt\Rijndael::isValidEngine | ( | $engine | ) |
Test for engine validity.
This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
| int | $engine | @access public |
Reimplemented from phpseclib\Crypt\Base.
Definition at line 248 of file Rijndael.php.
References phpseclib\Crypt\Base\$engine, phpseclib\Crypt\Base\_openssl_translate_mode(), phpseclib\Crypt\Base\ENGINE_MCRYPT, and phpseclib\Crypt\Base\ENGINE_OPENSSL.
Here is the call graph for this function:| phpseclib\Crypt\Rijndael::setBlockLength | ( | $length | ) |
Sets the block length.
Valid block lengths are 128, 160, 192, 224, and 256. If the length is less than 128, it will be rounded up to
@access public
| int | $length |
Reimplemented in phpseclib\Crypt\AES.
Definition at line 224 of file Rijndael.php.
References phpseclib\Crypt\Base\_setEngine().
Here is the call graph for this function:| phpseclib\Crypt\Rijndael::setKeyLength | ( | $length | ) |
Sets the key length.
Valid key lengths are 128, 160, 192, 224, and 256. If the length is less than 128, it will be rounded up to
Note: phpseclib extends Rijndael (and AES) for using 160- and 224-bit keys but they are officially not defined and the most (if not all) implementations are not able using 160/224-bit keys but round/pad them up to 192/256 bits as, for example, mcrypt will do.
That said, if you want be compatible with other Rijndael and AES implementations, you should not setKeyLength(160) or setKeyLength(224).
Additional: In case of 160- and 224-bit keys, phpseclib will/can, for that reason, not use the mcrypt php extension, even if available. This results then in slower encryption.
@access public
| int | $length |
Reimplemented from phpseclib\Crypt\Base.
Reimplemented in phpseclib\Crypt\AES.
Definition at line 193 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::$c |
Definition at line 163 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_decryptBlock(), phpseclib\Crypt\Rijndael\_encryptBlock(), phpseclib\Crypt\Rijndael\_setupInlineCrypt(), and phpseclib\Crypt\Rijndael\_setupKey().
| phpseclib\Crypt\Rijndael::$cipher_name_mcrypt = 'rijndael-128' |
Definition at line 82 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::$dw |
Definition at line 110 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_decryptBlock(), phpseclib\Crypt\Rijndael\_setupInlineCrypt(), and phpseclib\Crypt\Rijndael\_setupKey().
| phpseclib\Crypt\Rijndael::$key_length = 16 |
Definition at line 136 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::$kl |
Definition at line 171 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::$Nb = 4 |
Definition at line 123 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_decryptBlock(), phpseclib\Crypt\Rijndael\_encryptBlock(), and phpseclib\Crypt\Rijndael\_setupInlineCrypt().
| phpseclib\Crypt\Rijndael::$Nk = 4 |
Definition at line 146 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_setupKey().
| phpseclib\Crypt\Rijndael::$Nr |
Definition at line 155 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_decryptBlock(), phpseclib\Crypt\Rijndael\_encryptBlock(), and phpseclib\Crypt\Rijndael\_setupInlineCrypt().
| phpseclib\Crypt\Rijndael::$password_default_salt = 'phpseclib' |
Definition at line 92 of file Rijndael.php.
| phpseclib\Crypt\Rijndael::$w |
Definition at line 101 of file Rijndael.php.
Referenced by phpseclib\Crypt\Rijndael\_encryptBlock(), phpseclib\Crypt\Rijndael\_setupInlineCrypt(), and phpseclib\Crypt\Rijndael\_setupKey().