Lines Matching refs:length
53 * @param int $length the length to encode
56 public static function encodeLength($length) { argument
60 if ($length > 127) {
63 $value = $length;
72 $byte = $length >> $i;
80 array_push($bytes, $length);
119 $length = ASN1DER::decodeLength($bytes);
121 if (count($bytes) < $length) {
125 if (count($bytes) > $length) {
152 $length = array_shift($bytes);
154 if ($length == 128) {
158 if ($length > 127) {
160 $size = $length & 0x7F;
166 $length = 0;
173 $length = ($length << 8) + array_shift($bytes);
178 return $length;