Home GnuPG

hmac,hkdf: Allow use of shorter salt for HKDF.

Description

hmac,hkdf: Allow use of shorter salt for HKDF.

* cipher/md.c (prepare_macpads): Move the check to...
* src/visibility.c (gcry_mac_setkey): ... here.
* tests/t-kdf.c (check_hkdf): No failure is expected.

Details

Provenance
gniibeAuthored on Jun 24 2022, 1:59 AM
Parents
rC07722d89bac1: kdf,fips: Modify HKDF test for FIPS mode.
Branches
Unknown
Tags
Unknown
Tasks
T6039: FIPS: Allow salt=NULL (or shorter salt) for HKDF