Home
last modified time | relevance | path

Searched refs:GTUtil (Results 1 – 13 of 13) sorted by relevance

/plugin/gtime/gtlib/tsp/
DGTPublicationsFile.php93 $version = GTUtil::readShort($this->content, self::VERSION_POS);
100 $publicationBlockBegin = GTUtil::readInt($this->content, self::PUBLICATION_BLOCK_BEGIN_POS);
106 $publicationCellSize = GTUtil::readShort($this->content, self::PUBLICATION_CELL_SIZE_POS);
107 $publicationCount = GTUtil::readInt($this->content, self::PUBLICATION_COUNT_POS);
110 … $publicKeyBlockBegin = GTUtil::readInt($this->content, self::PUBLICATION_KEY_BLOCK_BEGIN_POS);
116 $publicKeyCellSize = GTUtil::readShort($this->content, self::PUBLICATION_KEY_CELL_SIZE_POS);
117 $publicKeyCount = GTUtil::readShort($this->content, self::PUBLICATION_KEY_COUNT_POS);
120 …$publicationReferenceBlockBegin = GTUtil::readInt($this->content, self::PUBLICATION_REFERENCES_BLO…
127 $signatureBlockBegin = GTUtil::readInt($this->content, self::SIGNATURE_BLOCK_BEGIN_POS);
165 GTUtil::write($file, $this->getEncoded());
[all …]
DGTTimestamp.php289 …$this->properties[self::REQUEST_TIME] = GTUtil::formatTime(GTUtil::decodeTime($tstInfo->getGenTime…
319 …$this->properties[self::REGISTERED_TIME] = GTUtil::formatTime($this->registeredTime->getValue(), '…
326 … $this->properties[self::PUBLICATION_TIME] = GTUtil::formatTime($publicationId->getValue(), 'UTC');
556 GTUtil::write($file, $this->encodeDER());
568 $bytes = GTUtil::read($file);
DGTDataHash.php145 $result = hash_update($this->hashContext, GTUtil::fromByteArray($bytes));
229 $this->hashedMessage = GTUtil::toByteArray(hash_final($this->hashContext, true));
/plugin/gtime/gtlib/util/
DGTBigInteger.php97 foreach (GTUtil::toArray($value) as $c) {
218 GTUtil::lpad($bytes1, $length, 0x0);
219 GTUtil::lpad($bytes2, $length, 0x0);
243 GTUtil::lpad($bytes1, $length, 0x0);
244 GTUtil::lpad($bytes2, $length, 0x0);
268 GTUtil::lpad($bytes1, $length, 0x0);
269 GTUtil::lpad($bytes2, $length, 0x0);
339 $bytes = GTUtil::toByteArray($result);
DGTUtil.php29 class GTUtil { class
92 $a = abs($a) / GTUtil::gcd($a, $b);
139 if (!fwrite($fp, GTUtil::fromByteArray($bytes))) {
212 return GTUtil::toByteArray($data);
567 $checksum = crc32(GTUtil::fromByteArray($bytes));
DGTBaseX.php69 $this->block = 8 / GTUtil::gcd(8, $this->bits);
70 $this->chars = GTUtil::toArray($alphabet);
/plugin/gtime/gtlib/http/
DGTHttpClient.php55 $bytes = GTUtil::fromByteArray($bytes);
71 $bytes = GTUtil::toByteArray($bytes);
94 $bytes = GTUtil::fromByteArray($bytes);
110 $bytes = GTUtil::toByteArray($bytes);
173 $bytes = GTUtil::fromByteArray($bytes);
189 $bytes = GTUtil::toByteArray($bytes);
324 return new GTPublicationsFile(GTUtil::toByteArray($bytes));
/plugin/gtime/gtlib/asn1/x509/
DX509Certificate.php199 GTUtil::write($untrustedFile, GTUtil::toByteArray($cert->encodePEM()));
283 $data = GTUtil::fromByteArray($data);
284 $sign = GTUtil::fromByteArray($sign);
/plugin/gtime/gtlib/asn1/
DASN1String.php53 $bytes = GTUtil::toByteArray($this->value);
68 $this->setValue(GTUtil::fromByteArray($bytes));
DASN1BitString.php46 foreach (GTUtil::toArray($value) as $c) {
DASN1ObjectId.php51 foreach (GTUtil::toArray($value) as $char) {
/plugin/gtime/gtlib/
Dguardtime.php135 if (version_compare(GTUtil::getOpensslVersion(), '0.9.8', '<')) {
/plugin/gtime/gtlib/asn1/gt/
DGTPublishedData.php125 $bytes = GTUtil::addCrc32($bytes);