Home
last modified time | relevance | path

Searched refs:bytes (Results 251 – 275 of 319) sorted by last modified time

1...<<111213

/plugin/gtime/gtlib/asn1/
H A DASN1DER.php58 $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 DASN1DERDecodable.php35 * @param array $bytes V bytes DER encoding of this object's TLV
38 public function decodeDER($bytes); argument
H A DASN1Null.php45 $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 DASN1Object.php39 * @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 DASN1Tag.php32 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 DASN1Sequence.php85 $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 DASN1Set.php84 $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 DASN1String.php53 $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 DGTPublishedData.php114 $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 DGTHttpClient.php55 $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 DGTDataHash.php135 public function update($bytes) { argument
141 if (empty($bytes)) {
145 $result = hash_update($this->hashContext, GTUtil::fromByteArray($bytes));
H A DGTHashChain.php52 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 DGTHashEntry.php55 * @param array $bytes bytes to compute output for
58 public function computeOutput(array $bytes) { argument
62 $hash->update($bytes);
H A DGTPublicationsFile.php79 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 DGTTimestamp.php568 $bytes = GTUtil::read($file);
571 $content->decode(ASN1DER::decode($bytes));
/plugin/gtime/gtlib/util/
H A DGTBase16.php40 * @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 DGTBase32.php40 * @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 DGTBase64.php40 * @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 DGTUtil.php114 * @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 DOutputStream.php56 while (false !== $bytes = $this->read())
57 $ret .= $bytes;
/plugin/swiftmail/Swift/Plugin/
H A DBandwidthMonitor.php43 $bytes = strlen($e->getString()) + $add;
44 $this->addBytesOut($bytes);
52 $bytes = strlen($e->getString()) + 2;
53 $this->addBytesIn($bytes);
/plugin/swiftmail/Swift/
H A DFile.php167 public function read($bytes, $unquote=true) argument
173 $ret = fread($this->handle, $bytes);
/plugin/swiftmail/
H A DSwift.php423 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 DEncoder.php160 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 DMime.php293 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 …]

1...<<111213