Home
last modified time | relevance | path

Searched refs:bytes (Results 76 – 100 of 319) sorted by path

12345678910>>...13

/plugin/freechat/phpfreechat/src/
H A Dpfctools.php413 $bytes = 0;
414 if (($bytes = @fwrite($fh, $content)) === false) {
426 if ($bytes != $length) {
428 $bytes,
435 return $bytes;
/plugin/geophp/vendor/funiq/geophp/src/
H A DgeoPHP.php344 fwrite($mem, $input, 11); // Write 11 bytes - we can detect the vast majority of formats in the first 11 bytes
348 $bytes = unpack("c*", $bin);
350 // If bytes is empty, then we were passed empty input
351 if (empty($bytes)) {
356 if ($bytes[1] == 9 || $bytes[1] == 10 || $bytes[1] == 32) {
362 if ($bytes[1] == 1 || $bytes[
[all...]
/plugin/groupmail/
H A Dsyntax.php392 $bytes = bin2hex(random_bytes(8));
393 $newrecord = '====== msg'.$bytes.' ======'."\n";
399 …$lastline .= $this->getLang("viewonline").wl($ID,'', true).'?id='.$targetpage."#msg".$bytes."\n\n\…
401 …ang("viewonline").'<a href="'.wl($ID,'', true).'?id='.$targetpage."#msg".$bytes.'">'.$bytes."</a>";
/plugin/gtime/gtlib/asn1/
H A DASN1BitString.php72 $bytes = array();
82 $this->append($bytes, bindec($byte));
85 $this->prepend($bytes, $padding);
86 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes)));
87 $this->prepend($bytes, ASN1DER::encodeType(ASN1_TAG_BIT_STRING));
89 return $bytes;
96 * @param array $bytes V bytes from the encoding of ASN1BitString TLV
99 public function decodeDER($bytes) { argument
103 $padding = $this->readByte($bytes);
109 while (count($bytes) > 0) {
[all …]
H A DASN1Boolean.php71 $bytes = array();
73 $this->append($bytes, ASN1DER::encodeType(ASN1_TAG_BOOLEAN));
74 $this->append($bytes, ASN1DER::encodeLength(1));
77 $this->append($bytes, 0xFF);
79 $this->append($bytes, 0x0);
82 return $bytes;
89 * @param array $bytes V bytes from the encoding of ASN1Boolean TLV
92 public function decodeDER($bytes) { argument
94 if (count($bytes) != 1) {
95 throw new GTException("Invalid DER length for ASN1Boolean: " . count($bytes));
[all …]
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 DASN1Integer.php72 $bytes = $this->value->toBytes();
76 while (count($bytes) > 0) {
78 if ($bytes[0] == 0x0) {
79 array_shift($bytes);
87 if ($bytes[0] >> 7 == 1) {
88 array_unshift($bytes, 0xFF);
91 $bytes[0] = ($bytes[0] | 0x80) & 0xFF;
96 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes)));
99 return $bytes;
108 public function decodeDER($bytes) { argument
[all …]
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 DASN1ObjectId.php86 $bytes = array();
93 $this->append($bytes, ($b1 * 40 + $b2));
121 $this->append($bytes, (int) $integer->bitAnd($mask2)->getValue());
124 … $this->append($bytes, (int) $integer->shiftRight($i)->bitAnd($mask2)->bitOr($mask1)->getValue());
130 $this->prepend($bytes, ASN1DER::encodeLength(count($bytes)));
131 $this->prepend($bytes, ASN1DER::encodeType(ASN1_TAG_OBJECT_ID));
133 return $bytes;
143 public function decodeDER($bytes) { argument
149 for ($i = 0; $i < count($bytes); $i++) {
155 $byte = $bytes[$i];
[all …]
H A DASN1OctetString.php67 $bytes = array();
69 $this->append($bytes, ASN1DER::encodeType(ASN1_TAG_OCTET_STRING));
70 $this->append($bytes, ASN1DER::encodeLength(count($this->value)));
71 $this->append($bytes, $this->value);
73 return $bytes;
82 public function decodeDER($bytes) { argument
83 $this->value = $bytes;
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));
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 …]
/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/asn1/x509/
H A DX509Certificate.php38 private $bytes; variable in X509Certificate
54 $this->bytes = $data;
57 $this->bytes = $data->encodeDER();
93 $body = GTBase64::encode($this->bytes);
248 $bytes = GTBase64::decode($string);
251 $hash->update($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);

12345678910>>...13