diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_idea.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_idea.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/e_idea.c b/src/lib/libcrypto/evp/e_idea.c index 819f52ba23..c25f031871 100644 --- a/src/lib/libcrypto/evp/e_idea.c +++ b/src/lib/libcrypto/evp/e_idea.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_idea.c,v 1.13 2022/09/04 13:17:18 jsing Exp $ */ | 1 | /* $OpenBSD: e_idea.c,v 1.14 2022/09/04 13:55:39 jsing 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 | * |
@@ -155,14 +155,11 @@ idea_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char * | |||
155 | { | 155 | { |
156 | size_t chunk = EVP_MAXCHUNK; | 156 | size_t chunk = EVP_MAXCHUNK; |
157 | 157 | ||
158 | if (64 == 1) | ||
159 | chunk >>= 3; | ||
160 | |||
161 | if (inl < chunk) | 158 | if (inl < chunk) |
162 | chunk = inl; | 159 | chunk = inl; |
163 | 160 | ||
164 | while (inl && inl >= chunk) { | 161 | while (inl && inl >= chunk) { |
165 | idea_cfb64_encrypt(in, out, (long)((64 == 1) && !(ctx->flags & EVP_CIPH_FLAG_LENGTH_BITS) ? inl * 8 : inl), &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); | 162 | idea_cfb64_encrypt(in, out, (long)inl, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); |
166 | inl -= chunk; | 163 | inl -= chunk; |
167 | in += chunk; | 164 | in += chunk; |
168 | out += chunk; | 165 | out += chunk; |