summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/unit/ssl_methods.c
diff options
context:
space:
mode:
authorjsing <>2023-02-22 05:25:47 +0000
committerjsing <>2023-02-22 05:25:47 +0000
commit12aca8f870a07f30e989b326c4371746b668dc5f (patch)
tree5f5afd57f49d799d6b6009aa89d682b6e78ee6a2 /src/regress/lib/libssl/unit/ssl_methods.c
parentd8461c9d54c6b42b4f063da326afcf700ebcbe4f (diff)
downloadopenbsd-12aca8f870a07f30e989b326c4371746b668dc5f.tar.gz
openbsd-12aca8f870a07f30e989b326c4371746b668dc5f.tar.bz2
openbsd-12aca8f870a07f30e989b326c4371746b668dc5f.zip
Rewrite and simplify BN_MONT_CTX_set()
OpenSSL commit 4d524040bc8 changed BN_MONT_CTX_set() so that it computed a 64 bit N^-1 on both BN_BITS2 == 32 and BN_BITS2 == 64 platforms. However, the way in which this was done was to duplicate half the code and wrap it in #ifdef. Rewrite this code to use a single code path on all platforms, with #ifdef being limited to setting an additional word in the temporary N and storing the result on BN_BITS2 == 32 platforms. Also remove stack based BIGNUM in favour of using the already present BN_CTX. ok tb@
Diffstat (limited to 'src/regress/lib/libssl/unit/ssl_methods.c')
0 files changed, 0 insertions, 0 deletions