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:12:27 +0000 (16:12 +0200)
commit5d238a1032fee0e4759c2ed7fbd09cb9d7125a72
treee21a55889bfc6474060b9027414a59505d4aeb40
parentb1eb3fd732adc9afaae730426f48bbfec17694d1
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)
apps/speed.c