From 5307f9318a01ed29a11202ad0915efae9dec44d0 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 17 Oct 2017 00:16:37 +0200 Subject: Add several check_fs for standard security requirements. - Check for trace one(anomalous) curve, check for multiplicative transfer(embedding degree), factors of generator order and cm discriminant. --- test/src/gen/test_field.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'test/src/gen/test_field.c') diff --git a/test/src/gen/test_field.c b/test/src/gen/test_field.c index fb1f1e3..81bd1ca 100644 --- a/test/src/gen/test_field.c +++ b/test/src/gen/test_field.c @@ -6,23 +6,9 @@ #include "gen/field.h" #include "math/poly.h" #include "misc/types.h" -#include "test/default.h" -#include "test/input.h" -#include "test/output.h" - -void field_setup() { - default_setup(); - input_setup(); - output_setup(); -} - -void field_teardown() { - default_teardown(); - input_teardown(); - output_teardown(); -} +#include "test/io.h" -TestSuite(field, .init = field_setup, .fini = field_teardown); +TestSuite(field, .init = io_setup, .fini = io_teardown); Test(field, test_field_gen_random_fp) { curve_t curve = {0}; -- cgit v1.2.3-70-g09d2