Fixed pbkdf2 implementation