Lines Matching refs:mode

223     protected $mode;  variable in phpseclib3\\Crypt\\Common\\SymmetricKey
658 * @param string $mode
662 public function __construct($mode) argument
664 $mode = strtolower($mode);
667 if (!isset($map[$mode])) {
671 $mode = self::MODE_MAP[$mode];
674 switch ($mode) {
700 $this->mode = $mode;
717 if ($this->mode == self::MODE_ECB) {
721 if ($this->mode == self::MODE_GCM) {
747 if ($this->mode == self::MODE_GCM) {
767 if ($this->mode == self::MODE_GCM) {
795 if ($this->mode != self::MODE_GCM) {
814 if ($this->mode != self::MODE_GCM && !$this->usePoly1305) {
829 return $this->mode != self::MODE_GCM && $this->mode != self::MODE_ECB;
840 return $this->mode == self::MODE_GCM;
1152 if ($this->mode == self::MODE_GCM) {
1181 switch ($this->mode) {
1283 if ($this->mode == self::MODE_CFB && $this->continuousBuffer) {
1357 switch ($this->mode) {
1532 if ($this->mode == self::MODE_GCM || isset($this->poly1305Key)) {
1569 switch ($this->mode) {
1672 if ($this->mode == self::MODE_CFB && $this->continuousBuffer) {
1732 switch ($this->mode) {
1897 if ($this->mode != self::MODE_GCM && !$this->usePoly1305) {
1936 if ($this->mode != self::MODE_GCM && !$this->usePoly1305) {
1960 return $this->mode == self::MODE_ECB ? str_repeat("\0", $this->block_size) : $iv;
2115 switch ($this->mode) {
2204 if ($this->mode == self::MODE_ECB) {
2208 if ($this->mode == self::MODE_GCM) {
2229 if ($this->mode == self::MODE_ECB) {
2266 switch ($this->mode) {
2492 …if ($this->mode == self::MODE_GCM && !in_array($this->engine, [self::ENGINE_LIBSODIUM, self::ENGIN…
2499 if ($this->iv === false && !in_array($this->mode, [self::MODE_STREAM, self::MODE_ECB])) {
2500 …if ($this->mode != self::MODE_GCM || !in_array($this->engine, [self::ENGINE_LIBSODIUM, self::ENGIN…
2530 …this->demcrypt = mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
2531 …this->enmcrypt = mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
2536 if ($this->mode == self::MODE_CFB) {
2541 if ($this->mode == self::MODE_CFB) {
2807 switch ($this->mode) {
3417 return array_flip(self::MODE_MAP)[$this->mode];