cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Functions
kg_prime.c File Reference
#include "crypt.h"
#include "context/context.h"
#include "context/keygen.h"
#include "bn/bn_prime.h"

Go to the source code of this file.

Macros

#define PKC_CONTEXT   /* Indicate that we're working with PKC contexts */
 
#define SIEVE_SIZE   4096
 
#define FAST_SIEVE_NUMPRIMES   ( 21 * 8 )
 
#define LFSR_POLYNOMIAL   0x1053
 
#define LFSR_MASK   0x1000
 

Functions

 STDC_NONNULL_ARG ((1, 3))
 
CHECK_RETVAL_BOOL STDC_NONNULL_ARG ((1))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 3, 4, 5, 7))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2))
 

Macro Definition Documentation

#define FAST_SIEVE_NUMPRIMES   ( 21 * 8 )

Definition at line 117 of file kg_prime.c.

#define LFSR_MASK   0x1000

Definition at line 169 of file kg_prime.c.

#define LFSR_POLYNOMIAL   0x1053

Definition at line 168 of file kg_prime.c.

#define PKC_CONTEXT   /* Indicate that we're working with PKC contexts */

Definition at line 35 of file kg_prime.c.

#define SIEVE_SIZE   4096

Definition at line 107 of file kg_prime.c.

Function Documentation

STDC_NONNULL_ARG ( (1, 3)  )

Definition at line 123 of file kg_prime.c.

CHECK_RETVAL_BOOL STDC_NONNULL_ARG ( (1)  )

Definition at line 188 of file kg_prime.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 3, 4, 5, 7)  )

Definition at line 393 of file kg_prime.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Definition at line 446 of file kg_prime.c.