0
我的代码:çOpenSSL的块大小
EVP_DecryptInit (&ctx, EVP_des_cbc(), key, iv);
if (EVP_DecryptUpdate (&ctx, outbuf, &olen, inbuff, in_length) != 1)
{
fprintf (stderr, "error in decrypt update\n");
return -1;
}
if (EVP_DecryptFinal (&ctx, outbuf + olen, &tlen) != 1)
{
fprintf (stderr, "error in decrypt final\n");
return -1;
}
olen += tlen;
如果我的SIZE = 10001,从10007到那么奥伦始终是10008.我认为这是B/C填充。但是,即使我的SIZE是10000,Olen仍然是10008.我在这里听不懂。由于10000%8 = 0,为什么我们需要再填充8个字节?同样,SIZE = 10008到10015,olen是10016.