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_cast.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_cast.c')
| -rw-r--r-- | src/lib/libcrypto/evp/e_cast.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/e_cast.c b/src/lib/libcrypto/evp/e_cast.c index 32f86d86af..d6f1b1d1a0 100644 --- a/src/lib/libcrypto/evp/e_cast.c +++ b/src/lib/libcrypto/evp/e_cast.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_cast.c,v 1.9 2022/09/04 13:17:18 jsing Exp $ */ | 1 | /* $OpenBSD: e_cast.c,v 1.10 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 | * |
| @@ -103,14 +103,11 @@ cast5_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char | |||
| 103 | { | 103 | { |
| 104 | size_t chunk = EVP_MAXCHUNK; | 104 | size_t chunk = EVP_MAXCHUNK; |
| 105 | 105 | ||
| 106 | if (64 == 1) | ||
| 107 | chunk >>= 3; | ||
| 108 | |||
| 109 | if (inl < chunk) | 106 | if (inl < chunk) |
| 110 | chunk = inl; | 107 | chunk = inl; |
| 111 | 108 | ||
| 112 | while (inl && inl >= chunk) { | 109 | while (inl && inl >= chunk) { |
| 113 | CAST_cfb64_encrypt(in, out, (long)((64 == 1) && !(ctx->flags & EVP_CIPH_FLAG_LENGTH_BITS) ? inl * 8 : inl), &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); | 110 | CAST_cfb64_encrypt(in, out, (long)inl, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); |
| 114 | inl -= chunk; | 111 | inl -= chunk; |
| 115 | in += chunk; | 112 | in += chunk; |
| 116 | out += chunk; | 113 | out += chunk; |
