ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
setKeyLength ($length) | |
Sets the key length. More... | |
_setupKey () | |
Setup the key (expansion) More... | |
_mdsrem ($A, $B) | |
_mdsrem function using by the twofish cipher algorithm More... | |
_encryptBlock ($in) | |
Encrypts a block. More... | |
_decryptBlock ($in) | |
Decrypts a block. 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 = 'twofish' | |
$cfb_init_len = 800 | |
$q0 | |
$q1 | |
$m0 | |
$m1 | |
$m2 | |
$m3 | |
$K = array() | |
$S0 = array() | |
$S1 = array() | |
$S2 = array() | |
$S3 = array() | |
$kl | |
$key_length = 16 | |
Data Fields inherited from phpseclib\Crypt\Base | |
const | MODE_CTR = -1 |
#+ 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 |
#+ 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 50 of file Twofish.php.
phpseclib\Crypt\Twofish::_decryptBlock | ( | $in | ) |
Decrypts a block.
private
string | $in |
Definition at line 615 of file Twofish.php.
References $in, phpseclib\Crypt\Twofish\$K, phpseclib\Crypt\Twofish\$S0, phpseclib\Crypt\Twofish\$S1, phpseclib\Crypt\Twofish\$S2, and phpseclib\Crypt\Twofish\$S3.
phpseclib\Crypt\Twofish::_encryptBlock | ( | $in | ) |
Encrypts a block.
private
string | $in |
Definition at line 559 of file Twofish.php.
References $in, phpseclib\Crypt\Twofish\$K, phpseclib\Crypt\Twofish\$S0, phpseclib\Crypt\Twofish\$S1, phpseclib\Crypt\Twofish\$S2, and phpseclib\Crypt\Twofish\$S3.
phpseclib\Crypt\Twofish::_mdsrem | ( | $A, | |
$B | |||
) |
_mdsrem function using by the twofish cipher algorithm
private
string | $A | |
string | $B |
Definition at line 512 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::_setupInlineCrypt | ( | ) |
Setup the performance-optimized function for de/encrypt()
Definition at line 670 of file Twofish.php.
References $i, phpseclib\Crypt\Twofish\$K, phpseclib\Crypt\Base\_createInlineCryptFunction(), and phpseclib\Crypt\Base\_hashInlineCryptFunction().
phpseclib\Crypt\Twofish::_setupKey | ( | ) |
Setup the key (expansion)
Definition at line 403 of file Twofish.php.
References $i, phpseclib\Crypt\Twofish\$K, phpseclib\Crypt\Base\$key, phpseclib\Crypt\Twofish\$m0, phpseclib\Crypt\Twofish\$m1, phpseclib\Crypt\Twofish\$m2, phpseclib\Crypt\Twofish\$m3, phpseclib\Crypt\Twofish\$q0, phpseclib\Crypt\Twofish\$q1, phpseclib\Crypt\Twofish\$S0, phpseclib\Crypt\Twofish\$S1, phpseclib\Crypt\Twofish\$S2, phpseclib\Crypt\Twofish\$S3, $sc, and phpseclib\Crypt\Twofish\_mdsrem().
phpseclib\Crypt\Twofish::setKeyLength | ( | $length | ) |
Sets the key length.
Valid key lengths are 128, 192 or 256 bits
public
int | $length |
Definition at line 381 of file Twofish.php.
phpseclib\Crypt\Twofish::$cfb_init_len = 800 |
Definition at line 68 of file Twofish.php.
phpseclib\Crypt\Twofish::$cipher_name_mcrypt = 'twofish' |
Definition at line 59 of file Twofish.php.
phpseclib\Crypt\Twofish::$K = array() |
Definition at line 322 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_decryptBlock(), phpseclib\Crypt\Twofish\_encryptBlock(), phpseclib\Crypt\Twofish\_setupInlineCrypt(), and phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$key_length = 16 |
Definition at line 371 of file Twofish.php.
phpseclib\Crypt\Twofish::$kl |
Definition at line 362 of file Twofish.php.
phpseclib\Crypt\Twofish::$m0 |
Definition at line 158 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$m1 |
Definition at line 199 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$m2 |
Definition at line 240 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$m3 |
Definition at line 281 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$q0 |
Definition at line 76 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$q1 |
Definition at line 117 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$S0 = array() |
Definition at line 330 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_decryptBlock(), phpseclib\Crypt\Twofish\_encryptBlock(), and phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$S1 = array() |
Definition at line 338 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_decryptBlock(), phpseclib\Crypt\Twofish\_encryptBlock(), and phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$S2 = array() |
Definition at line 346 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_decryptBlock(), phpseclib\Crypt\Twofish\_encryptBlock(), and phpseclib\Crypt\Twofish\_setupKey().
phpseclib\Crypt\Twofish::$S3 = array() |
Definition at line 354 of file Twofish.php.
Referenced by phpseclib\Crypt\Twofish\_decryptBlock(), phpseclib\Crypt\Twofish\_encryptBlock(), and phpseclib\Crypt\Twofish\_setupKey().