Restore EVP_CIPH_FLAG_LENGTH_BITS working properly
authorLukasz Pawelczyk <havner@gmail.com>
Thu, 17 Nov 2016 09:31:39 +0000 (10:31 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 10 Feb 2017 13:36:56 +0000 (13:36 +0000)
commit64846096b18340b9a39ddd29a7a0e23c56f22959
treeb3727865acb591bf65d1ae64431b9299d1b18148
parent222c3da35cc508446df150a16080943019ba6f54
Restore EVP_CIPH_FLAG_LENGTH_BITS working properly

EVP_CIPH_FLAG_LENGTH_BITS flag for CFB1 has been broken with the
introduction of the is_partially_overlapping() check that did not take
it into the account (treating number of bits passed as bytes). This
remedies that and allows this flag to work as intended.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1942)
crypto/evp/evp_enc.c