Lines Matching defs:mode
572 * @param string $mode
573 * @throws BadModeException if an invalid / unsupported mode is provided
575 public function __construct($mode)
577 parent::__construct($mode);
579 if ($this->mode == self::MODE_STREAM) {
580 throw new BadModeException('Block ciphers cannot be ran in stream mode');
662 * $mode should be either self::ENCRYPT or self::DECRYPT. See
669 * @param int $mode
672 private function processBlock($block, $mode)
691 $keys = $this->keys[$mode];