Fix output format for DSA2 parameter generation.
This commit is contained in:
parent
112726486d
commit
54bb3f68e1
@ -145,6 +145,7 @@ static void pqg(FILE *in, FILE *out)
|
||||
fputs(buf,out);
|
||||
continue;
|
||||
}
|
||||
if (strcmp(keyword, "Num") || pqg_type != PQG_PQ)
|
||||
fputs(buf,out);
|
||||
if(!strcmp(keyword,"[mod"))
|
||||
{
|
||||
@ -193,9 +194,12 @@ 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"))
|
||||
p=hex2bn(value);
|
||||
else if(!strcmp(keyword,"Q"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user