bn_deprecated.c


Log

Author Commit Date CI Message
Daniel Mendler 1af0de1f 2019-05-20T19:11:25 deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor) * same behavior for positive numbers * generalisation for negative numbers, treating them as two complement * improve algorithm, iterate once over the digits, manually perform two complement * simplify mp_add_d, mp_sub_d * functions are safe in case of a==c or b==c * renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
Daniel Mendler 6d84f15e 2019-05-19T10:58:04 remove comment in bn_deprecated
Daniel Mendler dac8275e 2019-05-19T10:55:27 fix mp_jacobi ifdef
Daniel Mendler 87edbfe4 2019-05-19T20:43:42 ensure that bn_reverse is compiled in bn_deprecated.c
Francois Perrad 8b2daf78 2019-05-19T17:16:13 always use varname err with mp_err
Daniel Mendler a8239c24 2019-05-13T11:32:42 deprecate mp_get_bit The return type of mp_get_bit was imprecise (either mp_err or mp_bool), therefore this function is deprecated in favor of s_mp_get_bit for now. If we need s_mp_get_bit to be public, we should add it under a different name. However since mp_set_bit is not available, I don't think there any downstream users (ab)using mp_int as bitsets.
Daniel Mendler 56e7a401 2019-05-13T02:46:11 deprecate mp_jacobi
Daniel Mendler 75e85a73 2019-05-13T11:18:34 move mp_prime_random_ex to bn_deprecated.c
Daniel Mendler 885e5e19 2019-05-13T11:14:57 move mp_rand_digit to bn_deprecated.c
Daniel Mendler 4534056c 2019-05-13T00:22:18 use enums mp_err, mp_ord, mp_bool, mp_sign * MP_USE_ENUMS enables enums * Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined * 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
Daniel Mendler fbfcb661 2019-04-12T14:56:29 apply rename