Lines Matching defs:tag
213 * Sometimes we want to get the BER encoding of a particular tag. $start lets us do that without having to reencode.
234 $tag = $type & 0x1F;
235 if ($tag == 0x1F) {
236 $tag = 0;
245 $tag <<= 7;
251 $tag |= $temp;
273 // tags of indefinte length don't really have a header length; this length includes the tag
308 'constant' => $tag,
337 'constant' => $tag,
347 $current += ['type' => $tag];
350 switch ($tag) {
495 $current['content'] = self::decodeTime(substr($content, $content_pos), $tag);
512 * "Special" mappings may be applied on a per tag-name basis via $special.
871 $tag = $mapping['type'];
873 switch ($tag) {
876 $tag |= 0x20; // set the constructed bit
917 // Else we should have at least one tag byte.
958 // Else we should have at least one tag byte.
963 $tag = ord($temp[0]);
982 $temp[0] = chr(($mapping['class'] << 6) | ($tag & 0x20) | $mapping['cast']);
1123 $value = chr($tag) . self::encodeLength(strlen($value)) . $value;
1124 $tag = ($mapping['class'] << 6) | 0x20 | $mapping['cast'];
1126 $tag = ($mapping['class'] << 6) | (ord($temp[0]) & 0x20) | $mapping['cast'];
1130 return chr($tag) . self::encodeLength(strlen($value)) . $value;
1253 * @param int $tag
1256 private static function decodeTime($content, $tag)
1268 if ($tag == self::TYPE_UTC_TIME) {