/plugin/gtime/gtlib/asn1/ |
H A D | ASN1DER.php | 58 $bytes = array(); 84 return $bytes; 114 if (empty($bytes)) { 121 if (count($bytes) < $length) { 125 if (count($bytes) > $length) { 129 $object->decodeDER($bytes); 144 if (!is_array($bytes)) { 148 if (count($bytes) == 0) { 192 if (!is_array($bytes)) { 196 if (count($bytes) < 1) { [all …]
|
H A D | ASN1DERDecodable.php | 35 * @param array $bytes V bytes DER encoding of this object's TLV 38 public function decodeDER($bytes); argument
|
H A D | ASN1Null.php | 45 $bytes = array(); 47 $this->append($bytes, ASN1DER::encodeType(ASN1_TAG_NULL)); 48 $this->append($bytes, 0x0); 50 return $bytes; 59 * @param array $bytes null or empty array 62 public function decodeDER($bytes) { argument 64 if (!empty($bytes)) {
|
H A D | ASN1Object.php | 39 * @param array $bytes the bytes to append 44 if (!is_array($bytes)) { 45 $bytes = array($bytes); 48 foreach ($bytes as $b) { 62 if (!is_array($bytes)) { 63 $bytes = array($bytes); 67 array_unshift($stream, $bytes[$i]); 80 $bytes = $this->readBytes($stream, 1); 82 return array_shift($bytes); 104 $bytes = array(); [all …]
|
H A D | ASN1Tag.php | 32 private $bytes; variable in ASN1Tag 43 public function decodeDER($bytes) { argument 44 $this->bytes = $bytes; 57 $bytes = array(); 64 } else if ($this->bytes != null) { 67 $this->append($bytes, $this->bytes); 77 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes))); 104 $bytes[0] = $tag; 106 return $bytes; 124 if (count($this->bytes) > 0) { [all …]
|
H A D | ASN1Sequence.php | 85 $bytes = array(); 88 $this->append($bytes, $object->encodeDER()); 91 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes))); 92 $this->prepend($bytes, ASN1DER::encodeType(ASN1_TAG_SEQUENCE)); 94 return $bytes; 103 public function decodeDER($bytes) { argument 105 while (count($bytes) > 0) { 107 $object = ASN1DER::decodeType($bytes); 108 $length = ASN1DER::decodeLength($bytes); 110 $object->decodeDER($this->readBytes($bytes, $length));
|
H A D | ASN1Set.php | 84 $bytes = array(); 87 $this->append($bytes, $object->encodeDER()); 90 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes))); 91 $this->prepend($bytes, ASN1DER::encodeType(ASN1_TAG_SET)); 93 return $bytes; 102 public function decodeDER($bytes) { argument 104 while (count($bytes) > 0) { 106 $object = ASN1DER::decodeType($bytes); 107 $length = ASN1DER::decodeLength($bytes); 109 $object->decodeDER($this->readBytes($bytes, $length));
|
H A D | ASN1String.php | 53 $bytes = GTUtil::toByteArray($this->value); 55 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes))); 56 $this->prepend($bytes, ASN1DER::encodeType($this->getType())); 58 return $bytes; 67 public function decodeDER($bytes) { argument 68 $this->setValue(GTUtil::fromByteArray($bytes));
|
/plugin/gtime/gtlib/asn1/gt/ |
H A D | GTPublishedData.php | 114 $bytes = $int->toBytes(); 117 while (count($bytes) % 8 != 0) { 118 array_unshift($bytes, 0); 122 array_push($bytes, $byte); 125 $bytes = GTUtil::addCrc32($bytes); 127 return GTBase32::encodeWithDashes($bytes);
|
/plugin/gtime/gtlib/http/ |
H A D | GTHttpClient.php | 55 $bytes = GTUtil::fromByteArray($bytes); 65 $bytes = curl_exec($curl); 67 if ($bytes === false) { 71 $bytes = GTUtil::toByteArray($bytes); 94 $bytes = GTUtil::fromByteArray($bytes); 104 $bytes = curl_exec($curl); 106 if ($bytes === false) { 110 $bytes = GTUtil::toByteArray($bytes); 173 $bytes = GTUtil::fromByteArray($bytes); 189 $bytes = GTUtil::toByteArray($bytes); [all …]
|
/plugin/gtime/gtlib/tsp/ |
H A D | GTDataHash.php | 135 public function update($bytes) { argument 141 if (empty($bytes)) { 145 $result = hash_update($this->hashContext, GTUtil::fromByteArray($bytes));
|
H A D | GTHashChain.php | 52 if (empty($bytes)) { 56 if (!is_array($bytes)) { 62 for ($i = 0; $i < count($bytes);) { 66 if ($i >= count($bytes)) { 70 $direction = $bytes[$i++]; 72 if ($i >= count($bytes)) { 85 if ($i >= count($bytes)) { 88 $level = $bytes[$i++] & 0xFF; 109 if (empty($bytes)) { 113 if (!is_array($bytes)) { [all …]
|
H A D | GTHashEntry.php | 55 * @param array $bytes bytes to compute output for 58 public function computeOutput(array $bytes) { argument 62 $hash->update($bytes);
|
H A D | GTPublicationsFile.php | 79 public function __construct(array $bytes) { argument 81 if (empty($bytes)) { 85 $this->content = $bytes; 177 $bytes = GTUtil::read($file); 179 return new GTPublicationsFile($bytes); 394 $contentInfo->decode(ASN1DER::decode($bytes)); 517 $bytes = GTBase32::decode($publicationString); 519 $result = GTUtil::readLong($bytes, 0); 536 $bytes = GTUtil::addCrc32($bytes); 538 return GTBase32::encodeWithDashes($bytes); [all …]
|
H A D | GTTimestamp.php | 568 $bytes = GTUtil::read($file); 571 $content->decode(ASN1DER::decode($bytes));
|
/plugin/gtime/gtlib/util/ |
H A D | GTBase16.php | 40 * @param array $bytes an array containing the bytes to encode. 45 public static function encode(array $bytes, $offset = null, $length = null) { argument 46 return self::getInstance()->encode($bytes, $offset, $length); 53 * @param array $bytes an array containing the bytes to encode 58 public static function encodeWithColons(array $bytes, $offset = null, $length = null) { argument 59 return self::getInstance()->encode($bytes, $offset, $length, ':', 2); 66 * @param array $bytes an array containing the bytes to encode 71 public static function encodeWithSpaces(array $bytes, $offset = null, $length = null) { argument 72 return self::getInstance()->encode($bytes, $offset, $length, ' ', 2);
|
H A D | GTBase32.php | 40 * @param array $bytes an array containing the bytes to encode. 45 public static function encode(array $bytes, $offset = null, $length = null) { argument 46 return self::getInstance()->encode($bytes, $offset, $length); 53 * @param array $bytes an array containing the bytes to encode 58 public static function encodeWithDashes(array $bytes, $offset = null, $length = null) { argument 59 return self::getInstance()->encode($bytes, $offset, $length, '-', 6);
|
H A D | GTBase64.php | 40 * @param array $bytes an array containing the bytes to encode. 45 public static function encode(array $bytes, $offset = null, $length = null) { argument 46 return self::getInstance()->encode($bytes, $offset, $length);
|
H A D | GTUtil.php | 114 * @param array $bytes byte array that contains the bytes to write 119 public static function write($file, array $bytes) { argument 125 if ($bytes == null) { 129 if (!is_array($bytes)) { 139 if (!fwrite($fp, GTUtil::fromByteArray($bytes))) { 565 public static function addCrc32(array $bytes) { argument 567 $checksum = crc32(GTUtil::fromByteArray($bytes)); 578 array_push($bytes, $byte); 581 return $bytes;
|
/plugin/swiftmail/Swift/Cache/ |
H A D | OutputStream.php | 56 while (false !== $bytes = $this->read()) 57 $ret .= $bytes;
|
/plugin/swiftmail/Swift/Plugin/ |
H A D | BandwidthMonitor.php | 43 $bytes = strlen($e->getString()) + $add; 44 $this->addBytesOut($bytes); 52 $bytes = strlen($e->getString()) + 2; 53 $this->addBytesIn($bytes);
|
/plugin/swiftmail/Swift/ |
H A D | File.php | 167 public function read($bytes, $unquote=true) argument 173 $ret = fread($this->handle, $bytes);
|
/plugin/swiftmail/ |
H A D | Swift.php | 423 while (false !== $bytes = $data->read()) 424 $this->command($bytes, -1); 446 while (false !== $bytes = $data->read()) 447 $this->command($bytes, -1);
|
/plugin/swiftmail/Swift/Message/ |
H A D | Encoder.php | 160 while (false !== $bytes = $file->read(8190)) 164 $next = chunk_split($this->rawBase64Encode($bytes), $chunk, $le); 271 while (false !== $bytes = $file->readln()) 273 $next = $this->rawQPEncode($bytes, true); 303 while (false !== $bytes = $file->read(8192)) $ret .= $bytes; 331 while (false !== $bytes = $file->read(8192)) $ret .= $bytes;
|
H A D | Mime.php | 293 while (false !== $bytes = $part_stream->read()) $this->cache->write("append", $bytes); 316 while (false !== $bytes = $qp_os->read()) 317 $this->cache->write("body", $bytes); 328 while (false !== $bytes = $b64_os->read()) 329 $this->cache->write("body", $bytes); 340 while (false !== $bytes = $data->read(8192)) 341 $this->cache->write("body", $bytes); 352 while (false !== $bytes = $os->read()) 353 $this->cache->write("body", $bytes); 364 while (false !== $bytes = $os->read()) [all …]
|