pkdf2: Add checks for FIPS.
* cipher/kdf.c (_gcry_kdf_pkdf2): Require 8 chars passphrase for FIPS. Set bounds for salt length and iteration count in FIPS mode.
Cherry-picked from master branch of:
f4a861f3e5ae82f278284061e4829c03edf9c3a7
- GnuPG-bug-id: T6039
- Signed-off-by: Jakub Jelen <jjelen@redhat.com>