Home
last modified time | relevance | path

Searched refs:GTBigInteger (Results 1 – 11 of 11) sorted by relevance

/plugin/gtime/gtlib/util/
DGTBigInteger.php31 class GTBigInteger { class
87 } else if ($value instanceof GTBigInteger) {
118 * @param GTBigInteger $integer the other GTBigInteger
121 public function comp(GTBigInteger $integer) {
128 * @param GTBigInteger $integer the other GTBigInteger
129 * @return GTBigInteger the sum of the two integers
131 public function add(GTBigInteger $integer) {
132 return new GTBigInteger(bcadd($this->value, $integer->value, 0));
138 * @param GTBigInteger $integer the GTBigInteger to subtract from this one
139 * @return GTBigInteger the result of the subtraction
[all …]
DGTUtil.php509 $integer = new GTBigInteger(
531 $integer = new GTBigInteger(
545 * @return GTBigInteger 8 byte GTBigInteger from the given byte array
553 return new GTBigInteger(
569 $checksum = new GTBigInteger($checksum);
592 $version = new GTBigInteger(OPENSSL_VERSION_NUMBER);
594 $mask = new GTBigInteger(0xF);
/plugin/gtime/gtlib/tsp/
DGTHashChain.php176 * @return GTBigInteger location ID computed on this location chain
190 $locationId = new GTBigInteger(0);
210 $locationId = $locationId->shiftLeft(16)->bitOr(new GTBigInteger($idNational));
229 $locationId = $locationId->shiftLeft(16)->bitOr(new GTBigInteger($idState));
249 $locationId = $locationId->shiftLeft(16)->bitOr(new GTBigInteger($idLocal));
262 $locationId = $locationId->shiftLeft(16)->bitOr(new GTBigInteger($idClient));
279 * @return GTBigInteger history ID computed on this history chain
283 $N = $publicationId->add(new GTBigInteger(1));
295 $hashChainDirs = new GTBigInteger(0);
306 $hashChainDirs = $hashChainDirs->bitOr(new GTBigInteger(1));
[all …]
DGTTimestamp.php306 … $publicationId = new GTBigInteger($timeSignature->getPublishedData()->getPublicationIdentifier());
534 * @return GTBigInteger timestamp registration time
DGTVerifier.php64 $publicationId = new GTBigInteger(
/plugin/gtime/gtlib/asn1/tsp/
DTSPAccuracy.php200 $accuracy = new GTBigInteger(0);
203 $accuracy = $accuracy->add(new GTBigInteger($this->seconds));
206 $accuracy = $accuracy->mul(new GTBigInteger(1000));
209 $accuracy = $accuracy->add(new GTBigInteger($this->millis));
212 $accuracy = $accuracy->mul(new GTBigInteger(1000));
215 $accuracy = $accuracy->add(new GTBigInteger($this->micros));
218 $zero = new GTBigInteger(0);
221 return "{$accuracy->div(new GTBigInteger(1000000))->getValue()}s";
224 return "{$accuracy->div(new GTBigInteger(1000))->getValue()}ms";
/plugin/gtime/gtlib/asn1/
DASN1Integer.php37 * @param int|GTBigInteger $value integer or GTBigInteger instance
45 $this->value = new GTBigInteger($value);
47 } else if ($value instanceof GTBigInteger) {
74 if ($this->value->comp(new GTBigInteger(0)) == -1) {
110 $this->value = new GTBigInteger($bytes);
DASN1ObjectId.php95 $zero = new GTBigInteger(0);
97 $mask1 = new GTBigInteger(0x80);
98 $mask2 = new GTBigInteger(0x7F);
102 $integer = new GTBigInteger($token);
152 $current = new GTBigInteger(0);
158 $current = $current->bitOr(new GTBigInteger($byte & 0x7F));
/plugin/gtime/gtlib/asn1/gt/
DGTPublishedData.php99 $sequence->add(new ASN1Integer(new GTBigInteger($this->publicationIdentifier)));
112 $int = new GTBigInteger($this->publicationIdentifier);
/plugin/gtime/gtlib/asn1/cms/
DCMSIssuerAndSerialNumber.php105 $sequence->add(new ASN1Integer(new GTBigInteger($this->serialNumber)));
/plugin/gtime/gtlib/http/
DGTHttpClient.php91 …$request->setHistoryIdentifier(new GTBigInteger($timestamp->getProperty(GTTimestamp::HISTORY_ID)));
170 …$request->setHistoryIdentifier(new GTBigInteger($timestamp->getProperty(GTTimestamp::HISTORY_ID)));