projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1127264
)
Fix output format for DSA2 parameter generation.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 28 Sep 2011 22:35:30 +0000
(22:35 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 28 Sep 2011 22:35:30 +0000
(22:35 +0000)
fips/dsa/fips_dssvs.c
patch
|
blob
|
history
diff --git
a/fips/dsa/fips_dssvs.c
b/fips/dsa/fips_dssvs.c
index 3362a33e6cb747f5a146ee81340b459c08de228f..3feb0ffe7c96142b1a035fa03a05805bbeafffa8 100644
(file)
--- 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"))