Go to the documentation of this file.
8 #ifndef _KEYGEN_DEFINED
10 #define _KEYGEN_DEFINED
15 #define getNoPrimeChecks( noBits ) \
16 ( ( noBits < 150 ) ? 18 : ( noBits < 200 ) ? 15 : \
17 ( noBits < 250 ) ? 12 : ( noBits < 300 ) ? 9 : \
18 ( noBits < 350 ) ? 8 : ( noBits < 400 ) ? 7 : \
19 ( noBits < 500 ) ? 6 : ( noBits < 600 ) ? 5 : \
20 ( noBits < 800 ) ? 4 : ( noBits < 1250 ) ? 3 : 2 )
27 int primeProbable(
INOUT PKC_INFO *pkcInfo,
29 IN_RANGE( 1, 100 )
const int noChecks );
31 int generatePrime(
INOUT PKC_INFO *pkcInfo,