Home GnuPG

hmac,hkdf: Check the HMAC key length in FIPS mode.

Description

hmac,hkdf: Check the HMAC key length in FIPS mode.

* src/visibility.c (gcry_md_setkey): Add the check here, too.

Cherry-picked from the master commit of:

b095ea7559734f519fbe92d570afe567330eb474

Details

Provenance
JakujeAuthored on Oct 26 2022, 8:41 AM
gniibeCommitted on Oct 27 2022, 3:20 AM
Parents
rC7f4fafb5564d: Revert "kdf:pkdf2: Require longer input when FIPS mode."
Branches
Unknown
Tags
Unknown
Tasks
T6039: FIPS: Allow salt=NULL (or shorter salt) for HKDF