提交 a93b01be 编写于 作者: D Dr. Stephen Henson

Increase offset for BIO_f_enc() to avoid problems with overlapping buffers

when decrypting data.
上级 04b304d3
......@@ -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
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册