Home GnuPG

fips,ecc: Check DATA in gcry_pk_sign/verify in FIPS mode.

Description

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>

Details

Provenance
gniibeAuthored on Thu, Dec 26, 3:12 AM
Parents
rCd71c88f78a4f: tests: Add more tests to tests/t-fips-service-ind.
Branches
Unknown
Tags
Unknown
References
HEAD -> master
Tasks
T7338: Revamp the FIPS service indicator