Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-02-17 | Reimplement bn_sqr_comba{4,8}(). | jsing | 2 | -102/+110 | |
Use bignum primitives rather than the current mess of macros.The sqr_add_c macro gets replaced with bn_mulw_addtw(), while the sqr_add_c2 macro gets replaced with bn_mul2_mulw_addtw(). 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@ | |||||
2023-02-16 | Enable s2n-bignum word_clz() on amd64. | jsing | 4 | -4/+17 | |
The BN_num_bits_word() function is a hot path, being called more than 80 million times during a libcrypto regress run. The word_clz() implementation uses five instructions to do the same as the generic code that uses more than 60 instructions. Discussed with tb@ | |||||
2023-02-16 | Use bn_addw() in bn_mulw(), rather than duplicating add with carry code. | jsing | 1 | -12/+7 | |
2023-02-16 | Change include from _internal_s2n_bignum.h to s2n_bignum_internal.h. | jsing | 1 | -1/+1 | |
2023-02-16 | Include the ISC license from s2n-bignum's LICENSE file. | jsing | 1 | -1/+12 | |