Skip to content

bugfix #616 - #617

Open
czurnieden wants to merge 1 commit into
libtom:developfrom
czurnieden:exptmod_fix_mod_one
Open

czurnieden wants to merge 1 commit into
libtom:developfrom
czurnieden:exptmod_fix_mod_one

Conversation

@czurnieden

Copy link
Copy Markdown
Contributor

Added shortcut to mp_exptmod to return 0 for all input if the modulus is 1.
Changed the shortcut of mp_invmodto do the same.
Added and adapted tests in test.c.

@czurnieden
czurnieden requested a review from sjaeckel October 28, 2026 16:24
@czurnieden czurnieden added the bug label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant