Lines Matching refs:hash
153 * Sets the hash
155 * @param string $hash
157 public function withHash($hash)
161 $hash = strtolower($hash);
165 switch ($hash) {
191 if ($hash != $expectedHash) {
192 throw new UnsupportedAlgorithmException('The only supported hash for ' . self::$curveAliases[$this->key->getCurve()] . ' is ' . $expectedHash);
196 if ($hash != 'sha1') {
197 throw new UnsupportedAlgorithmException('The only supported hash for DSA is sha1');