Lines Matching defs:length

12  * {@link self::setKey() setKey()}.  ie. if the key is 128-bits, the key length will be 128-bits.  If it's
13 * 136-bits it'll be null-padded to 192-bits and 192 bits will be the key length until
16 * Not all Rijndael implementations may support 160-bits or 224-bits as the block length / key length. mcrypt, for example,
174 * Sets the key length.
189 * @throws \LengthException if the key length is invalid
190 * @param int $length
192 public function setKeyLength($length)
194 switch ($length) {
200 $this->key_length = $length >> 3;
203 throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys of sizes 128, 160, 192, 224 or 256 bits are supported');
206 parent::setKeyLength($length);
216 * @throws \LengthException if the key length isn't supported
235 * Sets the block length
239 * @param int $length
241 public function setBlockLength($length)
243 switch ($length) {
251 throw new \LengthException('Key size of ' . $length . ' bits is not supported by this algorithm. Only keys of sizes 128, 160, 192, 224 or 256 bits are supported');
254 $this->Nb = $length >> 5;
255 $this->block_size = $length >> 3;
507 throw new InconsistentSetupException('The IV length (' . strlen($this->iv) . ') does not match the block size (' . $this->block_size . ')');
563 $length = $this->Nb * ($this->Nr + 1);
564 for ($i = $this->Nk; $i < $length; $i++) {
579 // convert the key schedule from a vector of $Nb * ($Nr + 1) length to a matrix with $Nr + 1 rows and $Nb columns
588 for ($i = $row = $col = 0; $i < $length; $i++, $col++) {