summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-07-08 19:20:48 +0000
committerAndy Polyakov <appro@openssl.org>2007-07-08 19:20:48 +0000
commite881c00515d36ec85127990d910643e8cf8e72d2 (patch)
treec312ec5d7c5d46a47c842b10a7f7cbe913bdaafc
parent6c3fca2b10ac52bbc296be6c919599c7ef92a712 (diff)
EVP_*_cfb1 was broken [from HEAD].
PR: 1318
-rw-r--r--crypto/evp/evp_locl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h
index f5b71eed79..6f6ce16c9e 100644
--- a/crypto/evp/evp_locl.h
+++ b/crypto/evp/evp_locl.h
@@ -92,7 +92,7 @@ static int cname##_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const uns
#define BLOCK_CIPHER_func_cfb(cname, cprefix, cbits, kstruct, ksched) \
static int cname##_cfb##cbits##_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) \
{\
- cprefix##_cfb##cbits##_encrypt(in, out, (long)inl, &((kstruct *)ctx->cipher_data)->ksched, ctx->iv, &ctx->num, ctx->encrypt);\
+ cprefix##_cfb##cbits##_encrypt(in, out, (long)(cbits==1?inl*8:inl), &((kstruct *)ctx->cipher_data)->ksched, ctx->iv, &ctx->num, ctx->encrypt);\
return 1;\
}