X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbn%2Fbn_prime.h;h=51d2194febdb66268674ec31e062a1fdaa5c3944;hp=8bb168517da3af06d34e2a4702490360bdecbdd1;hb=75a8e30f4fdb9724661875ded75689fad3bcbb39;hpb=76aa0ddc86772080db4f61821b9ff357e330c843 diff --git a/crypto/bn/bn_prime.h b/crypto/bn/bn_prime.h index 8bb168517d..51d2194feb 100644 --- a/crypto/bn/bn_prime.h +++ b/crypto/bn/bn_prime.h @@ -58,10 +58,12 @@ #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]= +static const prime_t primes[NUMPRIMES]= { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53,