Lines Matching defs:child

584                     $child = $mapping['children'];
586 if (($map[] = self::asn1map($content, $child, $special)) === null) {
597 foreach ($mapping['children'] as $key => $child) {
602 if ($child['type'] != self::TYPE_CHOICE) {
609 if (isset($child['class'])) {
610 $childClass = $child['class'];
611 $constant = $child['cast'];
612 } elseif (isset($child['constant'])) {
614 $constant = $child['constant'];
622 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
629 $candidate = self::asn1map($temp, $child, $special);
640 } elseif (isset($child['default'])) {
641 $map[$key] = $child['default'];
642 } elseif (!isset($child['optional'])) {
656 $child = $mapping['children'];
658 if (($map[] = self::asn1map($content, $child, $special)) === null) {
673 foreach ($mapping['children'] as $key => $child) {
678 if ($child['type'] != self::TYPE_CHOICE) {
681 if (isset($child['class'])) {
682 $childClass = $child['class'];
683 $constant = $child['cast'];
684 } elseif (isset($child['constant'])) {
686 $constant = $child['constant'];
694 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
700 $candidate = self::asn1map($temp, $child, $special);
717 foreach ($mapping['children'] as $key => $child) {
719 if (isset($child['default'])) {
720 $map[$key] = $child['default'];
721 } elseif (!isset($child['optional'])) {
881 $child = $mapping['children'];
884 $temp = self::encode_der($content, $child, null, $special);
903 foreach ($mapping['children'] as $key => $child) {
905 if (!isset($child['optional'])) {
911 $temp = self::encode_der($source[$key], $child, $key, $special);
916 // An empty child encoding means it has been optimized out.
922 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
923 if (isset($child['constant'])) {
933 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
934 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
937 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
947 foreach ($mapping['children'] as $key => $child) {
952 $temp = self::encode_der($source[$key], $child, $key, $special);
957 // An empty child encoding means it has been optimized out.
965 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
966 if (isset($child['constant'])) {
967 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
968 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
971 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);