Make sure that the buffers are large enough to contain padding.
authorRichard Levitte <levitte@openssl.org>
Mon, 28 Jun 2004 12:23:37 +0000 (12:23 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 28 Jun 2004 12:23:37 +0000 (12:23 +0000)
PR: 904

apps/speed.c

index 6ae0c8d6ebf77953c57a2714fdda9b4d81a4fffe..785bbd10d232b8b438f9c18102705d83007025f8 100644 (file)
 #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 double Time_F(int s, int usertime);