aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorJ08nY2017-12-14 19:11:19 +0100
committerJ08nY2017-12-14 19:12:11 +0100
commit61028f63d360d932659987a8d91c060723ee1279 (patch)
tree8e1490a0201020e0e28eb8babb351a5957ed7dc8 /test/src
parentc252a59d6e49b3780519aaa493de663bf4e14bd2 (diff)
downloadecgen-61028f63d360d932659987a8d91c060723ee1279.tar.gz
ecgen-61028f63d360d932659987a8d91c060723ee1279.tar.zst
ecgen-61028f63d360d932659987a8d91c060723ee1279.zip
Diffstat (limited to 'test/src')
-rw-r--r--test/src/exhaustive/test_ansi.c3
-rw-r--r--test/src/exhaustive/test_brainpool.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/test/src/exhaustive/test_ansi.c b/test/src/exhaustive/test_ansi.c
index bbbe37a..6938bc1 100644
--- a/test/src/exhaustive/test_ansi.c
+++ b/test/src/exhaustive/test_ansi.c
@@ -153,7 +153,8 @@ ParameterizedTestParameters(ansi, test_ansi_seed_prime_examples) {
size_t nb_params = sizeof(params) / sizeof(struct prime_params);
return cr_make_param_array(struct prime_params, params, nb_params, NULL);
}
-ParameterizedTest(struct prime_params *param, ansi, test_ansi_seed_prime_examples) {
+ParameterizedTest(struct prime_params *param, ansi,
+ test_ansi_seed_prime_examples) {
cfg->bits = param->bits;
cfg->field = FIELD_PRIME;
cfg->seed = param->seed;
diff --git a/test/src/exhaustive/test_brainpool.c b/test/src/exhaustive/test_brainpool.c
index d71bbf7..fe3d90e 100644
--- a/test/src/exhaustive/test_brainpool.c
+++ b/test/src/exhaustive/test_brainpool.c
@@ -6,8 +6,8 @@
#include <criterion/criterion.h>
#include <criterion/parameterized.h>
#include "exhaustive/brainpool.h"
-#include "test/io.h"
#include "gen/seed.h"
+#include "test/io.h"
#include "util/bits.h"
#include "util/memory.h"
@@ -88,7 +88,8 @@ Test(brainpool, test_brainpool_equation) {
brainpool_gen_seed_argument(&curve, NULL, OFFSET_SEED);
- char *prime = "caa002c44829499e8239f049bddcaca373258a175fa337a82e0521744392cff1";
+ char *prime =
+ "caa002c44829499e8239f049bddcaca373258a175fa337a82e0521744392cff1";
bits_t *prime_bits = bits_from_hex(prime);
curve.field = bits_to_i(prime_bits);
bits_free(&prime_bits);