update: generate errors ordinals depend
generate:
- (cd apps && $(MAKE) generate)
- (cd crypto/bn && $(MAKE) generate)
- (cd crypto/objects && $(MAKE) generate)
+ (cd apps && PERL='${PERL}' $(MAKE) generate)
+ (cd crypto/bn && PERL='${PERL}' $(MAKE) generate)
+ (cd crypto/objects && PERL='${PERL}' $(MAKE) generate)
errors:
$(PERL) util/ck_errf.pl -strict */*.c */*/*.c
*/
#include "bn_prime.h"
-#define NUMPRIMES OSSL_NELEM(primes)
-
static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
const BIGNUM *a1_odd, int k, BN_CTX *ctx,
BN_MONT_CTX *mont);
*/
typedef unsigned short prime_t;
-static const prime_t primes[] = {
+# define NUMPRIMES 2048
+
+static const prime_t primes[2048] = {
+
2, 3, 5, 7, 11, 13, 17, 19,
23, 29, 31, 37, 41, 43, 47, 53,
59, 61, 67, 71, 73, 79, 83, 89,
}
print "typedef unsigned short prime_t;\n";
+printf "# define NUMPRIMES %d\n\n", $num;
-print "static const prime_t primes[] = {";
+printf "static const prime_t primes[%d] = {\n", $num;
for (my $i = 0; $i <= $#primes; $i++) {
printf "\n " if ($i % 8) == 0;
printf "%4d, ", $primes[$i];