提交 563cd0f2 编写于 作者: R Richard Levitte

Make the tests of EVP operations without padding. As a consequence,

there's no need for a larger BUFSIZE any more...

PR: 904
上级 3ac0f288
...@@ -253,11 +253,7 @@ ...@@ -253,11 +253,7 @@
#endif #endif
#undef BUFSIZE #undef BUFSIZE
/* BUFSIZE needs to be one cipherblock larger than the largest number in the #define BUFSIZE ((long)1024*8+1)
lengths array (see below), to make space for padding when doing EVP tests.
1024 extra bytes may seem much, but hey, it doesn't hurt!
-- Richard Levitte */
#define BUFSIZE ((long)1024*9+1)
int run=0; int run=0;
static char ftime_used = 0, times_used = 0, gettimeofday_used = 0, getrusage_used = 0; static char ftime_used = 0, times_used = 0, gettimeofday_used = 0, getrusage_used = 0;
...@@ -1812,6 +1808,7 @@ int MAIN(int argc, char **argv) ...@@ -1812,6 +1808,7 @@ int MAIN(int argc, char **argv)
EVP_DecryptInit_ex(&ctx,evp_cipher,NULL,key16,iv); EVP_DecryptInit_ex(&ctx,evp_cipher,NULL,key16,iv);
else else
EVP_EncryptInit_ex(&ctx,evp_cipher,NULL,key16,iv); EVP_EncryptInit_ex(&ctx,evp_cipher,NULL,key16,iv);
EVP_CIPHER_CTX_set_padding(&ctx, 0);
Time_F(START); Time_F(START);
if(decrypt) if(decrypt)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册