owncloud/lib/private/security/hasher.php
/**
	 * Verify V1 hashes
	 * @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
	 */
Verify V1 hashes
@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
Verify V1 hashes @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
protected function verifyHashV1($message, $hash, &$newHash = null) {
		if(password_verify($message, $hash)) {
			if(password_needs_rehash($hash, PASSWORD_DEFAULT, $this->options)) {
				$newHash = $this->hash($message);
			}
			return true;
		}
		return false;
	}
protected function verifyHashV1 ( $ message , $ hash , & $ newHash = null ) { if ( password_verify ( $ message , $ hash ) ) { if ( password_needs_rehash ( $ hash , PASSWORD_DEFAULT , $ this -> options ) ) { $ newHash = $ this -> hash ( $ message ) ; } return true ; } return false ; }
Verify V1 hashes
 @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.
Verify V1 hashes @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 .