1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00
gnupg/tests
Werner Koch 24b3a5a579
sm: Support more HMAC algos in the pkcs#12 parser.
* sm/minip12.c (oid_hmacWithSHA1): New.  Also for the SHA-2 algos.
(digest_algo_from_oid): New.
(set_key_iv_pbes2): Add arg digest_algo.
(crypt_block): Ditto.
(decrypt_block): Ditto.
(parse_bag_encrypted_data): Parse the optional prf part and get the
hmac algorithm.
(parse_shrouded_key_bag): Ditto.
(p12_build): Pass SHA1 for digest_algo.

* sm/t-minip12.c (run_one_test): Print failed values in verbose mode.

* tests/cms/samplekeys/nistp256-openssl-self-signed.p12: New.
* tests/cms/samplekeys/Description-p12: Add this one.
* tests/cms/Makefile.am (EXTRA_DIST): Ditto.
--

This supports the modern algorithms, i.e. using SHA256 for the KDF
which is the default in openssl unless the -legacy option is used.

GnuPG-bug-id: 6536
2023-10-06 11:02:19 +02:00
..
cms sm: Support more HMAC algos in the pkcs#12 parser. 2023-10-06 11:02:19 +02:00
extrasamples Added sample certificates. 2006-05-16 09:54:41 +00:00
fake-pinentries docs: Point to https://dev.gnupg.org/ . 2017-05-18 15:05:57 -04:00
gpgme tests: Fix tests/gpgme for in-source-tree builds. 2022-12-21 10:52:24 +09:00
gpgscm tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
migrations tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
openpgp tests: Fix missing test message. 2022-12-16 12:02:35 +01:00
pkits tests: More fix for semihosted environment. 2022-12-01 17:09:45 +09:00
tpm2dtests tests:tpm2dtests: Modify tests with SWTPM and relax the condition. 2023-10-06 09:56:09 +09:00
asschk.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
gpgconf.ctl.in tests: Restrict the use of gpgconf.ctl to make check. 2022-09-14 12:05:21 +02:00
Makefile.am tests: New way to make use of gpgconf.ctl in tests. 2021-10-12 14:30:13 +02:00
run-tests.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00