diff options
author | jsing <> | 2025-05-25 04:30:55 +0000 |
---|---|---|
committer | jsing <> | 2025-05-25 04:30:55 +0000 |
commit | cbdbb6515eba8411eeb6f22618e029f1a461aa60 (patch) | |
tree | 19e7b4eacaae1f3b1f76f1ddd4e2c9ea08cfc4e5 /src/lib/libcrypto/rc2/rc2cfb64.c | |
parent | 007dbe05ae354e7202733f4217948276624e0e9f (diff) | |
download | openbsd-cbdbb6515eba8411eeb6f22618e029f1a461aa60.tar.gz openbsd-cbdbb6515eba8411eeb6f22618e029f1a461aa60.tar.bz2 openbsd-cbdbb6515eba8411eeb6f22618e029f1a461aa60.zip |
Provide additional variants of bn_add_words()/bn_sub_words().
Move bn_add_words() and bn_sub_words() from bn_add.c to bn_add_sub.c.
These have effectively been replaced in the previous rewrites. Remove
the asserts - if bad lengths are passed the results will be incorrect
and things will fail (these should use size_t instead of int, but that
is a problem for another day).
Provide bn_sub_words_borrow(), which computes a subtraction but only
returns the resulting borrow. Provide bn_add_words_masked() and
bn_sub_words_masked(), which perform an masked addition or subtraction.
These can also be used to implement constant time addition and subtraction,
especially for reduction.
ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2cfb64.c')
0 files changed, 0 insertions, 0 deletions