Lines Matching defs:mode
6 * Uses mcrypt, if available, and an internal implementation, otherwise. Operates in the EDE3 mode (encrypt-decrypt-encrypt).
54 * Outer chaining is used by SSH-2 and when the mode is set to \phpseclib3\Crypt\Common\BlockCipher::MODE_CBC.
113 * $mode could be:
131 * @param string $mode
133 public function __construct($mode)
135 switch (strtolower($mode)) {
155 $mode = 'cbc';
159 parent::__construct($mode);
161 if ($this->mode == self::MODE_STREAM) {
162 throw new BadModeException('Block ciphers cannot be ran in stream mode');
180 $mode = $this->openssl_translate_mode();
181 $this->cipher_name_openssl = $mode == 'ecb' ? 'des-ede3' : 'des-ede3-' . $mode;