lib/private/Security/Hasher.php
/**
	 * @param string $message Message to verify
	 * @param string $hash Assumed hash of the message
	 * @param null|string &$newHash Reference will contain the updated hash if necessary. Update the existing hash with this one.
	 * @return bool Whether $hash is a valid hash of $message
	 */
@param string $message Message to verify
@param string $hash Assumed hash of the message
@param null|string &$newHash Reference will contain the updated hash if necessary. Update the existing hash with this one.
@return bool Whether $hash is a valid hash of $message
@param string $message Message to verify @param string $hash Assumed hash of the message @param null|string &$newHash Reference will contain the updated hash if necessary . Update the existing hash with this one . @return bool Whether $hash is a valid hash of $message
public function verify($message, $hash, &$newHash = null) {
		$splittedHash = $this->splitHash($hash);
		if(isset($splittedHash['version'])) {
			switch ($splittedHash['version']) {
				case 1:
					return $this->verifyHashV1($message, $splittedHash['hash'], $newHash);
			}
		} else {
			return $this->legacyHashVerify($message, $hash, $newHash);
		}
		return false;
	}
public function verify ( $ message , $ hash , & $ newHash = null ) { $ splittedHash = $ this -> splitHash ( $ hash ) ; if ( isset ( $ splittedHash [ 'version' ] ) ) { switch ( $ splittedHash [ 'version' ] ) { case 1 : return $ this -> verifyHashV1 ( $ message , $ splittedHash [ 'hash' ] , $ newHash ) ; } } else { return $ this -> legacyHashVerify ( $ message , $ hash , $ newHash ) ; } return false ; }
@param string $message Message to verify
 @param string $hash Assumed hash of the message
 @param null|string &$newHash Reference will contain the updated hash if necessary.
@param string $message Message to verify @param string $hash Assumed hash of the message @param null|string &$newHash Reference will contain the updated hash if necessary .