Make the PBKDF2 function accept hashes created using other algorithms