RT2943: Check sizes if -iv and -K arguments
authorRichard Levitte <levitte@openssl.org>
Mon, 4 May 2015 15:34:40 +0000 (17:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 4 May 2015 18:15:54 +0000 (20:15 +0200)
commit8920a7cd04f43b1a090d0b0a8c9e16b94c6898d4
tree25dffff91eada3c838c2724e56aa0b451db0db21
parentb256f717f8ea001a03538044d4b0d259cb38d278
RT2943: Check sizes if -iv and -K arguments

RT2943 only complains about the incorrect check of -K argument size,
we might as well do the same thing with the -iv argument.

Before this, we only checked that the given argument wouldn't give a
bitstring larger than EVP_MAX_KEY_LENGTH.  we can be more precise and
check against the size of the actual cipher used.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/enc.c