kdf: Make PBKDF2 check work on all platforms.