summaryrefslogtreecommitdiffstats
path: root/crypto/evp/bio_enc.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-04-28 00:21:29 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-04-28 00:21:29 +0000
commita93b01be5735f26dd064160d3b132e1e27a4996e (patch)
tree3d621fff29d8696e2d592729dbb3716958a9e1b2 /crypto/evp/bio_enc.c
parent04b304d346bea1ecaa629c43632b45911d34be87 (diff)
Increase offset for BIO_f_enc() to avoid problems with overlapping buffers
when decrypting data.
Diffstat (limited to 'crypto/evp/bio_enc.c')
-rw-r--r--crypto/evp/bio_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c
index 183836c85c..f6ac94c6e1 100644
--- a/crypto/evp/bio_enc.c
+++ b/crypto/evp/bio_enc.c
@@ -71,7 +71,7 @@ static int enc_new(BIO *h);
static int enc_free(BIO *data);
static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps);
#define ENC_BLOCK_SIZE (1024*4)
-#define BUF_OFFSET EVP_MAX_BLOCK_LENGTH
+#define BUF_OFFSET (EVP_MAX_BLOCK_LENGTH*2)
typedef struct enc_struct
{