Minimize stack utilization in probable_prime.
[openssl.git] / crypto / bn / bn_prime.h
index 6fce0210cdd4495abf97adc7e842ac39d4a4a01f..51d2194febdb66268674ec31e062a1fdaa5c3944 100644 (file)
@@ -1,4 +1,4 @@
-/* crypto/bn/bn_prime.h */
+/* Auto generated by bn_prime.pl */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
 
 #ifndef EIGHT_BIT
 #define NUMPRIMES 2048
 
 #ifndef EIGHT_BIT
 #define NUMPRIMES 2048
+typedef unsigned short prime_t;
 #else
 #define NUMPRIMES 54
 #else
 #define NUMPRIMES 54
+typedef unsigned char prime_t;
 #endif
 #endif
-static unsigned int primes[NUMPRIMES]=
+static const prime_t primes[NUMPRIMES]=
        {
           2,   3,   5,   7,  11,  13,  17,  19,
          23,  29,  31,  37,  41,  43,  47,  53,
        {
           2,   3,   5,   7,  11,  13,  17,  19,
          23,  29,  31,  37,  41,  43,  47,  53,