aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_locl.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-07-08 19:14:02 +0000
committerAndy Polyakov <appro@openssl.org>2007-07-08 19:14:02 +0000
commit71f4ea44eb2880b8a84e683dbf62708e512febf4 (patch)
tree3b9b593905d2659078262e6fc96d580a24c9ea2b /crypto/evp/evp_locl.h
parent35295bdbeed634ebe811860831f25bc5ecc9d0bb (diff)
downloadopenssl-71f4ea44eb2880b8a84e683dbf62708e512febf4.tar.gz
EVP_*_cfb1 was broken.
PR: 1318
Diffstat (limited to 'crypto/evp/evp_locl.h')
-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 26e11a3404..0ce0124908 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;\
}