Made OpenSSL's derive_pbkdf2_hmac raise the right exception