diff options
author | jsing <> | 2023-02-22 05:25:47 +0000 |
---|---|---|
committer | jsing <> | 2023-02-22 05:25:47 +0000 |
commit | 6f66480e47f11d7c590e1c3719c68facc3cc379a (patch) | |
tree | 5f5afd57f49d799d6b6009aa89d682b6e78ee6a2 /src/lib/libc/stdlib/rand.c | |
parent | bbd3444e2c08eee072f2585081aa72121247bc34 (diff) | |
download | openbsd-6f66480e47f11d7c590e1c3719c68facc3cc379a.tar.gz openbsd-6f66480e47f11d7c590e1c3719c68facc3cc379a.tar.bz2 openbsd-6f66480e47f11d7c590e1c3719c68facc3cc379a.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/lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions