Exemple #1
0
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * $mode could be:
  *
  * - CRYPT_BLOWFISH_MODE_ECB
  *
  * - CRYPT_BLOWFISH_MODE_CBC
  *
  * - CRYPT_BLOWFISH_MODE_CTR
  *
  * - CRYPT_BLOWFISH_MODE_CFB
  *
  * - CRYPT_BLOWFISH_MODE_OFB
  *
  * If not explictly set, CRYPT_BLOWFISH_MODE_CBC will be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @param optional Integer $mode
  * @access public
  */
 function __construct($mode = CRYPT_BLOWFISH_MODE_CBC)
 {
     parent::__construct($mode);
 }
Exemple #2
0
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @return Crypt_RC4
  * @access public
  */
 function __construct()
 {
     parent::__construct(CRYPT_MODE_STREAM);
 }
Exemple #3
0
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * $mode could be:
  *
  * - CRYPT_RC2_MODE_ECB
  *
  * - CRYPT_RC2_MODE_CBC
  *
  * - CRYPT_RC2_MODE_CTR
  *
  * - CRYPT_RC2_MODE_CFB
  *
  * - CRYPT_RC2_MODE_OFB
  *
  * If not explictly set, CRYPT_RC2_MODE_CBC will be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @param optional Integer $mode
  * @access public
  */
 function __construct($mode = CRYPT_RC2_MODE_CBC)
 {
     parent::__construct($mode);
     $this->setKey('');
 }
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * $mode could be:
  *
  * - CRYPT_RIJNDAEL_MODE_ECB
  *
  * - CRYPT_RIJNDAEL_MODE_CBC
  *
  * - CRYPT_RIJNDAEL_MODE_CTR
  *
  * - CRYPT_RIJNDAEL_MODE_CFB
  *
  * - CRYPT_RIJNDAEL_MODE_OFB
  *
  * If not explictly set, CRYPT_RIJNDAEL_MODE_CBC will be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @param optional Integer $mode
  * @access public
  */
 function __construct($mode = CRYPT_RIJNDAEL_MODE_CBC)
 {
     parent::__construct($mode);
 }
Exemple #5
0
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * $mode could be:
  *
  * - CRYPT_RC2_MODE_ECB
  *
  * - CRYPT_RC2_MODE_CBC
  *
  * - CRYPT_RC2_MODE_CTR
  *
  * - CRYPT_RC2_MODE_CFB
  *
  * - CRYPT_RC2_MODE_OFB
  *
  * If not explicitly set, CRYPT_RC2_MODE_CBC will be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @param optional Integer $mode
  * @access public
  */
 function Crypt_RC2($mode = CRYPT_RC2_MODE_CBC)
 {
     parent::__construct($mode);
     // Was:  parent::Crypt_Base($mode);
 }
Exemple #6
0
 /**
  * Default Constructor.
  *
  * Determines whether or not the mcrypt extension should be used.
  *
  * @see Crypt_Base::Crypt_Base()
  * @return Crypt_RC4
  * @access public
  */
 function Crypt_RC4()
 {
     parent::__construct(CRYPT_MODE_STREAM);
     // Was:  parent::Crypt_Base(CRYPT_MODE_STREAM);
 }