Skip to content

invmodp in big goes in infinite loop when inverting 0 #34

@lovesh

Description

@lovesh

I am using the Rust code. When using invmodp in big.rs here for inverting 0, it gets stuck in endless loop instead of returning 0. Or should it instead be an exception since we expect inverse to follow x*inverse(x)=1

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