2019-03-04 00:02:22 +00:00
|
|
|
#include <string.h>
|
2019-05-07 07:32:59 +00:00
|
|
|
#include <stdlib.h>
|
2019-03-04 00:02:22 +00:00
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Configuration
|
|
|
|
*/
|
|
|
|
#ifndef LTM_DEMO_TEST_VS_MTEST
|
|
|
|
#define LTM_DEMO_TEST_VS_MTEST 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LTM_DEMO_TEST_REDUCE_2K_L
|
|
|
|
/* This test takes a moment so we disable it by default, but it can be:
|
|
|
|
* 0 to disable testing
|
|
|
|
* 1 to make the test with P = 2^1024 - 0x2A434 B9FDEC95 D8F9D550 FFFFFFFF FFFFFFFF
|
|
|
|
* 2 to make the test with P = 2^2048 - 0x1 00000000 00000000 00000000 00000000 4945DDBF 8EA2A91D 5776399B B83E188F
|
|
|
|
*/
|
|
|
|
#define LTM_DEMO_TEST_REDUCE_2K_L 0
|
|
|
|
#endif
|
|
|
|
|
2019-05-09 01:28:49 +00:00
|
|
|
#define MP_WUR /* TODO: result checks disabled for now */
|
2019-05-17 18:53:24 +00:00
|
|
|
#include "tommath_private.h"
|
2019-03-04 00:56:06 +00:00
|
|
|
|
2019-03-06 14:09:32 +00:00
|
|
|
extern void ndraw(mp_int* a, const char* name);
|