cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Functions | Variables
keygen.h File Reference

Go to the source code of this file.

Macros

#define getNoPrimeChecks(noBits)
 

Functions

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ((1)) BOOLEAN primeSieve(const BIGNUM *candidate)
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2)) int primeProbable(INOUT PKC_INFO *pkcInfo
 
CHECK_RETVAL INOUT BIGNUM IN_RANGE (1, 100) const int noChecks)
 
CHECK_RETVAL INOUT BIGNUM IN_LENGTH_SHORT_MIN (120) const int noBits
 

Variables

CHECK_RETVAL INOUT BIGNUMn
 
CHECK_RETVAL INOUT BIGNUMcandidate
 
CHECK_RETVAL INOUT BIGNUM
IN_INT_OPT const long 
exponent
 

Macro Definition Documentation

#define getNoPrimeChecks (   noBits)
Value:
( ( noBits < 150 ) ? 18 : ( noBits < 200 ) ? 15 : \
( noBits < 250 ) ? 12 : ( noBits < 300 ) ? 9 : \
( noBits < 350 ) ? 8 : ( noBits < 400 ) ? 7 : \
( noBits < 500 ) ? 6 : ( noBits < 600 ) ? 5 : \
( noBits < 800 ) ? 4 : ( noBits < 1250 ) ? 3 : 2 )

Definition at line 15 of file keygen.h.

Function Documentation

CHECK_RETVAL INOUT BIGNUM IN_LENGTH_SHORT_MIN ( 120  ) const
CHECK_RETVAL INOUT BIGNUM IN_RANGE ( ,
100   
) const
CHECK_RETVAL_BOOL STDC_NONNULL_ARG ( (1)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Variable Documentation

Definition at line 32 of file keygen.h.

Definition at line 34 of file keygen.h.

Definition at line 28 of file keygen.h.