ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
phpseclib\Crypt\RC2 Class Reference
+ Inheritance diagram for phpseclib\Crypt\RC2:
+ Collaboration diagram for phpseclib\Crypt\RC2:

Public Member Functions

 isValidEngine ($engine)
 Test for engine validity. More...
 
 setKeyLength ($length)
 Sets the key length. More...
 
 getKeyLength ()
 Returns the current key length. More...
 
 setKey ($key, $t1=0)
 Sets the key. More...
 
 encrypt ($plaintext)
 Encrypts a message. More...
 
 decrypt ($ciphertext)
 Decrypts a message. More...
 
 _encryptBlock ($in)
 Encrypts a block. More...
 
 _decryptBlock ($in)
 Decrypts a block. More...
 
 _setupMcrypt ()
 Setup the \phpseclib\Crypt\Base::ENGINE_MCRYPT $engine. More...
 
 _setupKey ()
 Creates the key schedule. 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

 $block_size = 8
 
 $key
 
 $orig_key
 
 $skip_key_adjustment = true
 
 $key_length = 16
 
 $cipher_name_mcrypt = 'rc2'
 
 $cfb_init_len = 500
 
 $default_key_length = 1024
 
 $current_key_length
 
 $keys
 
 $pitable
 
 $invpitable
 
- Data Fields inherited from phpseclib\Crypt\Base
const MODE_CTR = -1
 #+ @access 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
 #+ @access 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
 

Detailed Description

Definition at line 46 of file RC2.php.

Member Function Documentation

◆ _decryptBlock()

phpseclib\Crypt\RC2::_decryptBlock (   $in)

Decrypts a block.

See also
\phpseclib\Crypt\Base::_decryptBlock()
\phpseclib\Crypt\Base::decrypt() @access private
Parameters
string$in
Returns
string

Reimplemented from phpseclib\Crypt\Base.

Definition at line 475 of file RC2.php.

