boringssl/include/openssl
David Benjamin 4a8c05ffe8 Check key sizes in AES_set_*_key.
AES_set_*_key used to call directly into aes_nohw_set_*_key which
gracefully handles some NULL parameters and invalid bit sizes. However,
we now enable optimized assembly implementations, not all of which
perform these checks. (vpaes does not.)

This is fine for the internal assembly functions themselves. Such checks
are better written in C than assembly, and the calling C code usually
already knows the key size. (Indeed aes_ctr_set_key already assumes the
assembly functions are infallible.) AES_set_*_key are public APIs,
however. The NULL check is silly, but we should handle length-like
checks in public APIs.

Change-Id: I259ae6b9811ceaa9dc5bd7173d5754ca7079cff8
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/35564
Reviewed-by: Adam Langley <agl@google.com>
2019-04-11 15:33:57 +00:00
..
aead.h Flatten EVP_AEAD_CTX 2018-10-22 23:12:57 +00:00
aes.h Check key sizes in AES_set_*_key. 2019-04-11 15:33:57 +00:00
arm_arch.h
asn1_mac.h
asn1.h Remove d2i_ASN1_UINTEGER. 2019-03-18 17:18:26 +00:00
asn1t.h
base64.h
base.h Add an interface for QUIC integration. 2018-10-31 20:38:10 +00:00
bio.h Fix d2i_*_bio on partial reads. 2018-12-05 22:05:28 +00:00
blowfish.h Fix some size_t to long casts. 2019-01-03 21:46:45 +00:00
bn.h Add some Node compatibility functions. 2019-01-25 16:50:30 +00:00
buf.h
buffer.h
bytestring.h Handle CBB_cleanup on child CBBs more gracefully. 2019-04-10 22:12:42 +00:00
cast.h Fix some size_t to long casts. 2019-01-03 21:46:45 +00:00
chacha.h Add chacha.h to the list of documented headers. 2017-10-12 15:27:34 +00:00
cipher.h Add EVP_CIPHER support for Blowfish and CAST to decrepit. 2019-01-03 21:34:46 +00:00
cmac.h
conf.h Undo recent changes to |X509V3_EXT_conf_nid|. 2018-10-17 21:05:45 +00:00
cpu.h Add test of assembly code dispatch. 2019-01-22 20:22:53 +00:00
crypto.h
curve25519.h
des.h
dh.h
digest.h
dsa.h Add missing bssl::UpRef overloads. 2018-09-14 16:45:54 +00:00
dtls1.h
e_os2.h
ec_key.h Add EC_KEY_key2buf for OpenSSL compatibility 2019-01-03 16:32:21 +00:00
ec.h Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
ecdh.h
ecdsa.h
engine.h
err.h
evp.h Add a very roundabout EC keygen API. 2019-01-25 23:08:12 +00:00
ex_data.h
hkdf.h
hmac.h Support symbol prefixes 2018-09-06 20:07:52 +00:00
hrss.h HRSS: flatten sample distribution. 2019-01-22 22:06:43 +00:00
is_boringssl.h
lhash.h Clear out a bunch of -Wextra-semi warnings. 2019-02-21 19:12:39 +00:00
md4.h Rename 'md' output parameter to 'out' and add bounds. 2019-04-08 18:19:01 +00:00
md5.h Rename 'md' output parameter to 'out' and add bounds. 2019-04-08 18:19:01 +00:00
mem.h silence unused variable warnings when using OPENSSL_clear_free 2019-03-04 19:55:29 +00:00
nid.h Add initial HRSS support. 2018-12-12 17:35:02 +00:00
obj_mac.h
obj.h
objects.h
opensslconf.h
opensslv.h
ossl_typ.h
pem.h Fix undefined function pointer casts in IMPLEMENT_PEM_*. 2018-10-01 17:34:44 +00:00
pkcs7.h
pkcs8.h
pkcs12.h
poly1305.h
pool.h
rand.h Remove pooling of PRNG state. 2019-01-03 20:19:44 +00:00
rc4.h
ripemd.h Rename 'md' output parameter to 'out' and add bounds. 2019-04-08 18:19:01 +00:00
rsa.h Mark the |e| argument to |RSA_generate_key_ex| as const. 2018-11-14 15:57:25 +00:00
safestack.h
sha.h Rename 'md' output parameter to 'out' and add bounds. 2019-04-08 18:19:01 +00:00
span.h Remove stray semicolons. 2019-02-07 17:36:54 +00:00
srtp.h
ssl3.h Modernize OPENSSL_COMPILE_ASSERT, part 2. 2018-11-14 16:06:37 +00:00
ssl.h Support get versions with get_{min,max}_proto_version for context 2019-03-27 12:46:26 +00:00
stack.h Clear out a bunch of -Wextra-semi warnings. 2019-02-21 19:12:39 +00:00
thread.h Rename OPENSSL_NO_THREADS, part 1. 2018-09-26 19:10:02 +00:00
tls1.h Implement server support for delegated credentials. 2019-01-24 20:06:58 +00:00
type_check.h Modernize OPENSSL_COMPILE_ASSERT, part 2. 2018-11-14 16:06:37 +00:00
x509_vfy.h
x509.h
x509v3.h Unexport and rename hex_to_string, string_to_hex, and name_cmp. 2018-11-27 00:08:39 +00:00