diff options
author | jsing <> | 2022-09-04 13:55:39 +0000 |
---|---|---|
committer | jsing <> | 2022-09-04 13:55:39 +0000 |
commit | 0ace47e359750ce9915e94dedcd1129b9d8017fe (patch) | |
tree | 881ae30f3e56c6ffeeb1fbce08034e88eaf45857 /src/lib/libcrypto/evp/e_idea.c | |
parent | 3bfbb0618a4b8d094e6cb6604d01a69cf0f71c79 (diff) | |
download | openbsd-0ace47e359750ce9915e94dedcd1129b9d8017fe.tar.gz openbsd-0ace47e359750ce9915e94dedcd1129b9d8017fe.tar.bz2 openbsd-0ace47e359750ce9915e94dedcd1129b9d8017fe.zip |
Remove dead code.
Only change to generated assembly is due to line numbers.
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; |