diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2022-09-04 13:55:40 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2022-09-04 13:55:40 +0000 |
commit | 09d33736d90e0f9490553346b453706250407e35 (patch) | |
tree | 9856e75ef9fadab0bcd4721ef7dc5db313dbb329 /lib/libcrypto/evp/e_idea.c | |
parent | e687ebe46dfbfbada266cf72c2a21b1b35462f96 (diff) |
Remove dead code.
Only change to generated assembly is due to line numbers.
Diffstat (limited to 'lib/libcrypto/evp/e_idea.c')
-rw-r--r-- | lib/libcrypto/evp/e_idea.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libcrypto/evp/e_idea.c b/lib/libcrypto/evp/e_idea.c index 819f52ba23d..c25f0318715 100644 --- a/lib/libcrypto/evp/e_idea.c +++ b/lib/libcrypto/evp/e_idea.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_idea.c,v 1.13 2022/09/04 13:17:18 jsing Exp $ */ +/* $OpenBSD: e_idea.c,v 1.14 2022/09/04 13:55:39 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -155,14 +155,11 @@ idea_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char * { size_t chunk = EVP_MAXCHUNK; - if (64 == 1) - chunk >>= 3; - if (inl < chunk) chunk = inl; while (inl && inl >= chunk) { - 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); + idea_cfb64_encrypt(in, out, (long)inl, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); inl -= chunk; in += chunk; out += chunk; |