Lines Matching refs:child

603                     $child = $mapping['children'];
605 if (($map[] = self::asn1map($content, $child, $special)) === null) {
616 foreach ($mapping['children'] as $key => $child) {
621 if ($child['type'] != self::TYPE_CHOICE) {
628 if (isset($child['class'])) {
629 $childClass = $child['class'];
630 $constant = $child['cast'];
631 } elseif (isset($child['constant'])) {
633 $constant = $child['constant'];
641 …$maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_…
648 $candidate = self::asn1map($temp, $child, $special);
659 } elseif (isset($child['default'])) {
660 $map[$key] = $child['default'];
661 } elseif (!isset($child['optional'])) {
675 $child = $mapping['children'];
677 if (($map[] = self::asn1map($content, $child, $special)) === null) {
692 foreach ($mapping['children'] as $key => $child) {
697 if ($child['type'] != self::TYPE_CHOICE) {
700 if (isset($child['class'])) {
701 $childClass = $child['class'];
702 $constant = $child['cast'];
703 } elseif (isset($child['constant'])) {
705 $constant = $child['constant'];
713 …$maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_…
719 $candidate = self::asn1map($temp, $child, $special);
736 foreach ($mapping['children'] as $key => $child) {
738 if (isset($child['default'])) {
739 $map[$key] = $child['default'];
740 } elseif (!isset($child['optional'])) {
903 $child = $mapping['children'];
906 $temp = self::encode_der($content, $child, null, $special);
925 foreach ($mapping['children'] as $key => $child) {
927 if (!isset($child['optional'])) {
933 $temp = self::encode_der($source[$key], $child, $key, $special);
945 if (isset($child['constant'])) {
955 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
956 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
959 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
969 foreach ($mapping['children'] as $key => $child) {
974 $temp = self::encode_der($source[$key], $child, $key, $special);
988 if (isset($child['constant'])) {
989 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
990 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
993 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);