Property | Type | Description | |
---|---|---|---|
$Nb | integer | The Block Length divided by 32 | |
$Nk | integer | The Key Length divided by 32 | |
$Nr | integer | The Number of Rounds | |
$c | array | Shift offsets | |
$cipher_name_mcrypt | string | Mcrypt is useable for 128/192/256-bit $block_size/$key_length. For 160/224 not. \phpseclib\Crypt\Rijndael determines automatically whether mcrypt is useable or not for the current $block_size/$key_length. In case of, $cipher_name_mcrypt will be set dynamically at run time accordingly. | |
$dw | array | The Inverse Key Schedule | |
$key_length | integer | The Key Length (in bytes) | |
$kl | array | Holds the last used key- and block_size information | |
$password_default_salt | string | The default salt used by setPassword() | |
$w | array | The Key Schedule |
Method | Description | |
---|---|---|
__construct ( integer $mode ) | Default Constructor. | |
_decryptBlock ( string $in ) : string | Decrypts a block | |
_encryptBlock ( string $in ) : string | Encrypts a block | |
_getInvTables ( ) : array | Provides the inverse mixColumns and inverse sboxes tables | |
_getTables ( ) : array | Provides the mixColumns and sboxes tables | |
_setupInlineCrypt ( ) | Setup the performance-optimized function for de/encrypt() | |
_setupKey ( ) | Setup the key (expansion) | |
_subWord ( integer $word ) | Performs S-Box substitutions | |
isValidEngine ( integer $engine ) : boolean | Test for engine validity | |
setBlockLength ( integer $length ) | Sets the block length | |
setKey ( string $key ) | Sets the key. | |
setKeyLength ( integer $length ) | Sets the key length. |
public _decryptBlock ( string $in ) : string | ||
$in | string | |
return | string |
public _encryptBlock ( string $in ) : string | ||
$in | string | |
return | string |
public _getInvTables ( ) : array | ||
return | array | &$tables |
public _getTables ( ) : array | ||
return | array | &$tables |
public _setupInlineCrypt ( ) |
public isValidEngine ( integer $engine ) : boolean | ||
$engine | integer | |
return | boolean |
public setBlockLength ( integer $length ) | ||
$length | integer |
public setKeyLength ( integer $length ) | ||
$length | integer |
public string $cipher_name_mcrypt | ||
return | string |
public array $kl | ||
return | array |
public string $password_default_salt | ||
return | string |