Lines Matching refs:temp

242                 $temp = ord($encoded[$encoded_pos++]);
244 $loop = $temp >> 7;
246 $temp &= 0x7F;
248 if ($startOffset == 2 && $temp == 0) {
251 $tag |= $temp;
271 $temp = substr($encoded, $encoded_pos, $length);
276 extract(unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4)));
317 $temp = self::decode_ber($content, $start, $content_pos);
318 if ($temp === false) {
321 $length = $temp['length'];
326 $newcontent[] = $temp;
331 $newcontent[] = $temp;
374 $temp = self::decode_ber($content, $start, $content_pos);
375 if ($temp === false) {
379 $last = count($temp) - 1;
382 if ($temp[$i]['type'] != self::TYPE_BIT_STRING) {
385 $current['content'] .= substr($temp[$i]['content'], 1);
388 if ($temp[$last]['type'] != self::TYPE_BIT_STRING) {
391 $current['content'] = $temp[$last]['content'][0] . $current['content'] . substr($temp[$i]['content'], 1);
401 $temp = self::decode_ber($content, $length + $start, $content_pos);
402 if ($temp === false) {
405 $content_pos += $temp['length'];
407 if ($temp['type'] != self::TYPE_OCTET_STRING) {
410 $current['content'] .= $temp['content'];
411 $length += $temp['length'];
439 $temp = self::decode_ber($content, $start + $offset, $content_pos);
440 if ($temp === false) {
443 $content_pos += $temp['length'];
444 $current['content'][] = $temp;
445 $offset += $temp['length'];
600 $temp = $decoded['content'][$i];
606 if (isset($temp['constant'])) {
607 $tempClass = $temp['type'];
617 if (isset($constant) && isset($temp['constant'])) {
619 $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
622 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
629 $candidate = self::asn1map($temp, $child, $special);
667 $temp = $decoded['content'][$i];
669 if (isset($temp['constant'])) {
670 $tempClass = $temp['type'];
689 if (isset($constant) && isset($temp['constant'])) {
691 $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
694 $maymatch = !isset($child['constant']) && array_search($child['type'], [$temp['type'], self::TYPE_ANY, self::TYPE_CHOICE]) !== false;
700 $candidate = self::asn1map($temp, $child, $special);
791 $temp = $decoded['content'];
793 $temp = new BigInteger($decoded['content'], -256);
796 $temp = (int) $temp->toString();
797 return isset($mapping['mapping'][$temp]) ?
798 $mapping['mapping'][$temp] :
801 return $temp;
819 $temp = Strings::shift($string, $length);
820 list(, $length) = unpack('N', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4));
884 $temp = self::encode_der($content, $child, null, $special);
885 if ($temp === false) {
888 $value[] = $temp;
911 $temp = self::encode_der($source[$key], $child, $key, $special);
912 if ($temp === false) {
918 if ($temp === '') {
935 $temp = $subtag . self::encodeLength(strlen($temp)) . $temp;
937 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
938 $temp = $subtag . substr($temp, 1);
941 $value .= $temp;
945 $temp = false;
952 $temp = self::encode_der($source[$key], $child, $key, $special);
953 if ($temp === false) {
959 if ($temp === '') {
963 $tag = ord($temp[0]);
969 $temp = $subtag . self::encodeLength(strlen($temp)) . $temp;
971 $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
972 $temp = $subtag . substr($temp, 1);
981 if ($temp && isset($mapping['cast'])) {
982 $temp[0] = chr(($mapping['class'] << 6) | ($tag & 0x20) | $mapping['cast']);
985 return $temp;
1126 $tag = ($mapping['class'] << 6) | (ord($temp[0]) & 0x20) | $mapping['cast'];
1163 $temp = ord($content[$pos++]);
1165 $n = $n->bitwise_or(new BigInteger($temp & 0x7F));
1166 if (~$temp & 0x80) {
1229 $temp = "\0";
1231 $temp = '';
1236 $temp = (chr(0x80) | $submask->toBytes()) . $temp;
1239 $temp[strlen($temp) - 1] = $temp[strlen($temp) - 1] & chr(0x7F);
1241 $value .= $temp;
1459 $temp = $str;
1461 $temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1);
1462 $temp = preg_replace('#-+END.*[\r\n ]*.*#ms', '', $temp, 1);
1465 $temp = str_replace(["\r", "\n", ' '], '', $temp);
1467 $temp = preg_replace('#^-+[^-]+-+|-+[^-]+-+$#', '', $temp);
1468 $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? Strings::base64_decode($temp) : false;
1469 return $temp != false ? $temp : $str;
1487 $temp = ltrim(pack('N', $length), chr(0));
1488 return pack('Ca*', 0x80 | strlen($temp), $temp);