Warn if lines are truncated in algorithm test utilities.

Support for new test files: DRBG and CCM.
This commit is contained in:
Dr. Stephen Henson
2011-04-20 13:20:31 +00:00
parent daaf5088fd
commit 84c7a8f7dc
3 changed files with 52 additions and 5 deletions

View File

@@ -339,8 +339,8 @@ static void xtstest(FILE *in, FILE *out)
static void ccmtest(FILE *in, FILE *out)
{
char buf[2048];
char lbuf[2048];
char buf[200048];
char lbuf[200048];
char *keyword, *value;
long l;
unsigned char *Key = NULL, *Nonce = NULL;
@@ -376,6 +376,7 @@ static void ccmtest(FILE *in, FILE *out)
{
*p = 0;
strcpy(buf, p + 1);
strcat(buf, "\n");
decr = 1;
}
if (!strcmp(keyword,"Plen"))