Skip to content

modinv: Verify invariant of _modinfo struct #1216

Open
tusharv01/secp256k1
#1
@real-or-random

Description

@real-or-random

I wonder if it's a good idea to add a function secp256k1_modinv32_modinfo verify that checks consistency and call it on entry of every function that reads modinfo, similar to how we do this for other data structures. But if yes, that should happen in a separate PR.

Originally posted by @real-or-random in #979 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions