summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authorjsing <>2023-02-03 05:10:57 +0000
committerjsing <>2023-02-03 05:10:57 +0000
commita881da8482cf1ded82dda8177f3be4c5a6f48ebc (patch)
tree719d976bcf4b97c2bc24f5bcde07232a6d14823e /src/lib/libc
parente89b3fff04261fbe70d2fcb24f92e4689c8ce8f4 (diff)
downloadopenbsd-a881da8482cf1ded82dda8177f3be4c5a6f48ebc.tar.gz
openbsd-a881da8482cf1ded82dda8177f3be4c5a6f48ebc.tar.bz2
openbsd-a881da8482cf1ded82dda8177f3be4c5a6f48ebc.zip
Clean up BN_mod_mul() and simplify BN_mod_sqr().
Use the same naming/code pattern in BN_mod_mul() as is used in BN_mul(). Note that the 'rr' allocation is unnecessary, since both BN_mul() and BN_sqr() handle the case where r == a || r == b. However, it avoids a potential copy on the exit from BN_mul()/BN_sqr(), so leave it in place for now. Turn BN_mod_sqr() into a wrapper that calls BN_mod_mul(), since it already calls BN_sqr() in the a == b. The supposed gain of calling BN_mod_ct() instead of BN_nnmod() does not really exist. ok tb@
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions