Lines Matching refs:length
882 * @param int $length
884 public function setKeyLength($length) argument
886 $this->explicit_key_length = $length >> 3;
1889 * @param int $length optional
1895 public function getTag($length = 16) argument
1910 if ($length < 4 || $length > 16) {
1914 return $length == 16 ?
1916 substr($this->newtag, 0, $length);
1940 $length = strlen($tag);
1941 if ($length < 4 || $length > 16) {
2579 $length = strlen($text);
2582 if ($length % $this->block_size == 0) {
2585 …throw new \LengthException("The plaintext's length ($length) is not a multiple of the block size (…
2589 $pad = $this->block_size - ($length % $this->block_size);
2591 return str_pad($text, $length + $pad, chr($pad));
2612 $length = ord($text[strlen($text) - 1]);
2614 if (!$length || $length > $this->block_size) {
2615 …throw new BadDecryptionException("The ciphertext has an invalid padding length ($length) compared …
2618 return substr($text, 0, -$length);