Lines Matching refs:result
43 $result = new GTVerificationResult();
44 $result->update(GTVerifier::verifyCommon($content, $dataHash));
46 if (!$result->isValid()) {
47 return $result;
72 $result->update(GTVerifier::verifyCertificate($certificate, $historyTime, $publicKey));
74 if (!$result->isValid()) {
75 return $result;
78 $result->update(GTVerifier::verifyPkSignature($timeSignature, $publicKey));
80 return $result;
95 $result = new GTVerificationResult();
96 $result->update(GTVerifier::verifyCommon($content, $dataHash));
98 if (!$result->isValid()) {
99 return $result;
112 $result->update(GTVerifier::verifyPublication($timeSignature, $publication));
114 return $result;
128 $result = new GTVerificationResult();
137 $result->updateStatus(GTVerificationResult::PUBLICATION_REFERENCE_PRESENT);
141 $result->updateStatus(GTVerificationResult::PUBLIC_KEY_SIGNATURE_PRESENT);
146 $result->update(GTVerifier::verifyDataHash($messageImprint, $dataHash));
148 if (!$result->isValid()) {
149 return $result;
172 $result->updateErrors(GTVerificationResult::SYNTACTIC_CHECK_FAILURE);
175 if (!$result->isValid()) {
176 return $result;
181 … $result->update(GTVerifier::verifyHashChains($timeSignature, $digestAlgorithm, $signedAttrs));
183 return $result;
197 $result = new GTVerificationResult();
204 return $result;
208 $result->updateErrors(GTVerificationResult::WRONG_DOCUMENT_FAILURE);
211 $result->updateErrors(GTVerificationResult::WRONG_DOCUMENT_FAILURE);
215 $result->updateStatus(GTVerificationResult::DATA_HASH_CHECKED);
217 return $result;
232 $result = new GTVerificationResult();
246 $result->updateErrors(GTVerificationResult::SYNTACTIC_CHECK_FAILURE);
247 return $result;
254 $result->updateErrors(GTVerificationResult::SYNTACTIC_CHECK_FAILURE);
255 return $result;
280 $result->updateErrors(GTVerificationResult::HASHCHAIN_VERIFICATION_FAILURE);
283 return $result;
301 $result = new GTVerificationResult();
304 $result->updateErrors(GTVerificationResult::PUBLICATION_FAILURE);
307 $result->updateStatus(GTVerificationResult::PUBLICATION_CHECKED);
309 return $result;
324 $result = new GTVerificationResult();
345 $result->updateErrors(GTVerificationResult::CERTIFICATE_FAILURE);
349 $result->updateErrors(GTVerificationResult::CERTIFICATE_FAILURE);
358 $result->updateErrors(GTVerificationResult::CERTIFICATE_FAILURE);
361 return $result;
375 $result = new GTVerificationResult();
393 $result->updateErrors(GTVerificationResult::PUBLIC_KEY_SIGNATURE_FAILURE);
396 return $result;