diff options
| author | J08nY | 2018-04-09 20:48:04 +0200 |
|---|---|---|
| committer | J08nY | 2018-04-09 20:48:04 +0200 |
| commit | 376ff06154b6364c5983a3f67244c8f2d822a282 (patch) | |
| tree | 2d06864c731abeefe1bc0e8a2d5d0f68b232be92 /test/src/cm/test_custom.c | |
| parent | 4662f2e2977e400925b3816d32782d88ccb39504 (diff) | |
| download | ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.gz ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.tar.zst ecgen-376ff06154b6364c5983a3f67244c8f2d822a282.zip | |
Diffstat (limited to 'test/src/cm/test_custom.c')
| -rw-r--r-- | test/src/cm/test_custom.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/src/cm/test_custom.c b/test/src/cm/test_custom.c index c94657d..df1ada8 100644 --- a/test/src/cm/test_custom.c +++ b/test/src/cm/test_custom.c @@ -30,11 +30,18 @@ Test(custom, test_curve_one) { cfg->bits = 128; cfg->cm_order = "263473633827487324648193013259296339349"; GEN order = strtoi(cfg->cm_order); - cfg->random = RANDOM_ALL; curve_t *curve = custom_curve(); cr_assert_not_null(curve, ); cr_assert(equalii(curve->order, order), ); cr_assert(equalii(ellcard(curve->curve, NULL), order), ); curve_free(&curve); +} + +Test(custom, test_curve_other) { + cfg->bits = 32; + cfg->cm_order = "2147483723"; + + curve_t *curve = custom_curve(); + cr_assert_null(curve, ); }
\ No newline at end of file |
