Home GnuPG

hmac: Allow use of shorter salt.

Description

hmac: Allow use of shorter salt.

* cipher/md.c (prepare_macpads): Move the check to...
* src/visibility.c (gcry_mac_setkey): ... here.

Cherry-picking the master commit of:
58c92098d053aae7c78cc42bdd7c80c13efc89bb

Details

Provenance
gniibeAuthored on Jun 24 2022, 1:59 AM
Parents
rC1d3a90a4d118: cipher: Fix gcry_pk_hash_verify for explicit hash.
Branches
Unknown
Tags
Unknown
Tasks
T6039: FIPS: Allow salt=NULL (or shorter salt) for HKDF