Lines Matching refs:special

512      * "Special" mappings may be applied on a per tag-name basis via $special.
516 * @param array $special
519 public static function asn1map(array $decoded, $mapping, $special = [])
534 return [$inmap => self::asn1map($decoded, ['type' => $intype] + $mapping, $special)];
542 $value = self::asn1map($decoded, $option, $special);
545 $v = self::asn1map($decoded, $option, $special);
551 if (isset($special[$key])) {
552 $value = $special[$key]($value);
586 if (($map[] = self::asn1map($content, $child, $special)) === null) {
629 $candidate = self::asn1map($temp, $child, $special);
635 if (isset($special[$key])) {
636 $candidate = $special[$key]($candidate);
658 if (($map[] = self::asn1map($content, $child, $special)) === null) {
700 $candidate = self::asn1map($temp, $child, $special);
709 if (isset($special[$key])) {
710 $candidate = $special[$key]($candidate);
831 * "Special" mappings can be applied via $special.
835 * @param array $special
838 public static function encodeDER($source, $mapping, $special = [])
841 return self::encode_der($source, $mapping, null, $special);
850 * @param array $special
853 private static function encode_der($source, array $mapping, $idx = null, array $special = [])
865 if (isset($special[$idx])) {
866 $source = $special[$idx]($source);
884 $temp = self::encode_der($content, $child, null, $special);
911 $temp = self::encode_der($source[$key], $child, $key, $special);
952 $temp = self::encode_der($source[$key], $child, $key, $special);
1066 return self::encode_der(null, ['type' => self::TYPE_NULL] + $mapping, null, $special);
1069 return self::encode_der($source, ['type' => self::TYPE_INTEGER] + $mapping, null, $special);
1071 return self::encode_der($source, ['type' => self::TYPE_REAL] + $mapping, null, $special);
1073 return self::encode_der($source, ['type' => self::TYPE_BOOLEAN] + $mapping, null, $special);
1078 return self::encode_der($source[$typename], ['type' => $outtype] + $mapping, null, $special);
1093 return self::encode_der($source, $filters + $mapping, null, $special);