예제 #1
0
 /**
  * Test for engine validity
  *
  * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
  *
  * @see \phpseclib\Crypt\Base::__construct()
  * @param int $engine
  * @access public
  * @return bool
  */
 function isValidEngine($engine)
 {
     if ($engine == self::ENGINE_OPENSSL) {
         $this->cipher_name_openssl_ecb = 'des-ede3';
         $mode = $this->_openssl_translate_mode();
         $this->cipher_name_openssl = $mode == 'ecb' ? 'des-ede3' : 'des-ede3-' . $mode;
     }
     return parent::isValidEngine($engine);
 }