openssl/crypto/evp
Matt Caswell 1a3701f4fe Sanity check EVP_CTRL_AEAD_TLS_AAD
The various implementations of EVP_CTRL_AEAD_TLS_AAD expect a buffer of at
least 13 bytes long. Add sanity checks to ensure that the length is at
least that. Also add a new constant (EVP_AEAD_TLS1_AAD_LEN) to evp.h to
represent this length. Thanks to Kevin Wojtysiak (Int3 Solutions) and
Paramjot Oberoi (Int3 Solutions) for reporting this issue.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit c826988109)

Conflicts:
	ssl/record/ssl3_record.c
2015-04-30 23:21:50 +01:00
..
.cvsignore
bio_b64.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bio_enc.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bio_md.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bio_ok.c Code style: space after 'if' 2015-04-16 13:50:01 -04:00
c_all.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
c_allc.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
c_alld.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
digest.c Fix EVP_DigestInit_ex with NULL digest 2015-03-12 09:29:48 +00:00
e_aes.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:21:50 +01:00
e_aes_cbc_hmac_sha1.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:21:50 +01:00
e_aes_cbc_hmac_sha256.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:21:50 +01:00
e_bf.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_camellia.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_cast.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_des.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_des3.c Code style: space after 'if' 2015-04-16 13:50:01 -04:00
e_dsa.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_idea.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_null.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_old.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_rc2.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_rc4.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_rc4_hmac_md5.c Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:21:50 +01:00
e_rc5.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_seed.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
e_xcbc_d.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
encode.c Code style: space after 'if' 2015-04-16 13:50:01 -04:00
evp.h Sanity check EVP_CTRL_AEAD_TLS_AAD 2015-04-30 23:21:50 +01:00
evp_acnf.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_cnf.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_enc.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_extra_test.c Fix evp_extra_test.c with no-ec 2015-02-26 23:34:54 +00:00
evp_key.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_locl.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_pbe.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_pkey.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evp_test.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
evptests.txt EVP support for wrapping algorithms. 2013-10-01 14:01:17 +01:00
m_dss.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_dss1.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_ecdsa.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_md2.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_md4.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_md5.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_mdc2.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_null.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_ripemd.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_sha.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_sha1.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_sigver.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
m_wp.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
Makefile Import evp_test.c from BoringSSL. Unfortunately we already have a file 2015-02-25 17:21:58 +00:00
names.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
openbsd_hw.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p5_crpt.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p5_crpt2.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_dec.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_enc.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_open.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_seal.c Fix RAND_(pseudo_)?_bytes returns 2015-03-25 12:41:28 +00:00
p_sign.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p_verify.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
pmeth_fn.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
pmeth_gn.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
pmeth_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00