cangrepp

Some cryptographic attacks
Log | Files | Refs | README

precomputed.h (556B)


      1 //  --------------- precomputed.h ---------------------
      2 #ifndef PRECOMPUTED_H
      3 #define PRECOMPUTED_H
      4 
      5 /**
      6  * This file has been automatically computed using the
      7  * precompute/header utility. The purpose is to store
      8  * some constant values, such as
      9  *
     10  * - limbs of a primorial (product of small primes)
     11  * - list of small primes
     12  */
     13 
     14 #include <flint.h>
     15 
     16 #define PC_PRIMORIAL_UI_ARRAY_LEN 1470
     17 #define PC_SMALLPRIMES_LEN 6542
     18 
     19 extern const ulong pc_primorial_ui_array[PC_PRIMORIAL_UI_ARRAY_LEN];
     20 extern const ulong pc_smallprimes[PC_SMALLPRIMES_LEN];
     21 #endif