<?php

/**
 * These should all be fine.
 */
hash_file(algo: "something"); // Not one of the targetted algorithms.
hash("1st param", "md2"); // Not the right parameter.
hash_init; // Not a function call.

/**
 * These should all be flagged.
 */
hash_file('md2');
hash_file('ripemd256');
hash_file("ripemd320");
hash_file( "salsa10" );

hash_hmac(     "salsa20"      );
hash_hmac_file("snefru256" /*comment*/);
hash_init(   'sha224'  );

hash(/*comment*/ "joaat");
hash("fnv132", "2nd param", 3, false);
hash("fnv164");

hash_pbkdf2(algo: 'gost-crypto');

hash_file('sha512/224');
hash_hmac_file('sha512/256');
hash_hmac('sha3-224');
hash_init('sha3-256');
hash_pbkdf2('sha3-384');
hash('sha3-512');
hash('crc32c');

hash_file('murmur3a');
hash('murmur3c');
hash_init('murmur3f');
hash('xxh32');
hash_init('xxh64');
hash_file('xxh3');
hash('xxh128');

// Safeguard handling of function call missing required param / live coding.
hash_init();
hash_hmac( data: 'salsa20', key: $key ); // Missing $algo param.
hash_pbkdf2(algorithm: 'salsa20'); // Incorrect param name.
