* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
*
* -->
*
*/
#include "blowfish.h"
+
+#include <cfg/debug.h>
+#include <cfg/test.h>
+
#include <cpu/byteorder.h>
+#include <string.h>
/*
* Author : Randy L. Milbert
int blowfish_testRun(void)
{
+ // NOTE: we use a static variable here to avoid stack overflows due to the huge
+ // context structure of blowfish.
static BlowfishContext ctx;
blowfish_init(&ctx);
- BlockCipher *c = &ctx.c; //blowfish_stackinit();
+ BlockCipher *c = &ctx.c;
for (int i=0; i<NUM_VARIABLE_KEY_TESTS; ++i)
{