summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_err.c
diff options
context:
space:
mode:
authorjsing <>2023-02-14 18:37:15 +0000
committerjsing <>2023-02-14 18:37:15 +0000
commitb73d4dabf0827fb6841d16a8928fea6b7438742b (patch)
tree2b56d52a18947785680f3ae1e0724a413228058f /src/lib/libcrypto/ui/ui_err.c
parent5f8f1614f88870fb8337b56253e6079518e33848 (diff)
downloadopenbsd-b73d4dabf0827fb6841d16a8928fea6b7438742b.tar.gz
openbsd-b73d4dabf0827fb6841d16a8928fea6b7438742b.tar.bz2
openbsd-b73d4dabf0827fb6841d16a8928fea6b7438742b.zip
Reimplement bn_mul_words(), bn_mul_add_words() and bn_mul_comba{4,8}().
Use bignum primitives rather than the current mess of macros, which also allows us to remove the essentially duplicate versions of bn_mul_words() and bn_mul_add_words() for BN_LLONG. The "mul" macro gets replaced by bn_mulw_addw(), "mul_add" with bn_mulw_addw_addw() and "mul_add_c" with bn_mulw_addtw() (where 'w' indicates single word input and 'tw' indicates triple word input). The variables in the comba functions have also been reordered, so that the patterns are easier to understand - the compiler can take care of optimising the inputs and outputs to avoid register moves. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
0 files changed, 0 insertions, 0 deletions