Mercurial > dropbear
comparison libtomcrypt/src/pk/dsa/dsa_generate_pqg.c @ 1711:e9dba7abd939
Merge libtomcrypt v1.18.2
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 10 Jun 2020 23:16:13 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1710:1ff2a1034c52 | 1711:e9dba7abd939 |
---|---|
70 * offset = offset + n + 1 Comment: Increment offset | 70 * offset = offset + n + 1 Comment: Increment offset |
71 * } | 71 * } |
72 */ | 72 */ |
73 | 73 |
74 seedbytes = group_size; | 74 seedbytes = group_size; |
75 L = modulus_size * 8; | 75 L = (unsigned long)modulus_size * 8; |
76 N = group_size * 8; | 76 N = (unsigned long)group_size * 8; |
77 | 77 |
78 /* XXX-TODO no Lucas test */ | 78 /* XXX-TODO no Lucas test */ |
79 #ifdef LTC_MPI_HAS_LUCAS_TEST | 79 #ifdef LTC_MPI_HAS_LUCAS_TEST |
80 /* M-R tests (when followed by one Lucas test) according FIPS-186-4 - Appendix C.3 - table C.1 */ | 80 /* M-R tests (when followed by one Lucas test) according FIPS-186-4 - Appendix C.3 - table C.1 */ |
81 mr_tests_p = (L <= 2048) ? 3 : 2; | 81 mr_tests_p = (L <= 2048) ? 3 : 2; |