Home GnuPG

tests: Test gcry_pk_hash_sign w/explicit hash algo

Description

tests: Test gcry_pk_hash_sign w/explicit hash algo

  • tests/t-ecdsa.c (one_test_sexp): Re-run signature operation with hash algorithm explicitly specified in data_tmpl as documented in the manpage.

The code path to decode the explicit hash algorithm specification in
data_tmpl was previously not covered by tests. Verifying with
a data_tmpl that contains the hash algorithm as string currently fails
and should be enabled later. See also https://dev.gnupg.org/T6066.

  • Signed-off-by: Clemens Lang <cllang@redhat.com>

Details

Provenance
Clemens Lang via Gcrypt-devel <gcrypt-devel@lists.gnupg.org>Authored on Jul 6 2022, 4:55 PM
gniibeCommitted on Jul 7 2022, 4:41 AM
Parents
rC66ef99bb1804: sm4: fix wrong macro used for GFNI/AVX2 code-path
Branches
Unknown
Tags
Unknown

Event Timeline

gniibe committed rC45a139b166a3: tests: Test gcry_pk_hash_sign w/explicit hash algo (authored by Clemens Lang via Gcrypt-devel <gcrypt-devel@lists.gnupg.org>).Jul 7 2022, 4:41 AM