Lines Matching refs:cipher
1155 $cipher = new static('ctr');
1156 $cipher->setKey($this->key);
1157 $cipher->setIV($this->iv);
1158 $ciphertext = $cipher->encrypt($plaintext);
1166 $cipher->encryptIV = $this->iv = $this->encryptIV = $this->decryptIV = $oldIV;
1167 $this->newtag = $cipher->encrypt($s);
1172 $cipher = clone $this;
1173 unset($cipher->poly1305Key);
1175 $ciphertext = $cipher->encrypt($plaintext);
1542 $cipher = new static('ctr');
1543 $cipher->setKey($this->key);
1544 $cipher->setIV($this->iv);
1545 $plaintext = $cipher->decrypt($ciphertext);
1553 $cipher->encryptIV = $this->iv = $this->encryptIV = $this->decryptIV = $oldIV;
1554 $newtag = $cipher->encrypt($s);
1557 $cipher = clone $this;
1558 unset($cipher->poly1305Key);
1560 $plaintext = $cipher->decrypt($ciphertext);
3284 $cipher = new static('ecb');
3285 $cipher->setKey($this->key);
3286 $cipher->disablePadding();
3289 Strings::switchEndianness($cipher->encrypt("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"))