Property | Type | Description | |
---|---|---|---|
$K | array | The Key Schedule Array | |
$S0 | array | The Key depended S-Table 0 | |
$S1 | array | The Key depended S-Table 1 | |
$S2 | array | The Key depended S-Table 2 | |
$S3 | array | The Key depended S-Table 3 | |
$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 | |
$m0 | array | M-Table | |
$m1 | array | M-Table | |
$m2 | array | M-Table | |
$m3 | array | M-Table | |
$q0 | array | Q-Table | |
$q1 | array | Q-Table |
Method | Description | |
---|---|---|
__construct ( integer $mode ) | Default Constructor. | |
_decryptBlock ( string $in ) : string | Decrypts a block | |
_encryptBlock ( string $in ) : string | Encrypts a block | |
_mdsrem ( string $A, string $B ) : array | _mdsrem function using by the twofish cipher algorithm | |
_setupInlineCrypt ( ) | Setup the performance-optimized function for de/encrypt() | |
_setupKey ( ) | Setup the key (expansion) | |
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 _setupInlineCrypt ( ) |
public setKeyLength ( integer $length ) | ||
$length | integer |
public int $cfb_init_len | ||
return | integer |
public string $cipher_name_mcrypt | ||
return | string |