1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-19 14:41:41 +02:00
gnupg/tests/cms
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
..
samplekeys sm: Support more HMAC algos in the pkcs#12 parser. 2023-10-06 11:02:19 +02:00
samplemsgs common: Allow for GCM decryption in de-vs mode. 2021-06-02 19:14:37 +02:00
32100C27173EF6E9C4E9A25D3D69F86D37A4F939 tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
567064FE6D14A17B2D811ABB407728BC558AA455 tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
all-tests.scm tests: Fix tests under cms. 2022-12-01 10:33:20 +09:00
cert_cci_sphinx_ca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_test_wzs.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_test_zs.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user02.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user03.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user04.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user06.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_cci_user07.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_dfn_pca01.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_dfn_pca15.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_g10code_test1.der tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
cert_testpki_testpca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
crl_testpki_testpca.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
decrypt.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
encrypt.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
export.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
gpgsm-defs.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
import.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
inittests tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
key_g10code_pete1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
key_g10code_theo1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
Makefile.am sm: Support more HMAC algos in the pkcs#12 parser. 2023-10-06 11:02:19 +02:00
plain-1.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-2.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-3.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
plain-large.cms.asc tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
run-tests.scm tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
runtest tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
setup.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
shell.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sign.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
skey_g10code_test1.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sm-sign+verify tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
sm-verify tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.dsig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig-bad.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig-badusage.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.osig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-1.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.osig-bad.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.osig.pem tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-2.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
text-3.txt tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00
verify.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00