Lines Matching refs:key
254 * @param string $key
256 public function setKey($key) argument
258 if ($this->explicit_key_length !== false && strlen($key) != $this->explicit_key_length) {
259 … been set to ' . $this->explicit_key_length . ' bytes and this key is ' . strlen($key) . ' bytes');
262 switch (strlen($key)) {
264 $key .= substr($key, 0, 8);
269 …throw new \LengthException('Key of size ' . strlen($key) . ' not supported by this algorithm. Only…
273 $this->key = $key;
274 $this->key_length = strlen($key);
279 $this->des[0]->setKey(substr($key, 0, 8));
280 $this->des[1]->setKey(substr($key, 8, 8));
281 $this->des[2]->setKey(substr($key, 16, 8));
299 if ($this->mode_3cbc && strlen($this->key) > 8) {
322 if ($this->mode_3cbc && strlen($this->key) > 8) {
416 case strlen($this->key) <= 8: