Home GnuPG

md: Fix checking to use ->disabled instead of ->fips directly.

Description

md: Fix checking to use ->disabled instead of ->fips directly.

* cipher/md.c (md_enable): Check by ->disabled.
(_gcry_md_hash_buffer, _gcry_md_hash_buffers_extract): Likewise.

This is the way other implementations (of MAC, CIPHER, PUBKEY) do.
With this change, we will be able to add *_ctl API like CIPHER and
PUBKEY, if needed.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Dec 7 2021, 3:23 AM
Parents
rC754ad5815b5b: random: Remove use of experimental random daemon.
Branches
Unknown
Tags
Unknown