Lines Matching refs:temp

256                 $temp = ord($encoded[$encoded_pos++]);
258 $loop = $temp >> 7;
260 $temp &= 0x7F;
262 if ($startOffset == 2 && $temp == 0) {
265 $tag |= $temp;
285 $temp = substr($encoded, $encoded_pos, $length);
290 extract(unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4)));
331 $temp = self::decode_ber($content, $start, $content_pos);
332 if ($temp === false) {
335 $length = $temp['length'];
340 $newcontent[] = $temp;
345 $newcontent[] = $temp;
388 $temp = self::decode_ber($content, $start, $content_pos);
389 if ($temp === false) {
393 $last = count($temp) - 1;
396 if ($temp[$i]['type'] != self::TYPE_BIT_STRING) {
399 $current['content'] .= substr($temp[$i]['content'], 1);
402 if ($temp[$last]['type'] != self::TYPE_BIT_STRING) {
405 …$current['content'] = $temp[$last]['content'][0] . $current['content'] . substr($temp[$i]['content…
415 $temp = self::decode_ber($content, $length + $start, $content_pos);
416 if ($temp === false) {
419 $content_pos += $temp['length'];
421 if ($temp['type'] != self::TYPE_OCTET_STRING) {
424 $current['content'] .= $temp['content'];
425 $length += $temp['length'];
453 $temp = self::decode_ber($content, $start + $offset, $content_pos);
454 if ($temp === false) {
457 $content_pos += $temp['length'];
458 $current['content'][] = $temp;
459 $offset += $temp['length'];
619 $temp = $decoded['content'][$i];
625 if (isset($temp['constant'])) {
626 $tempClass = $temp['type'];
636 if (isset($constant) && isset($temp['constant'])) {
638 … $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
641 …$maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_…
648 $candidate = self::asn1map($temp, $child, $special);
686 $temp = $decoded['content'][$i];
688 if (isset($temp['constant'])) {
689 $tempClass = $temp['type'];
708 if (isset($constant) && isset($temp['constant'])) {
710 … $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
713 …$maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_…
719 $candidate = self::asn1map($temp, $child, $special);
810 $temp = $decoded['content'];
812 $temp = new BigInteger($decoded['content'], -256);
815 $temp = (int) $temp->toString();
816 return isset($mapping['mapping'][$temp]) ?
817 $mapping['mapping'][$temp] :
820 return $temp;
839 $temp = Strings::shift($string, $length);
840 list(, $length) = unpack('N', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4));
906 $temp = self::encode_der($content, $child, null, $special);
907 if ($temp === false) {
910 $value[] = $temp;
933 $temp = self::encode_der($source[$key], $child, $key, $special);
934 if ($temp === false) {
940 if ($temp === '') {
957 $temp = $subtag . self::encodeLength(strlen($temp)) . $temp;
959 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
960 $temp = $subtag . substr($temp, 1);
963 $value .= $temp;
967 $temp = false;
974 $temp = self::encode_der($source[$key], $child, $key, $special);
975 if ($temp === false) {
981 if ($temp === '') {
985 $tag = ord($temp[0]);
991 $temp = $subtag . self::encodeLength(strlen($temp)) . $temp;
993 … $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
994 $temp = $subtag . substr($temp, 1);
1003 if ($temp && isset($mapping['cast'])) {
1004 $temp[0] = chr(($mapping['class'] << 6) | ($tag & 0x20) | $mapping['cast']);
1007 return $temp;
1148 $tag = ($mapping['class'] << 6) | (ord($temp[0]) & 0x20) | $mapping['cast'];
1181 $temp = ord($content[$pos++]);
1183 $n = $n->bitwise_or(new BigInteger($temp & 0x7F));
1184 if (~$temp & 0x80) {
1248 $temp = "\0";
1250 $temp = '';
1255 $temp = (chr(0x80) | $submask->toBytes()) . $temp;
1258 $temp[strlen($temp) - 1] = $temp[strlen($temp) - 1] & chr(0x7F);
1260 $value .= $temp;
1484 $temp = $str;
1486 $temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1);
1487 $temp = preg_replace('#-+END.*[\r\n ]*.*#ms', '', $temp, 1);
1490 $temp = str_replace(["\r", "\n", ' '], '', $temp);
1492 $temp = preg_replace('#^-+[^-]+-+|-+[^-]+-+$#', '', $temp);
1493 $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? Base64::decode($temp) : false;
1494 return $temp != false ? $temp : $str;
1513 $temp = ltrim(pack('N', $length), chr(0));
1514 return pack('Ca*', 0x80 | strlen($temp), $temp);