diff --git a/bn.h b/bn.h index 940ffe7..a7d2f71 100644 --- a/bn.h +++ b/bn.h @@ -29,8 +29,12 @@ There may well be room for performance-optimizations and improvements. #define WORD_SIZE 4 #endif +#ifndef BN_SIZE_BYTES + #define BN_SIZE_BYTES 128 +#endif + /* Size of big-numbers in bytes */ -#define BN_ARRAY_SIZE (128 / WORD_SIZE) +#define BN_ARRAY_SIZE (BN_SIZE_BYTES / WORD_SIZE) /* Here comes the compile-time specialization for how large the underlying array size should be. */