Mercurial > dropbear
comparison rand_prime.c @ 15:6362d3854bb4 libtomcrypt-orig
0.96 release of LibTomCrypt
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Jun 2004 14:07:21 +0000 |
parents | 7faae8f46238 |
children |
comparison
equal
deleted
inserted
replaced
3:7faae8f46238 | 15:6362d3854bb4 |
---|---|
52 } | 52 } |
53 | 53 |
54 /* New prime generation makes the code even more cryptoish-insane. Do you know what this means!!! | 54 /* New prime generation makes the code even more cryptoish-insane. Do you know what this means!!! |
55 -- Gir: Yeah, oh wait, er, no. | 55 -- Gir: Yeah, oh wait, er, no. |
56 */ | 56 */ |
57 if ((err = mp_prime_random_ex(N, mp_prime_rabin_miller_trials(len), len, type, rand_prime_helper, &rng)) != MP_OKAY) { | 57 return mpi_to_ltc_error(mp_prime_random_ex(N, mp_prime_rabin_miller_trials(len), len, type, rand_prime_helper, &rng)); |
58 return mpi_to_ltc_error(err); | |
59 } | |
60 | |
61 return CRYPT_OK; | |
62 } | 58 } |
63 | 59 |
64 #endif | 60 #endif |
65 | 61 |