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

Lines Matching defs:type

138      * If the mapping type is self::TYPE_ANY what do we actually encode it as?
147 * Type mapping table for the ANY type.
182 * String type to character size mapping table.
237 $type = ord($encoded[$encoded_pos++]);
240 $constructed = ($type >> 5) & 1;
242 $tag = $type & 0x1F;
286 built-in types. It defines an application-independent data type that must be distinguishable from all other
291 data type; the term CONTEXT-SPECIFIC does not appear.
294 $class = ($type >> 6) & 3;
301 'type' => $class,
330 'type' => $class,
341 $current+= array('type' => $tag);
373 //if ($temp[$i]['type'] != self::TYPE_BIT_STRING) {
379 //if ($temp[$last]['type'] != self::TYPE_BIT_STRING) {
398 //if ($temp['type'] != self::TYPE_OCTET_STRING) {
439 /* Each character string type shall be encoded as if it had been declared:
505 case $mapping['type'] == self::TYPE_ANY:
506 $intype = $decoded['type'];
512 return array($inmap => $this->asn1map($decoded, array('type' => $intype) + $mapping, $special));
515 case $mapping['type'] == self::TYPE_CHOICE:
519 case !isset($option['constant']) && $option['type'] == $decoded['type']:
522 case !isset($option['constant']) && $option['type'] == self::TYPE_CHOICE:
538 case $decoded['type'] == $mapping['type']:
541 // if $decoded['type'] and $mapping['type'] are both strings, but different types of strings,
544 case $decoded['type'] < 18: // self::TYPE_NUMERIC_STRING == 18
545 case $decoded['type'] > 30: // self::TYPE_BMP_STRING == 30
546 case $mapping['type'] < 18:
547 case $mapping['type'] > 30:
553 $decoded['type'] = $mapping['type'];
556 switch ($decoded['type']) {
580 if ($child['type'] != self::TYPE_CHOICE) {
585 $tempClass = $temp['type'];
599 // Can only match if no constant expected and type matches or is generic.
600 $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
648 $tempClass = $temp['type'];
656 if ($child['type'] != self::TYPE_CHOICE) {
671 // Can only match if no constant expected and type matches or is generic.
672 $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
717 $decoded['content'] = $this->_decodeTime($decoded['content'], $decoded['type']);
727 "When a "NamedBitList" is used in defining a bitstring type ASN.1 encoding rules are free to add (or remove)
830 $tag = $mapping['type'];
854 if ($mapping['type'] == self::TYPE_SET) {
889 AUTOMATIC TAGS, but the type defined by "Type" is an untagged choice type, an untagged open type, or
892 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
926 if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
966 $format = $mapping['type'] == self::TYPE_UTC_TIME ? 'y' : 'Y';
1021 return $this->_encode_der(null, array('type' => self::TYPE_NULL) + $mapping, null, $special);
1024 return $this->_encode_der($source, array('type' => self::TYPE_INTEGER) + $mapping, null, $special);
1026 return $this->_encode_der($source, array('type' => self::TYPE_REAL) + $mapping, null, $special);
1028 return $this->_encode_der($source, array('type' => self::TYPE_BOOLEAN) + $mapping, null, $special);
1033 return $this->_encode_der($source[$typename], array('type' => $outtype) + $mapping, null, $special);
1070 user_error('Mapping provides no type definition for ' . implode('/', $this->location));
1079 if (isset($mapping['explicit']) || $mapping['type'] == self::TYPE_CHOICE) {
1317 * String type conversion