Fix a crash in the speed command with wrap ciphers
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 13 Apr 2019 08:01:09 +0000 (10:01 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 23 May 2019 14:15:33 +0000 (16:15 +0200)
commit69fd7d17c08559eec248389b052b49f2cb8b0c3b
tree885535fac944970d9e81399f1b3cfcaffa0ecc5b
parent9fc194321e2037c403f52242ca6e1c2beff7a009
Fix a crash in the speed command with wrap ciphers

e.g. openssl speed -evp id-aes256-wrap-pad
was crashing because the return code from EVP_CipherInit_ex
was ignored.
Not going to allow that cipher mode because wrap ciphers
produces more bytes output than the input length
and EVP_Update_loop is not really prepared for that.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8739)

(cherry picked from commit 5d238a1032fee0e4759c2ed7fbd09cb9d7125a72)
apps/speed.c