summaryrefslogtreecommitdiff
path: root/crypto/evp/e_des3.c
diff options
context:
space:
mode:
authorPawel Kowalski <p.kowalski2@partner.samsung.com>2017-11-24 11:45:40 +0100
committerPawel Kowalski <p.kowalski2@partner.samsung.com>2017-11-24 11:54:29 +0100
commit53fdd1d886c8daf5e80d06a25ee87bf49b6b35ab (patch)
tree8b4068e30a33d61ab6a737ed54fec5e6e8d56cd3 /crypto/evp/e_des3.c
parent2a125e21ef6079bd6da6d1e1c763c6ed068ca3f8 (diff)
parent16a871c1cbcffb9c2ba93e253f496a3254354653 (diff)
downloadopenssl-tizen_4.0_tv.tar.gz
openssl-tizen_4.0_tv.tar.bz2
openssl-tizen_4.0_tv.zip
Upstream version 1.0.2m Change-Id: I0324687ff87ce098888b7b6918c2f8c2bb4a5e73
Diffstat (limited to 'crypto/evp/e_des3.c')
-rw-r--r--crypto/evp/e_des3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/e_des3.c b/crypto/evp/e_des3.c
index 0e910d6..ab8126e 100644
--- a/crypto/evp/e_des3.c
+++ b/crypto/evp/e_des3.c
@@ -212,6 +212,8 @@ static int des_ede3_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
size_t n;
unsigned char c[1], d[1];
+ if (!EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS))
+ inl *= 8;
for (n = 0; n < inl; ++n) {
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
DES_ede3_cfb_encrypt(c, d, 1, 1,