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:43:27 +0000 (13:43 +0000)
commit1d2a18ec34fb9f2fbdaa1a28e89f1eff1654a45f
tree00cbf963b9728fcf2e4fe9ea46f00d4116a25454
parent263390c32cd4f6baefd41346407eee51c1fd3fa2
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)
(cherry picked from commit 64846096b18340b9a39ddd29a7a0e23c56f22959)
crypto/evp/evp_enc.c