• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/

Lines Matching defs:child

589                     $child = $mapping['children'];
591 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
602 foreach ($mapping['children'] as $key => $child) {
607 if ($child['type'] != self::TYPE_CHOICE) {
614 if (isset($child['class'])) {
615 $childClass = $child['class'];
616 $constant = $child['cast'];
617 } elseif (isset($child['constant'])) {
619 $constant = $child['constant'];
627 $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
634 $candidate = $this->asn1map($temp, $child, $special);
645 } elseif (isset($child['default'])) {
646 $map[$key] = $child['default']; // Use default.
647 } elseif (!isset($child['optional'])) {
661 $child = $mapping['children'];
663 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
678 foreach ($mapping['children'] as $key => $child) {
683 if ($child['type'] != self::TYPE_CHOICE) {
686 if (isset($child['class'])) {
687 $childClass = $child['class'];
688 $constant = $child['cast'];
689 } elseif (isset($child['constant'])) {
691 $constant = $child['constant'];
699 $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
705 $candidate = $this->asn1map($temp, $child, $special);
722 foreach ($mapping['children'] as $key => $child) {
724 if (isset($child['default'])) {
725 $map[$key] = $child['default'];
726 } elseif (!isset($child['optional'])) {
868 $child = $mapping['children'];
871 $temp = $this->_encode_der($content, $child, null, $special);
890 foreach ($mapping['children'] as $key => $child) {
892 if (!isset($child['optional'])) {
898 $temp = $this->_encode_der($source[$key], $child, $key, $special);
903 // An empty child encoding means it has been optimized out.
909 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
910 if (isset($child['constant'])) {
920 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
921 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
924 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
934 foreach ($mapping['children'] as $key => $child) {
939 $temp = $this->_encode_der($source[$key], $child, $key, $special);
944 // An empty child encoding means it has been optimized out.
952 // if isset($child['constant']) is true then isset($child['optional']) should be true as well
953 if (isset($child['constant'])) {
954 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
955 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
958 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);