Home GnuPG
Diffusion GnuPG 4d37cc72b83f

common: New function to map hash algo names.

Description

common: New function to map hash algo names.

* common/sexputil.c (hash_algo_to_string): New.

Libgcrypt expects lowercase names and it is cumbersome to downcase
those retrieved via gcry_md_algo_name. It is easier and also faster
to use a dedicated map function.

Details

Provenance
wernerAuthored on Apr 9 2020, 12:13 PM
Parents
rG39e2260d7e05: scd:p15: Return a display S/N via Assuan.
Branches
Unknown
Tags
Unknown