projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c1735
)
Make sure that the buffers are large enough to contain padding.
author
Richard Levitte
<levitte@openssl.org>
Mon, 28 Jun 2004 12:23:35 +0000
(12:23 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 28 Jun 2004 12:23:35 +0000
(12:23 +0000)
PR: 904
apps/speed.c
patch
|
blob
|
history
diff --git
a/apps/speed.c
b/apps/speed.c
index 4c1f07cb8118f2e3dcc3bb07b36dd7380e70fffa..c398009be5550d26708e46bc82a7ec6e5947d3a7 100644
(file)
--- a/
apps/speed.c
+++ b/
apps/speed.c
@@
-253,7
+253,11
@@
#endif
#undef BUFSIZE
-#define BUFSIZE ((long)1024*8+1)
+/* 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)
int run=0;
static char ftime_used = 0, times_used = 0, gettimeofday_used = 0, getrusage_used = 0;