diff options
author | Richard Levitte <levitte@openssl.org> | 2004-06-28 18:32:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-06-28 18:32:12 +0200 |
commit | 563cd0f2b0d666304032aa8882c73ff70002a990 (patch) | |
tree | cdf308264bc3fa474dccee54394eda1d5daaf5f8 /apps | |
parent | Make sure that the buffers are large enough to contain padding. (diff) | |
download | openssl-563cd0f2b0d666304032aa8882c73ff70002a990.tar.xz openssl-563cd0f2b0d666304032aa8882c73ff70002a990.zip |
Make the tests of EVP operations without padding. As a consequence,
there's no need for a larger BUFSIZE any more...
PR: 904
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/speed.c b/apps/speed.c index c398009be5..a3b0833b69 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -253,11 +253,7 @@ #endif #undef BUFSIZE -/* BUFSIZE needs to be one cipherblock larger than the largest number in the - 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) +#define BUFSIZE ((long)1024*8+1) int run=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) EVP_DecryptInit_ex(&ctx,evp_cipher,NULL,key16,iv); else EVP_EncryptInit_ex(&ctx,evp_cipher,NULL,key16,iv); + EVP_CIPHER_CTX_set_padding(&ctx, 0); Time_F(START); if(decrypt) |