x86-mont.pl: fix bug in integer-only squaring path.
[openssl.git] / crypto / bn / bn_prime.h
index c10217dfea830cd67e4c14f727ae61b819c1f1ba..bd04602e4f566beaec17a276b87da3ff65c3d2f1 100644 (file)
  * copied and put under another distribution licence
  * [including the GNU Public Licence.]
  */
+
 #ifndef EIGHT_BIT
 #define NUMPRIMES 2048
+typedef unsigned short prime_t;
 #else
 #define NUMPRIMES 54
+typedef unsigned char prime_t;
 #endif
-static unsigned int primes[NUMPRIMES]=
+__fips_constseg
+static const prime_t primes[NUMPRIMES]=
        {
           2,   3,   5,   7,  11,  13,  17,  19,
          23,  29,  31,  37,  41,  43,  47,  53,