aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2017-09-19 12:22:01 +0200
committerJ08nY2017-09-19 12:22:01 +0200
commit0a3aea134eea8aaa819548c4ad8c7c653830f5b4 (patch)
tree9df83152efb8f64e447a94f0c75f7f3d8d5484a0 /src
parent04af058bf659b3871916f4535bff6932b1741fab (diff)
downloadecgen-0a3aea134eea8aaa819548c4ad8c7c653830f5b4.tar.gz
ecgen-0a3aea134eea8aaa819548c4ad8c7c653830f5b4.tar.zst
ecgen-0a3aea134eea8aaa819548c4ad8c7c653830f5b4.zip
Diffstat (limited to 'src')
-rw-r--r--src/exhaustive/exhaustive.c1
-rw-r--r--src/util/bits.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c
index 4638827..c15172a 100644
--- a/src/exhaustive/exhaustive.c
+++ b/src/exhaustive/exhaustive.c
@@ -30,6 +30,7 @@ static void exhaustive_ginit(gen_t *generators, const config_t *cfg) {
generators[OFFSET_A] = &gen_skip;
generators[OFFSET_B] = &ansi_gen_equation;
generators[OFFSET_CURVE] = &curve_gen_nonzero;
+ generators[OFFSET_ORDER] = &order_gen_any;
} else {
// setup normal generators
generators[OFFSET_SEED] = &gen_skip;
diff --git a/src/util/bits.c b/src/util/bits.c
index 1573308..55d5bf3 100644
--- a/src/util/bits.c
+++ b/src/util/bits.c
@@ -404,7 +404,7 @@ bits_t *bits_shorten(const bits_t *bits, long amount) {
}
void bits_sha1(const bits_t *bits, unsigned char hashout[20]) {
- SHA_CTX ctx = {};
+ SHA_CTX ctx = {0};
SHA1_Init(&ctx);
SHA1_Update(&ctx, bits->bits, (int)BYTE_LEN(bits->bitlen));
SHA1_Final(hashout, &ctx);