diff options
| author | jsing <> | 2022-09-04 13:55:39 +0000 |
|---|---|---|
| committer | jsing <> | 2022-09-04 13:55:39 +0000 |
| commit | afccb5e2841d2ce1fd4c50eb9e9912ec24e8a941 (patch) | |
| tree | 881ae30f3e56c6ffeeb1fbce08034e88eaf45857 /src/lib/libcrypto/evp/e_idea.c | |
| parent | ca8bd8b72f15da47959c6f41e42ac24c246b5130 (diff) | |
| download | openbsd-afccb5e2841d2ce1fd4c50eb9e9912ec24e8a941.tar.gz openbsd-afccb5e2841d2ce1fd4c50eb9e9912ec24e8a941.tar.bz2 openbsd-afccb5e2841d2ce1fd4c50eb9e9912ec24e8a941.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; |
