Lines Matching refs:hashAlgorithm
75 private $hashAlgorithm; variable in GTDataHash
89 * @param GTHashAlgorithm $hashAlgorithm hash algorithm to use
92 public function __construct($hashAlgorithm, $hashedMessage = null) { argument
94 if (empty($hashAlgorithm)) {
98 if (!($hashAlgorithm instanceof GTHashAlgorithm)) {
102 $this->hashAlgorithm = $hashAlgorithm;
106 $this->hashContext = hash_init($this->hashAlgorithm->getName());
109 …row new GTException("Unable to init GTDataHash with algorithm: {$this->hashAlgorithm->getName()}");
118 if (count($hashedMessage) != $this->hashAlgorithm->getLength()) {
252 return $this->hashAlgorithm;
288 $result = array($this->hashAlgorithm->getGtid());
329 $hashAlgorithm = GTHashAlgorithm::getByGtid($dataImprint[0]);
332 return new GTDataHash($hashAlgorithm, $hashedMessage);