476 {
477 list($r0, $r1, $r2, $r3) = array_values(unpack('v*', $in));
479 $limit = 44;
480 $actions = array($limit => 20, 20 => 0);
481 $j = 64;
482
483 for (;;) {
484 // R-mixing round.
485 $r3 = ($r3 | ($r3 << 16)) >> 5;
486 $r3 = ($r3 - $keys[--$j] - ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF;
487 $r2 = ($r2 | ($r2 << 16)) >> 3;
488 $r2 = ($r2 - $keys[--$j] - ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF;
489 $r1 = ($r1 | ($r1 << 16)) >> 2;
490 $r1 = ($r1 - $keys[--$j] - ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF;
491 $r0 = ($r0 | ($r0 << 16)) >> 1;
492 $r0 = ($r0 - $keys[--$j] - ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF;
493
494 if ($j === $limit) {
495 if ($limit === 0) {
496 break;
497 }
498
499 // R-mashing round.
500 $r3 = ($r3 - $keys[$r2 & 0x3F]) & 0xFFFF;
501 $r2 = ($r2 - $keys[$r1 & 0x3F]) & 0xFFFF;
502 $r1 = ($r1 - $keys[$r0 & 0x3F]) & 0xFFFF;
503 $r0 = ($r0 - $keys[$r3 & 0x3F]) & 0xFFFF;
504 $limit = $actions[$limit];
505 }
506 }
507
508 return pack('vvvv', $r0, $r1, $r2, $r3);
509 }
if(php_sapi_name() !='cli') $in
Definition: Utf8Test.php:37

References $in, and phpseclib\Crypt\RC2\$keys.

◆ _encryptBlock()

phpseclib\Crypt\RC2::_encryptBlock (   $in)

Encrypts a block.

See also
\phpseclib\Crypt\Base::_encryptBlock()
\phpseclib\Crypt\Base::encrypt() @access private
Parameters
string$in
Returns
string

Reimplemented from phpseclib\Crypt\Base.

Definition at line 430 of file RC2.php.

431 {
432 list($r0, $r1, $r2, $r3) = array_values(unpack('v*', $in));
434 $limit = 20;
435 $actions = array($limit => 44, 44 => 64);
436 $j = 0;
437
438 for (;;) {
439 // Mixing round.
440 $r0 = (($r0 + $keys[$j++] + ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF) << 1;
441 $r0 |= $r0 >> 16;
442 $r1 = (($r1 + $keys[$j++] + ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF) << 2;
443 $r1 |= $r1 >> 16;
444 $r2 = (($r2 + $keys[$j++] + ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF) << 3;
445 $r2 |= $r2 >> 16;
446 $r3 = (($r3 + $keys[$j++] + ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF) << 5;
447 $r3 |= $r3 >> 16;
448
449 if ($j === $limit) {
450 if ($limit === 64) {
451 break;
452 }
453
454 // Mashing round.
455 $r0 += $keys[$r3 & 0x3F];
456 $r1 += $keys[$r0 & 0x3F];
457 $r2 += $keys[$r1 & 0x3F];
458 $r3 += $keys[$r2 & 0x3F];
459 $limit = $actions[$limit];
460 }
461 }
462
463 return pack('vvvv', $r0, $r1, $r2, $r3);
464 }

References $in, and phpseclib\Crypt\RC2\$keys.

◆ _setupInlineCrypt()

phpseclib\Crypt\RC2::_setupInlineCrypt ( )

Setup the performance-optimized function for de/encrypt()

See also
\phpseclib\Crypt\Base::_setupInlineCrypt() @access private

Reimplemented from phpseclib\Crypt\Base.

Definition at line 553 of file RC2.php.

554 {
555 $lambda_functions =& self::_getLambdaFunctions();
556
557 // The first 10 generated $lambda_functions will use the $keys hardcoded as integers
558 // for the mixing rounds, for better inline crypt performance [~20% faster].
559 // But for memory reason we have to limit those ultra-optimized $lambda_functions to an amount of 10.
560 // (Currently, for Crypt_RC2, one generated $lambda_function cost on php5.5@32bit ~60kb unfreeable mem and ~100kb on php5.5@64bit)
561 $gen_hi_opt_code = (bool)(count($lambda_functions) < 10);
562
563 // Generation of a uniqe hash for our generated code
564 $code_hash = "Crypt_RC2, {$this->mode}";
565 if ($gen_hi_opt_code) {
566 $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
567 }
568
569 // Is there a re-usable $lambda_functions in there?
570 // If not, we have to create it.
571 if (!isset($lambda_functions[$code_hash])) {
572 // Init code for both, encrypt and decrypt.
573 $init_crypt = '$keys = $self->keys;';
574
575 switch (true) {
576 case $gen_hi_opt_code:
578 default:
579 $keys = array();
580 foreach ($this->keys as $k => $v) {
581 $keys[$k] = '$keys[' . $k . ']';
582 }
583 }
584
585 // $in is the current 8 bytes block which has to be en/decrypt
586 $encrypt_block = $decrypt_block = '
587 $in = unpack("v4", $in);
588 $r0 = $in[1];
589 $r1 = $in[2];
590 $r2 = $in[3];
591 $r3 = $in[4];
592 ';
593
594 // Create code for encryption.
595 $limit = 20;
596 $actions = array($limit => 44, 44 => 64);
597 $j = 0;
598
599 for (;;) {
600 // Mixing round.
601 $encrypt_block .= '
602 $r0 = (($r0 + ' . $keys[$j++] . ' +
603 ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF) << 1;
604 $r0 |= $r0 >> 16;
605 $r1 = (($r1 + ' . $keys[$j++] . ' +
606 ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF) << 2;
607 $r1 |= $r1 >> 16;
608 $r2 = (($r2 + ' . $keys[$j++] . ' +
609 ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF) << 3;
610 $r2 |= $r2 >> 16;
611 $r3 = (($r3 + ' . $keys[$j++] . ' +
612 ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF) << 5;
613 $r3 |= $r3 >> 16;';
614
615 if ($j === $limit) {
616 if ($limit === 64) {
617 break;
618 }
619
620 // Mashing round.
621 $encrypt_block .= '
622 $r0 += $keys[$r3 & 0x3F];
623 $r1 += $keys[$r0 & 0x3F];
624 $r2 += $keys[$r1 & 0x3F];
625 $r3 += $keys[$r2 & 0x3F];';
626 $limit = $actions[$limit];
627 }
628 }
629
630 $encrypt_block .= '$in = pack("v4", $r0, $r1, $r2, $r3);';
631
632 // Create code for decryption.
633 $limit = 44;
634 $actions = array($limit => 20, 20 => 0);
635 $j = 64;
636
637 for (;;) {
638 // R-mixing round.
639 $decrypt_block .= '
640 $r3 = ($r3 | ($r3 << 16)) >> 5;
641 $r3 = ($r3 - ' . $keys[--$j] . ' -
642 ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF;
643 $r2 = ($r2 | ($r2 << 16)) >> 3;
644 $r2 = ($r2 - ' . $keys[--$j] . ' -
645 ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF;
646 $r1 = ($r1 | ($r1 << 16)) >> 2;
647 $r1 = ($r1 - ' . $keys[--$j] . ' -
648 ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF;
649 $r0 = ($r0 | ($r0 << 16)) >> 1;
650 $r0 = ($r0 - ' . $keys[--$j] . ' -
651 ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF;';
652
653 if ($j === $limit) {
654 if ($limit === 0) {
655 break;
656 }
657
658 // R-mashing round.
659 $decrypt_block .= '
660 $r3 = ($r3 - $keys[$r2 & 0x3F]) & 0xFFFF;
661 $r2 = ($r2 - $keys[$r1 & 0x3F]) & 0xFFFF;
662 $r1 = ($r1 - $keys[$r0 & 0x3F]) & 0xFFFF;
663 $r0 = ($r0 - $keys[$r3 & 0x3F]) & 0xFFFF;';
664 $limit = $actions[$limit];
665 }
666 }
667
668 $decrypt_block .= '$in = pack("v4", $r0, $r1, $r2, $r3);';
669
670 // Creates the inline-crypt function
671 $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
672 array(
673 'init_crypt' => $init_crypt,
674 'encrypt_block' => $encrypt_block,
675 'decrypt_block' => $decrypt_block
676 )
677 );
678 }
679
680 // Set the inline-crypt function as callback in: $this->inline_crypt
681 $this->inline_crypt = $lambda_functions[$code_hash];
682 }
_hashInlineCryptFunction($bytes)
Generates a digest from $bytes.
Definition: Base.php:2523
& _getLambdaFunctions()
Holds the lambda_functions table (classwide)
Definition: Base.php:2509
_createInlineCryptFunction($cipher_code)
Creates the performance-optimized function for en/decrypt()
Definition: Base.php:2142

References phpseclib\Crypt\RC2\$keys, phpseclib\Crypt\Base\_createInlineCryptFunction(), phpseclib\Crypt\Base\_getLambdaFunctions(), and phpseclib\Crypt\Base\_hashInlineCryptFunction().

+ Here is the call graph for this function:

◆ _setupKey()

phpseclib\Crypt\RC2::_setupKey ( )

Creates the key schedule.

See also
\phpseclib\Crypt\Base::_setupKey() @access private

Reimplemented from phpseclib\Crypt\Base.

Definition at line 532 of file RC2.php.

533 {
534 if (!isset($this->key)) {
535 $this->setKey('');
536 }
537
538 // Key has already been expanded in \phpseclib\Crypt\RC2::setKey():
539 // Only the first value must be altered.
540 $l = unpack('Ca/Cb/v*', $this->key);
541 array_unshift($l, $this->pitable[$l['a']] | ($l['b'] << 8));
542 unset($l['a']);
543 unset($l['b']);
544 $this->keys = $l;
545 }
global $l
Definition: afr.php:30
setKey($key, $t1=0)
Sets the key.
Definition: RC2.php:332

References $l, and phpseclib\Crypt\RC2\setKey().

+ Here is the call graph for this function:

◆ _setupMcrypt()

phpseclib\Crypt\RC2::_setupMcrypt ( )

Setup the \phpseclib\Crypt\Base::ENGINE_MCRYPT $engine.

See also
\phpseclib\Crypt\Base::_setupMcrypt() @access private

Reimplemented from phpseclib\Crypt\Base.

Definition at line 517 of file RC2.php.

518 {
519 if (!isset($this->key)) {
520 $this->setKey('');
521 }
522
523 parent::_setupMcrypt();
524 }

References phpseclib\Crypt\RC2\setKey().

+ Here is the call graph for this function:

◆ decrypt()

phpseclib\Crypt\RC2::decrypt (   $ciphertext)

Decrypts a message.

Mostly a wrapper for \phpseclib\Crypt\Base::decrypt, with some additional OpenSSL handling code

See also
self::encrypt() @access User interface
Parameters
string$ciphertext
Returns
string $plaintext

Reimplemented from phpseclib\Crypt\Base.

Definition at line 408 of file RC2.php.

409 {
410 if ($this->engine == self::ENGINE_OPENSSL) {
411 $temp = $this->key;
412 $this->key = $this->orig_key;
413 $result = parent::decrypt($ciphertext);
414 $this->key = $temp;
415 return $result;
416 }
417
418 return parent::encrypt($ciphertext);
419 }
$result

References phpseclib\Crypt\RC2\$key, phpseclib\Crypt\RC2\$orig_key, and $result.

◆ encrypt()

phpseclib\Crypt\RC2::encrypt (   $plaintext)

Encrypts a message.

Mostly a wrapper for \phpseclib\Crypt\Base::encrypt, with some additional OpenSSL handling code

See also
self::decrypt() @access User interface
Parameters
string$plaintext
Returns
string $ciphertext

Reimplemented from phpseclib\Crypt\Base.

Definition at line 385 of file RC2.php.

386 {
387 if ($this->engine == self::ENGINE_OPENSSL) {
388 $temp = $this->key;
389 $this->key = $this->orig_key;
390 $result = parent::encrypt($plaintext);
391 $this->key = $temp;
392 return $result;
393 }
394
395 return parent::encrypt($plaintext);
396 }

References phpseclib\Crypt\RC2\$key, phpseclib\Crypt\RC2\$orig_key, and $result.

◆ getKeyLength()

phpseclib\Crypt\RC2::getKeyLength ( )

Returns the current key length.

@access public

Returns
int

Reimplemented from phpseclib\Crypt\Base.

Definition at line 311 of file RC2.php.

312 {
314 }

References phpseclib\Crypt\RC2\$current_key_length.

◆ isValidEngine()

phpseclib\Crypt\RC2::isValidEngine (   $engine)

Test for engine validity.

This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()

See also
\phpseclib\Crypt\Base::__construct()
Parameters
int$engine@access public
Returns
bool

Reimplemented from phpseclib\Crypt\Base.

Definition at line 274 of file RC2.php.

275 {
276 switch ($engine) {
278 if ($this->current_key_length != 128 || strlen($this->orig_key) < 16) {
279 return false;
280 }
281 $this->cipher_name_openssl_ecb = 'rc2-ecb';
282 $this->cipher_name_openssl = 'rc2-' . $this->_openssl_translate_mode();
283 }
284
285 return parent::isValidEngine($engine);
286 }
const ENGINE_OPENSSL
Base value for the mcrypt implementation $engine switch.
Definition: Base.php:117
_openssl_translate_mode()
phpseclib <-> OpenSSL Mode Mapper
Definition: Base.php:1423

References phpseclib\Crypt\Base\$engine, phpseclib\Crypt\Base\_openssl_translate_mode(), and phpseclib\Crypt\Base\ENGINE_OPENSSL.

+ Here is the call graph for this function:

◆ setKey()

phpseclib\Crypt\RC2::setKey (   $key,
  $t1 = 0 
)

Sets the key.

Keys can be of any length. RC2, itself, uses 1 to 1024 bit keys (eg. strlen($key) <= 128), however, we only use the first 128 bytes if $key has more then 128 bytes in it, and set $key to a single null byte if it is empty.

If the key is not explicitly set, it'll be assumed to be a single null byte.

See also
\phpseclib\Crypt\Base::setKey() @access User interface
Parameters
string$key
int$t1optional Effective key length in bits.

Definition at line 332 of file RC2.php.

333 {
334 $this->orig_key = $key;
335
336 if ($t1 <= 0) {
338 } elseif ($t1 > 1024) {
339 $t1 = 1024;
340 }
341 $this->current_key_length = $t1;
342 // Key byte count should be 1..128.
343 $key = strlen($key) ? substr($key, 0, 128) : "\x00";
344 $t = strlen($key);
345
346 // The mcrypt RC2 implementation only supports effective key length
347 // of 1024 bits. It is however possible to handle effective key
348 // lengths in range 1..1024 by expanding the key and applying
349 // inverse pitable mapping to the first byte before submitting it
350 // to mcrypt.
351
352 // Key expansion.
353 $l = array_values(unpack('C*', $key));
354 $t8 = ($t1 + 7) >> 3;
355 $tm = 0xFF >> (8 * $t8 - $t1);
356
357 // Expand key.
359 for ($i = $t; $i < 128; $i++) {
360 $l[$i] = $pitable[$l[$i - 1] + $l[$i - $t]];
361 }
362 $i = 128 - $t8;
363 $l[$i] = $pitable[$l[$i] & $tm];
364 while ($i--) {
365 $l[$i] = $pitable[$l[$i + 1] ^ $l[$i + $t8]];
366 }
367
368 // Prepare the key for mcrypt.
369 $l[0] = $this->invpitable[$l[0]];
370 array_unshift($l, 'C*');
371
372 parent::setKey(call_user_func_array('pack', $l));
373 }
$i
Definition: disco.tpl.php:19

References phpseclib\Crypt\RC2\$default_key_length, $i, phpseclib\Crypt\RC2\$key, $l, phpseclib\Crypt\RC2\$pitable, and $t.

Referenced by phpseclib\Crypt\RC2\_setupKey(), and phpseclib\Crypt\RC2\_setupMcrypt().

+ Here is the caller graph for this function:

◆ setKeyLength()

phpseclib\Crypt\RC2::setKeyLength (   $length)

Sets the key length.

Valid key lengths are 1 to 1024. Calling this function after setting the key has no effect until the next \phpseclib\Crypt\RC2::setKey() call.

@access public

Parameters
int$lengthin bits

Reimplemented from phpseclib\Crypt\Base.

Definition at line 298 of file RC2.php.

299 {
300 if ($length >= 1 && $length <= 1024) {
301 $this->default_key_length = $length;
302 }
303 }

Field Documentation

◆ $block_size

phpseclib\Crypt\RC2::$block_size = 8

Definition at line 55 of file RC2.php.

◆ $cfb_init_len

phpseclib\Crypt\RC2::$cfb_init_len = 500

Definition at line 113 of file RC2.php.

◆ $cipher_name_mcrypt

phpseclib\Crypt\RC2::$cipher_name_mcrypt = 'rc2'

Definition at line 104 of file RC2.php.

◆ $current_key_length

phpseclib\Crypt\RC2::$current_key_length

Definition at line 136 of file RC2.php.

Referenced by phpseclib\Crypt\RC2\getKeyLength().

◆ $default_key_length

phpseclib\Crypt\RC2::$default_key_length = 1024

Definition at line 125 of file RC2.php.

Referenced by phpseclib\Crypt\RC2\setKey().

◆ $invpitable

phpseclib\Crypt\RC2::$invpitable

Definition at line 229 of file RC2.php.

◆ $key

phpseclib\Crypt\RC2::$key

◆ $key_length

phpseclib\Crypt\RC2::$key_length = 16

Definition at line 95 of file RC2.php.

◆ $keys

phpseclib\Crypt\RC2::$keys

◆ $orig_key

phpseclib\Crypt\RC2::$orig_key

Definition at line 77 of file RC2.php.

Referenced by phpseclib\Crypt\RC2\decrypt(), and phpseclib\Crypt\RC2\encrypt().

◆ $pitable

phpseclib\Crypt\RC2::$pitable

Definition at line 155 of file RC2.php.

Referenced by phpseclib\Crypt\RC2\setKey().

◆ $skip_key_adjustment

phpseclib\Crypt\RC2::$skip_key_adjustment = true

Definition at line 86 of file RC2.php.


The documentation for this class was generated from the following file: