Fix output format for DSA2 parameter generation.

This commit is contained in:
Dr. Stephen Henson 2011-09-28 22:35:30 +00:00
parent 112726486d
commit 54bb3f68e1

View File

@ -145,7 +145,8 @@ static void pqg(FILE *in, FILE *out)
fputs(buf,out);
continue;
}
fputs(buf,out);
if (strcmp(keyword, "Num") || pqg_type != PQG_PQ)
fputs(buf,out);
if(!strcmp(keyword,"[mod"))
{
if (!parse_mod(value, &dsa2, &L, &N, &md))
@ -193,7 +194,10 @@ static void pqg(FILE *in, FILE *out)
fprintf(out, "H = %lx\n\n",h);
}
else
{
fprintf(out, "counter = %d\n",counter);
fputs("\n", out);
}
}
}
else if(!strcmp(keyword,"P"))