ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
setKeyLength ($length) | |
Sets the key length. More... | |
isValidEngine ($engine) | |
Test for engine validity. More... | |
_setupKey () | |
Setup the key (expansion) More... | |
_encryptBlock ($in) | |
Encrypts a block. More... | |
_decryptBlock ($in) | |
Decrypts a block. More... | |
_setupInlineCrypt () | |
Setup the performance-optimized function for de/encrypt() More... | |
![]() | |
__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 | |
$block_size = 8 | |
$cipher_name_mcrypt = 'blowfish' | |
$cfb_init_len = 500 | |
$sbox0 | |
$sbox1 | |
$sbox2 | |
$sbox3 | |
$parray | |
$bctx | |
$kl | |
$key_length = 16 | |
![]() | |
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 | $WHIRLPOOL_AVAILABLE |
Definition at line 50 of file Blowfish.php.
phpseclib\Crypt\Blowfish::_decryptBlock | ( | $in | ) |
phpseclib\Crypt\Blowfish::_encryptBlock | ( | $in | ) |
Encrypts a block.
private
string | $in |
Definition at line 395 of file Blowfish.php.
References $i, $in, $l, and $r.
Referenced by phpseclib\Crypt\Blowfish\_setupKey().
phpseclib\Crypt\Blowfish::_setupInlineCrypt | ( | ) |
Setup the performance-optimized function for de/encrypt()
Definition at line 465 of file Blowfish.php.
References $i, phpseclib\Crypt\Base\_createInlineCryptFunction(), and phpseclib\Crypt\Base\_hashInlineCryptFunction().
phpseclib\Crypt\Blowfish::_setupKey | ( | ) |
Setup the key (expansion)
Definition at line 338 of file Blowfish.php.
References $data, $i, phpseclib\Crypt\Base\$key, $l, $r, and phpseclib\Crypt\Blowfish\_encryptBlock().
phpseclib\Crypt\Blowfish::isValidEngine | ( | $engine | ) |
Test for engine validity.
This is mainly just a wrapper to set things up for ::isValidEngine()
int | $engine | public |
Definition at line 319 of file Blowfish.php.
References phpseclib\Crypt\Base\$engine, and phpseclib\Crypt\Base\_openssl_translate_mode().
phpseclib\Crypt\Blowfish::setKeyLength | ( | $length | ) |
Sets the key length.
Key lengths can be between 32 and 448 bits.
public
int | $length |
Definition at line 296 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$bctx |
Definition at line 265 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$block_size = 8 |
Definition at line 59 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$cfb_init_len = 500 |
Definition at line 77 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$cipher_name_mcrypt = 'blowfish' |
Definition at line 68 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$key_length = 16 |
Definition at line 286 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$kl |
Definition at line 273 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$parray |
Definition at line 251 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$sbox0 |
Definition at line 87 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$sbox1 |
Definition at line 128 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$sbox2 |
Definition at line 169 of file Blowfish.php.
phpseclib\Crypt\Blowfish::$sbox3 |
Definition at line 210 of file Blowfish.php.