Lines Matching defs:length
98 * The key length in bits.
111 * The key length in bits.
289 * Sets the key length.
295 * @param int $length in bits
296 * @throws \LengthException if the key length isn't supported
298 public function setKeyLength($length)
300 if ($length < 8 || $length > 1024) {
301 throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys between 1 and 1024 bits, inclusive, are supported');
304 $this->default_key_length = $this->current_key_length = $length;
305 $this->explicit_key_length = $length >> 3;
309 * Returns the current key length
321 * Keys can be of any length. RC2, itself, uses 8 to 1024 bit keys (eg.
328 * @param int|boolean $t1 optional Effective key length in bits.
329 * @throws \LengthException if the key length isn't supported
340 throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys between 1 and 1024 bits, inclusive, are supported');
350 // The mcrypt RC2 implementation only supports effective key length