Property | Type | Description | |
---|---|---|---|
$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 | |
$current_key_length | integer | The key length in bits. | |
$default_key_length | integer | The key length in bits. | |
$invpitable | array | Inverse key expansion randomization table. | |
$key | string | The Key | |
$key_length | integer | Key Length (in bytes) | |
$keys | array | The Key Schedule | |
$orig_key | string | The Original (unpadded) Key | |
$pitable | array | Twice the same 256-value sequence to save a modulus in key expansion. | |
$skip_key_adjustment | boolean | Don't truncate / null pad key |
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 ( ) | Creates the key schedule | |
_setupMcrypt ( ) | Setup the \phpseclib\Crypt\Common\SymmetricKey::ENGINE_MCRYPT $engine | |
decrypt ( string $ciphertext ) : string | Decrypts a message. | |
encrypt ( string $plaintext ) : string | Encrypts a message. | |
getKeyLength ( ) : integer | Returns the current key length | |
isValidEngine ( integer $engine ) : boolean | Test for engine validity | |
setKey ( string $key, integer $t1 = false ) | 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 _setupMcrypt ( ) |
public getKeyLength ( ) : integer | ||
return | integer |
public isValidEngine ( integer $engine ) : boolean | ||
$engine | integer | |
return | boolean |
public setKeyLength ( integer $length ) | ||
$length | integer | in bits |
public int $cfb_init_len | ||
return | integer |
public string $cipher_name_mcrypt | ||
return | string |
public int $current_key_length | ||
return | integer |
public int $default_key_length | ||
return | integer |
public array $invpitable | ||
return | array |
public array $pitable | ||
return | array |
public bool $skip_key_adjustment | ||
return | boolean |