Searched refs:dataHash (Results 1 – 4 of 4) sorted by relevance
/plugin/gtime/gtlib/tsp/ |
H A D | GTVerifier.php | 37 * @param GTDataHash $dataHash datahash to verify the timestamp against 44 $result->update(GTVerifier::verifyCommon($content, $dataHash)); 89 * @param GTDataHash $dataHash datahash to verify this timestamp against 96 $result->update(GTVerifier::verifyCommon($content, $dataHash)); 123 * @param GTDataHash $dataHash data hash to verify this timestamp against 146 $result->update(GTVerifier::verifyDataHash($messageImprint, $dataHash)); 167 $dataHash = new GTDataHash($digestAlgorithm); 169 $dataHash->close(); 171 if ($messageDigest !== $dataHash->getHashedMessage()) { 192 * @param GTDataHash $dataHash data hash [all …]
|
H A D | GTTimestamp.php | 178 private $dataHash; variable in GTTimestamp 209 $this->dataHash = new GTDataHash(GTHashAlgorithm::getByOid($hashAlgorithm), $hashedMessage); 283 $this->properties[self::HASH_ALGORITHM] = $this->dataHash->getHashAlgorithm()->getOid(); 284 … $this->properties[self::HASHED_MESSAGE] = GTBase16::encode($this->dataHash->getHashedMessage()); 424 * @param GTDataHash $dataHash data hash to use for verification 428 public function verify(GTDataHash $dataHash, GTPublicationsFile $publicationsFile) { argument 457 …rificationResult->update(GTVerifier::verifyWithPublication($this->token, $dataHash, $publication)); 485 …rificationResult->update(GTVerifier::verifyWithSignature($this->token, $dataHash, $certificate->ge… 528 return $this->dataHash->getHashAlgorithm();
|
/plugin/gtime/action/ |
H A D | timestamp.php | 237 $dataHash = new GTDataHash(GTHashAlgorithm::getByName('DEFAULT')); 238 $dataHash->updateFile($data[0][0]); 239 $dataHash->close(); 244 $timestamp = GTHttpClient::create($dataHash, $Timestamper_URL); 297 $dataHash = new GTDataHash($timestamp->getHashAlgorithm()); 298 $dataHash->updateFile($INFO['filepath']); 299 $dataHash->close(); 307 $result = GTHttpClient::verify($timestamp, $dataHash, null, $publicationsFile);
|
/plugin/gtime/gtlib/http/ |
H A D | GTHttpClient.php | 38 * @param GTDataHash $dataHash data hash to create the timestamp for 42 public static function create(GTDataHash $dataHash, $stamperUrl) { argument 45 $algorithm->setAlgorithm($dataHash->getHashAlgorithm()->getOid()); 48 $message->setHashedMessage($dataHash->getHashedMessage()); 135 * @param GTDataHash $dataHash data hash to verify the timestamp against 141 …public static function verify(GTTimestamp $timestamp, GTDataHash $dataHash, $verifierUrl, GTPublic… argument 147 if (empty($dataHash)) { 241 $gtResult = $timestamp->verify($dataHash, $publicationsFile); 291 $gtResult = $timestamp->verify($dataHash, $publicationsFile);
|