diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_bf.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_bf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/e_bf.c b/src/lib/libcrypto/evp/e_bf.c index 745c4d3201..ab6dc4f7de 100644 --- a/src/lib/libcrypto/evp/e_bf.c +++ b/src/lib/libcrypto/evp/e_bf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_bf.c,v 1.10 2022/09/04 13:17:18 jsing Exp $ */ | 1 | /* $OpenBSD: e_bf.c,v 1.11 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 @@ bf_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in | |||
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 | BF_cfb64_encrypt(in, out, (long)((64 == 1) && !(ctx->flags & EVP_CIPH_FLAG_LENGTH_BITS) ? inl * 8 : inl), &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->num, ctx->encrypt); | 110 | BF_cfb64_encrypt(in, out, (long)inl, &((EVP_BF_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; |