diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 19:04:37 +0100 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 19:04:37 +0100 |
commit | 2ce90b9b7481381dff584726d84345a0260ca4d1 (patch) | |
tree | 2b80352df9ffa38c54c9f7d6290fe942d89af0d2 /crypto/bn/bn_lcl.h | |
parent | Removing those memcpy()s also took away the possibility for in and out to (diff) | |
download | openssl-2ce90b9b7481381dff584726d84345a0260ca4d1.tar.xz openssl-2ce90b9b7481381dff584726d84345a0260ca4d1.zip |
BN_CTX is opaque and the static initialiser BN_CTX_init() is not used
except internally to the allocator BN_CTX_new(), as such this deprecates
the use of BN_CTX_init() in the API. Moreover, the structure definition of
BN_CTX is taken out of bn_lcl.h and moved into bn_ctx.c itself.
NDEBUG should probably only be "forced" in the top-level configuration, but
until it is I will avoid removing it from bn_ctx.c which might surprise
people with massive slow-downs in their keygens. So I've left it in
bn_ctx.c but tidied up the preprocessor logic a touch and made it more
tolerant of debugging efforts.
Diffstat (limited to 'crypto/bn/bn_lcl.h')
-rw-r--r-- | crypto/bn/bn_lcl.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h index 01cb6e9280..0c448724d5 100644 --- a/crypto/bn/bn_lcl.h +++ b/crypto/bn/bn_lcl.h @@ -119,20 +119,6 @@ extern "C" { #endif -/* Used for temp variables */ -#define BN_CTX_NUM 32 -#define BN_CTX_NUM_POS 12 -struct bignum_ctx - { - int tos; - BIGNUM bn[BN_CTX_NUM]; - int flags; - int depth; - int pos[BN_CTX_NUM_POS]; - int too_many; - } /* BN_CTX */; - - /* * BN_window_bits_for_exponent_size -- macro for sliding window mod_exp functions * |