diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/evp/e_des3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/e_des3.c b/src/lib/libcrypto/evp/e_des3.c index 3cb95a8e22..0138839763 100644 --- a/src/lib/libcrypto/evp/e_des3.c +++ b/src/lib/libcrypto/evp/e_des3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des3.c,v 1.19 2015/10/12 06:05:52 guenther Exp $ */ | 1 | /* $OpenBSD: e_des3.c,v 1.20 2019/05/14 15:40:44 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -163,6 +163,8 @@ des_ede3_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | |||
| 163 | { | 163 | { |
| 164 | size_t n; | 164 | size_t n; |
| 165 | unsigned char c[1], d[1]; | 165 | unsigned char c[1], d[1]; |
| 166 | if (!(ctx->flags & EVP_CIPH_FLAG_LENGTH_BITS)) | ||
| 167 | inl *= 8; | ||
| 166 | 168 | ||
| 167 | for (n = 0; n < inl; ++n) { | 169 | for (n = 0; n < inl; ++n) { |
| 168 | c[0] = (in[n/8]&(1 << (7 - n % 8))) ? 0x80 : 0; | 170 | c[0] = (in[n/8]&(1 << (7 - n % 8))) ? 0x80 : 0; |
