Ensure that rc5 doesn't try to use a key longer than 2040 bits
authorMatt Caswell <matt@openssl.org>
Fri, 26 Apr 2019 11:11:13 +0000 (12:11 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 1 Jul 2019 09:23:54 +0000 (10:23 +0100)
commit26675d1cf407fb7ba248c04767eccda56b06263f
tree12b331ae0098987b96614b3867763527ac7d3108
parent25ccb5896bbf28b74d4d72010948b0ac7d141622
Ensure that rc5 doesn't try to use a key longer than 2040 bits

The maximum key length for rc5 is 2040 bits so we should not attempt to
use keys longer than this.

Issue found by OSS-Fuzz and Guido Vranken.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8834)

(cherry picked from commit 792cb4ee8d82e4b063f707fc9f4992271ffd65ab)
crypto/err/openssl.txt
crypto/evp/e_rc5.c
crypto/evp/evp_err.c
doc/man3/EVP_rc5_32_12_16_cbc.pod
include/openssl/evperr.h