Skip to content

Missing return check in ModInverse #22

@ale-linux

Description

@ale-linux

ModInverse from the package math/big is used to implement InvModP. However the implementation of InvModP does not check the return value, which could be nil in case the arguments are not relatively prime, in which case the multiplicative inverse does not exist.

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