Move key/IV length checks closer to usage sites.
authorjsing <jsing@openbsd.org>
Tue, 2 Mar 2021 17:18:59 +0000 (17:18 +0000)
committerjsing <jsing@openbsd.org>
Tue, 2 Mar 2021 17:18:59 +0000 (17:18 +0000)
commitffd1a0d404ae74aaffe200ca45d84518538539f1
treed5381d11fc12a2e982370d568a3345eb37fe634d
parent825592b0fae349cdfc3cce0e089bbfc01c0c32e8
Move key/IV length checks closer to usage sites.

Also add explicit checks against EVP_CIPHER_iv_length() and
EVP_CIPHER_key_length().

Requested by tb@ during review.

ok tb@
lib/libssl/tls12_record_layer.c