Lines Matching refs:length
15 * {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's 136-bits
16 * it'll be null-padded to 192-bits and 192 bits will be the key length until {@link self::setKey() setKey()}
21 * however possible, won't do anything (AES has a fixed block length whereas Rijndael has a variable one).
63 * @param int $length
66 public function setBlockLength($length)
68 throw new \BadMethodCallException('The block length cannot be set for AES.');
72 * Sets the key length
74 * Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key length
77 * @param int $length
78 * @throws \LengthException if the key length isn't supported
80 public function setKeyLength($length)
82 switch ($length) {
88 throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys of sizes 128, 192 or 256 supported');
90 parent::setKeyLength($length);
101 * @throws \LengthException if the key length isn't supported