Skip to content

MulMod not implemented and not properly documented #70

Closed
@haslersn

Description

@haslersn

It would be nice if the trait MulMod could be implemented.

Furthermore, the current documentation (v0.3.2) states that mul_mod

Requires p_inv = -(p^{-1} mod 2^{BITS}) mod 2^{BITS} to be provided for efficiency.

However, any even p is not invertible. An even p might be used e.g. when computing over a ring rather than a prime field. So, how should p_inv be set if p is even?

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