Mercurial > dropbear
comparison libtomcrypt/src/pk/dsa/dsa_generate_pqg.c @ 1733:d529a52b2f7c coverity coverity
merge coverity from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 Jun 2020 21:07:34 +0800 |
parents | e9dba7abd939 |
children |
comparison
equal
deleted
inserted
replaced
1643:b59623a64678 | 1733:d529a52b2f7c |
---|---|
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; |