diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-09-28 22:35:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-09-28 22:35:30 +0000 |
commit | 54bb3f68e15dc7a9739df5a0d1ab70a446f94c95 (patch) | |
tree | d0900a2a76ee3a0eb9e635f7c8222dc274241452 /fips | |
parent | 112726486dede31f348733f351b5da852170fb18 (diff) |
Fix output format for DSA2 parameter generation.
Diffstat (limited to 'fips')
-rw-r--r-- | fips/dsa/fips_dssvs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fips/dsa/fips_dssvs.c b/fips/dsa/fips_dssvs.c index 3362a33e6c..3feb0ffe7c 100644 --- a/fips/dsa/fips_dssvs.c +++ b/fips/dsa/fips_dssvs.c @@ -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")) |