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

Lines Matching defs:content

287         $content = substr($encoded, $encoded_pos, $length);
310 'content' => $content,
318 $temp = $this->_decode_ber($content, $start, $content_pos);
323 // end-of-content octets - see paragraph 8.1.5
324 if (substr($content, $content_pos + $length, 2) == "\0\0") {
340 'content' => $newcontent,
341 // the only time when $content['headerlength'] isn't defined is when the length is indefinite.
342 // the absence of $content['headerlength'] is how we know if something is indefinite or not.
354 if ($constructed || strlen($content) != 1) {
357 $current['content'] = (bool) ord($content[$content_pos]);
364 $current['content'] = new BigInteger(substr($content, $content_pos), -256);
373 $current['content'] = substr($content, $content_pos);
375 $temp = $this->_decode_ber($content, $start, $content_pos);
379 $length-= (strlen($content) - $content_pos);
386 $current['content'].= substr($temp[$i]['content'], 1);
392 $current['content'] = $temp[$last]['content'][0] . $current['content'] . substr($temp[$i]['content'], 1);
397 $current['content'] = substr($content, $content_pos);
399 $current['content'] = '';
401 while (substr($content, $content_pos, 2) != "\0\0") {
402 $temp = $this->_decode_ber($content, $length + $start, $content_pos);
411 $current['content'].= $temp['content'];
414 if (substr($content, $content_pos, 2) == "\0\0") {
421 if ($constructed || strlen($content)) {
431 $current['content'] = array();
432 $content_len = strlen($content);
434 // if indefinite length construction was used and we have an end-of-content string next
436 if (!isset($current['headerlength']) && substr($content, $content_pos, 2) == "\0\0") {
440 $temp = $this->_decode_ber($content, $start + $offset, $content_pos);
445 $current['content'][] = $temp;
453 $current['content'] = $this->_decodeOID(substr($content, $content_pos));
454 if ($current['content'] === false) {
489 $current['content'] = substr($content, $content_pos);
496 $current['content'] = $this->_decodeTime(substr($content, $content_pos), $tag);
527 if (isset($mapping['explicit']) && is_array($decoded['content'])) {
528 $decoded = $decoded['content'][0];
590 foreach ($decoded['content'] as $content) {
591 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
599 $n = count($decoded['content']);
605 $temp = $decoded['content'][$i];
662 foreach ($decoded['content'] as $content) {
663 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
671 for ($i = 0; $i < count($decoded['content']); $i++) {
672 $temp = $decoded['content'][$i];
733 return isset($this->oids[$decoded['content']]) ? $this->oids[$decoded['content']] : $decoded['content'];
737 if (is_array($decoded['content'])) {
738 $decoded['content'] = $decoded['content'][0]['content'];
743 if (!is_object($decoded['content'])) {
744 $decoded['content'] = $this->_decodeTime($decoded['content'], $decoded['type']);
746 return $decoded['content'] ? $decoded['content']->format($this->format) : false;
749 $offset = ord($decoded['content'][0]);
750 $size = (strlen($decoded['content']) - 1) * 8 - $offset;
760 for ($i = strlen($decoded['content']) - 1; $i > 0; $i--) {
761 $current = ord($decoded['content'][$i]);
777 return base64_encode($decoded['content']);
781 return $decoded['content'];
793 return $decoded['content'];
796 $temp = $decoded['content'];
798 $temp = new BigInteger($decoded['content'], -256);
870 foreach ($source as $content) {
871 $temp = $this->_encode_der($content, $child, null, $special);
1144 * @param string $content
1147 function _decodeOID($content)
1156 $len = strlen($content);
1158 if (ord($content[$len - 1]) & 0x80) {
1164 $temp = ord($content[$pos++]);
1173 $first = floor(ord($content[0]) / 40);
1180 if ($first <= 2) { // ie. 0 <= ord($content[0]) < 120 (0x78)
1181 array_unshift($oid, ord($content[0]) % 40);
1251 * @param string $content
1255 function _decodeTime($content, $tag)
1271 if (preg_match('#^(\d{10})(Z|[+-]\d{4})$#', $content, $matches)) {
1272 $content = $matches[1] . '00' . $matches[2];
1274 $prefix = substr($content, 0, 2) >= 50 ? '19' : '20';
1275 $content = $prefix . $content;
1276 } elseif (strpos($content, '.') !== false) {
1280 if ($content[strlen($content) - 1] == 'Z') {
1281 $content = substr($content, 0, -1) . '+0000';
1284 if (strpos($content, '-') !== false || strpos($content, '+') !== false) {
1290 return @DateTime::createFromFormat($format, $content);