fips,ecc: Check DATA in gcry_pk_sign/verify in FIPS mode.
* src/gcrypt.h.in (GCRY_FIPS_FLAG_REJECT_PK_MD): New. (GCRY_FIPS_FLAG_REJECT_PK_GOST_SM2): New. * cipher/ecc.c (ecc_sign): Check if GOST or SM2. Check if hash is compliant. (ecc_verify): Likewise. * tests/t-fips-service-ind.c (check_pk_s_v): Modify tests including hash compliance.
- GnuPG-bug-id: T7338
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>