Lines Matching refs:decoded

202         $decoded = self::decode_ber($encoded);
203 if ($decoded === false) {
207 return [$decoded];
514 * @param array $decoded
519 public static function asn1map(array $decoded, $mapping, $special = [])
521 if (isset($mapping['explicit']) && is_array($decoded['content'])) {
522 $decoded = $decoded['content'][0];
527 $intype = $decoded['type'];
529 if (isset($decoded['constant']) || !array_key_exists($intype, self::ANY_MAP) || (ord(self::$encoded[$decoded['start']]) & 0x20)) {
530 return new Element(substr(self::$encoded, $decoded['start'], $decoded['length']));
534 return [$inmap => self::asn1map($decoded, ['type' => $intype] + $mapping, $special)];
540 case isset($option['constant']) && $option['constant'] == $decoded['constant']:
541 case !isset($option['constant']) && $option['type'] == $decoded['type']:
542 $value = self::asn1map($decoded, $option, $special);
545 $v = self::asn1map($decoded, $option, $special);
560 case $decoded['type'] == $mapping['type']:
563 // if $decoded['type'] and $mapping['type'] are both strings, but different types of strings,
566 case $decoded['type'] < 18: // self::TYPE_NUMERIC_STRING == 18
567 case $decoded['type'] > 30: // self::TYPE_BMP_STRING == 30
575 $decoded['type'] = $mapping['type'];
578 switch ($decoded['type']) {
585 foreach ($decoded['content'] as $content) {
594 $n = count($decoded['content']);
600 $temp = $decoded['content'][$i];
657 foreach ($decoded['content'] as $content) {
666 for ($i = 0; $i < count($decoded['content']); $i++) {
667 $temp = $decoded['content'][$i];
728 return isset(self::$oids[$decoded['content']]) ? self::$oids[$decoded['content']] : $decoded['content'];
732 if (is_array($decoded['content'])) {
733 $decoded['content'] = $decoded['content'][0]['content'];
738 if (!is_object($decoded['content'])) {
739 $decoded['content'] = self::decodeTime($decoded['content'], $decoded['type']);
741 return $decoded['content'] ? $decoded['content']->format(self::$format) : false;
744 $offset = ord($decoded['content'][0]);
745 $size = (strlen($decoded['content']) - 1) * 8 - $offset;
750 arbitrarily any trailing 0 bits to (or from) values that are being encoded or decoded. Application designers should
755 for ($i = strlen($decoded['content']) - 1; $i > 0; $i--) {
756 $current = ord($decoded['content'][$i]);
773 return $decoded['content'];
788 return $decoded['content'];
791 $temp = $decoded['content'];
793 $temp = new BigInteger($decoded['content'], -256);