Debian Codegraph @

third_party/heimdal/lib/hcrypto/libtommath/demo/shared.h

raw
1 #include <string.h>
2 #include <stdlib.h>
3 #include <time.h>
4
5 /*
6 * Configuration
7 */
8 #ifndef LTM_DEMO_TEST_REDUCE_2K_L
9 /* This test takes a moment so we disable it by default, but it can be:
10 * 0 to disable testing
11 * 1 to make the test with P = 2^1024 - 0x2A434 B9FDEC95 D8F9D550 FFFFFFFF FFFFFFFF
12 * 2 to make the test with P = 2^2048 - 0x1 00000000 00000000 00000000 00000000 4945DDBF 8EA2A91D 5776399B B83E188F
13 */
14 #define LTM_DEMO_TEST_REDUCE_2K_L 0
15 #endif
16
17 #define MP_WUR /* TODO: result checks disabled for now */
18 #include "tommath_private.h"
19
20 extern void ndraw(mp_int* a, const char* name);
21 extern void print_header(void);