Stronger magnitude check for normalized field element in `_fe_verify` #1059

issue siv2r opened this issue on January 2, 2022
  1. siv2r commented at 6:57 AM on January 2, 2022: contributor

    My bad, I forgot that a->magnitude is an int.

  2. siv2r closed this on Jan 2, 2022

  3. real-or-random commented at 11:13 AM on January 2, 2022: contributor

    Well, I think because it is int, it would make sense to exclude negative values. But we already to this here (not conditioned on normalized): https://github.com/bitcoin-core/secp256k1/blob/a1102b12196ea27f44d6201de4d25926a2ae9640/src/field_10x26_impl.h#L37


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-18 19:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me