Skip to content

mp_exptmod(41, -1, 1) incorrectly errors out with MP_VAL #475

Closed
@MasterDuke17

Description

@MasterDuke17

These values are in fact tested to not hang (6fa127b), and then a subsequent commit mentions that something seems off (b250ec4#diff-aa67c18ca27d74fae0446b5cd9376391R143-R146). Java, Python, Perl, and https://www.dcode.fr/modular-exponentiation all agree the answer should be 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions