mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-29 12:52:14 +01:00
sp_int.c: - sp_addmod_ct(), sp_submod_ct(), sp_gcd() and sp_lcm() only support positive numbers: updated comments. - sp_mod(0, neg): fix to not add 0 and neg. - sp_div(): set sign on rem when a is greater than d but same bit length and fix sign setting on result when absolute values equal or close. - Modular exponentation functions: compare absolute values when determining whether base needs to be reduced. - Fix calculation of hex string when negative: add -ve nibble before checking for need of extra 0. - Fix size allocation in sp_mod when WOLFSSL_SP_INT_NEGATIVE defined tfm.c: - fp_mod(0, neg): fix to not add 0 and neg. - fp_isone(): fixed to check for negative - fp_add_d(): fix small stack version to support negative numbers integer.c: - mp_isone(): fixed to check for negative