Lines Matching defs:length
206 * Sets the key length.
213 * @throws \LengthException if the key length is invalid
214 * @param int $length
216 public function setKeyLength($length)
218 switch ($length) {
223 throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys of sizes 128 or 192 bits are supported');
226 parent::setKeyLength($length);
238 * @throws \LengthException if the key length is invalid
244 throw new \LengthException('Key length has already been set to ' . $this->explicit_key_length . ' bytes and this key is ' . strlen($key) . ' bytes');