openssl/test/recipes
Tobias Nießen 67c81ec311 Allow specifying the tag after AAD in CCM mode
This change allows to pass the authentication tag after specifying
the AAD in CCM mode. This is already true for the other two supported
AEAD modes (GCM and OCB) and it seems appropriate to match the
behavior.

GCM and OCB also support to set the tag at any point before the call
to `EVP_*Final`, but this won't work for CCM due to a restriction
imposed by section 2.6 of RFC3610: The tag must be set before
actually decrypting data.

This commit also adds a test case for setting the tag after supplying
plaintext length and AAD.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7243)
2019-05-08 10:57:59 +01:00
..
04-test_pem_data
10-test_bn_data Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_ecparam_data
15-test_mp_rsa_data
30-test_evp_data Allow specifying the tag after AAD in CCM mode 2019-05-08 10:57:59 +01:00
80-test_ocsp_data
90-test_gost_data Add a GOST test 2018-07-13 18:14:43 +01:00
90-test_includes_data Allow the syntax of the .include directive to optionally have '=' 2019-02-11 15:24:12 +01:00
90-test_sslapi_data Add a test for SRP 2018-04-13 09:37:39 +01:00
90-test_store_data
95-test_external_krb5_data Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
95-test_external_pyca_data Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
01-test_abort.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
01-test_sanity.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
01-test_symbol_presence.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
01-test_test.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
02-test_errstr.t Disable 02-test_errstr.t on msys/mingw as well as MSWin32 2019-02-26 10:38:51 +00:00
02-test_internal_context.t Add an OpenSSL library context 2019-02-16 00:29:42 +01:00
02-test_internal_ctype.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
02-test_internal_provider.t Add test for the provider configuration module 2019-04-03 11:42:48 +02:00
02-test_lhash.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
02-test_ordinals.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
02-test_sparse_array.t Add sparse array data type. 2019-02-12 21:07:29 +10:00
02-test_stack.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_exdata.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_asn1.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_bn.t FIPS 186-4 RSA Generation & Validation 2019-03-12 12:00:52 +00:00
03-test_internal_chacha.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_curve448.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_ec.t [test] unit test for field_inv function pointer in EC_METHOD 2019-02-17 21:02:36 +02:00
03-test_internal_mdc2.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_modes.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_poly1305.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_rsa_sp800_56b.t FIPS 186-4 RSA Generation & Validation 2019-03-12 12:00:52 +00:00
03-test_internal_siphash.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_sm2.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_sm4.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_ssl_cert_table.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_internal_x509.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
03-test_params_api.t OSSL_PARAM helper functions. 2019-03-12 19:12:12 +01:00
03-test_property.t Properties for implementation selection. 2019-02-18 13:28:14 +10:00
03-test_ui.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_asn1_decode.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_asn1_encode.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_asn1_string_table.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_bio_callback.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_bioprint.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_err.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_params.t test/params_test.c: Add "real world" parameter testing 2019-03-13 11:32:17 +01:00
04-test_pem.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
04-test_provider.t Add provider tests 2019-03-11 20:40:13 +01:00
05-test_bf.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_cast.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_des.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_hmac.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_idea.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_md2.t Add a legacy provider and put MD2 in it 2019-04-09 10:24:43 +01:00
05-test_mdc2.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_rand.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_rc2.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_rc4.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
05-test_rc5.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
06-test-rdrand.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
10-test_bn.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
10-test_exp.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_dh.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_dsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_ec.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_ecdsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_ecparam.t added code to validate EC named curve parameters 2019-04-11 12:05:38 +03:00
15-test_genrsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_mp_rsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_out_option.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_rsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
15-test_rsapss.t Test: use keywords instead of magic numbers for 'rsa_pss_saltlen' 2019-05-02 23:01:42 +02:00
20-test_enc_more.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
20-test_enc.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
20-test_kdf.t Change the digest string from "md" to "digest" 2019-05-03 23:47:43 +02:00
20-test_mac.t Fix various no-* options 2019-03-13 09:59:11 +00:00
20-test_passwd.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
20-test_pkeyutl.t Add test cases for SM2 cert verification 2019-03-30 08:31:25 +09:00
25-test_crl.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
25-test_d2i.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
25-test_pkcs7.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
25-test_req.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
25-test_sid.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
25-test_verify.t Skip the correct number of tests if SM2 is disabled 2019-04-04 16:51:51 +01:00
25-test_x509.t Fix no-ec 2019-03-27 10:09:04 +00:00
30-test_aesgcm.t FIPS AES_GCM IV gen changes 2019-03-07 07:30:04 +10:00
30-test_afalg.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
30-test_engine.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
30-test_evp_extra.t Test that we can use the FIPS provider 2019-04-04 23:09:47 +01:00
30-test_evp_kdf.t Added new EVP/KDF API. 2019-02-13 12:11:49 +01:00
30-test_evp.t Added new EVP/KDF API. 2019-02-13 12:11:49 +01:00
30-test_pbelu.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
30-test_pkey_meth_kdf.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
30-test_pkey_meth.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
40-test_rehash.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
60-test_x509_check_cert_pkey.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
60-test_x509_dup_cert.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
60-test_x509_store.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
60-test_x509_time.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_asyncio.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_bad_dtls.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_clienthello.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_comp.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_key_share.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_packet.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_recordlen.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_renegotiation.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_servername.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslcbcpadding.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslcertstatus.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslextension.t Add a test for correct handling of the cryptopro bug extension 2019-01-07 09:39:10 +00:00
70-test_sslmessages.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslrecords.t Add a test for interleaving app data with handshake data in TLSv1.3 2019-02-19 09:32:41 +00:00
70-test_sslsessiontick.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslsigalgs.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslsignature.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslskewith0p.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslversions.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_sslvertol.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13alerts.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13cookie.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13downgrade.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13hrr.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13kexmodes.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13messages.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tls13psk.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_tlsextms.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_verify_extra.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
70-test_wpacket.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ca.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_cipherbytes.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_cipherlist.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ciphername.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_cms.t Test: use keywords instead of magic numbers for 'rsa_pss_saltlen' 2019-05-02 23:01:42 +02:00
80-test_cmsapi.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ct.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_dane.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_dtls_mtu.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_dtls.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_dtlsv1listen.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ocsp.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_pkcs12.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ssl_new.t Add option to disable Extended Master Secret 2019-02-15 10:11:18 +00:00
80-test_ssl_old.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_ssl_test_ctx.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_sslcorrupt.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_tsa.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
80-test_x509aux.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_asn1_time.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_async.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_bio_enc.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_bio_memleak.t Fix a memory leak in the mem bio 2019-01-21 17:47:02 +10:00
90-test_constant_time.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_fatalerr.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_gmdiff.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_gost.t Fix no-cmac 2019-01-06 09:58:01 +00:00
90-test_ige.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_includes.t Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
90-test_memleak.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_overhead.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_secmem.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_shlibload.t Fix no-dso builds 2019-01-30 15:26:48 +00:00
90-test_srp.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_sslapi.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_sslbuffers.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_store.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_sysdefault.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_threads.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_time_offset.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_tls13ccs.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_tls13encryption.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_tls13secrets.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
90-test_v3name.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
95-test_external_boringssl.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
95-test_external_krb5.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
95-test_external_pyca.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
99-test_ecstress.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
99-test_fuzz.t Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
ocsp-response.der
tconversion.pl Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00