Property | Type | Description | |
---|---|---|---|
$bctx | array | Holds the expanded key [p] and the key-depended s-boxes [sb] | |
$block_size | integer | Block Length of the cipher | |
$cfb_init_len | integer | Optimizing value while CFB-encrypting | |
$cipher_name_mcrypt | string | The mcrypt specific name of the cipher | |
$key_length | integer | The Key Length (in bytes) | |
$kl | array | Holds the last used key | |
$parray | array | P-Array consists of 18 32-bit subkeys | |
$sbox0 | array | S-Box 0 | |
$sbox1 | array | S-Box 1 | |
$sbox2 | array | S-Box 2 | |
$sbox3 | array | S-Box 3 |
Method | Description | |
---|---|---|
__construct ( integer $mode ) | Default Constructor. | |
_decryptBlock ( string $in ) : string | Decrypts a block | |
_encryptBlock ( string $in ) : string | Encrypts a block | |
_setupInlineCrypt ( ) | Setup the performance-optimized function for de/encrypt() | |
_setupKey ( ) | Setup the key (expansion) | |
isValidEngine ( integer $engine ) : boolean | Test for engine validity | |
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 _setupInlineCrypt ( ) |
public isValidEngine ( integer $engine ) : boolean | ||
$engine | integer | |
return | boolean |
public setKeyLength ( integer $length ) | ||
$length | integer |
public array $bctx | ||
return | array |
public int $cfb_init_len | ||
return | integer |
public string $cipher_name_mcrypt | ||
return | string |