Lines Matching refs:length
62 $length = count($bytes);
64 if ($length <= 0) {
65 throw new GTException("Invalid length: {$length}");
72 for ($i = 0; $i < $length; $i++) {
77 for ($i = 0; $i < $length; $i++) {
78 $value = bcadd($value, bcmul($bytes[$i], bcpow(256, $length - $i - 1, 0), 0), 0);
216 $length = max(count($bytes1), count($bytes2));
218 GTUtil::lpad($bytes1, $length, 0x0);
219 GTUtil::lpad($bytes2, $length, 0x0);
223 for ($i = 0; $i < $length; $i++) {
241 $length = max(count($bytes1), count($bytes2));
243 GTUtil::lpad($bytes1, $length, 0x0);
244 GTUtil::lpad($bytes2, $length, 0x0);
248 for ($i = 0; $i < $length; $i++) {
266 $length = max(count($bytes1), count($bytes2));
268 GTUtil::lpad($bytes1, $length, 0x0);
269 GTUtil::lpad($bytes2, $length, 0x0);
273 for ($i = 0; $i < $length; $i++) {