Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using out-of-bounds field elements (in impossible cases) #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 11, 2024

  1. Avoid using out-of-bounds field elements (in impossible cases)

    secp256k1_fe_set_b32_limit says that when it returns 0, one is not allowed to use
    the resulting output value.
    
    This refactors the code so that the existing value of t is maintained in cases where
    sha256 would output an out-of-bounds hash value.
    
    Note: This situation is cryptographically impossible to occur.
    roconnor-blockstream committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    f56dd68 View commit details
    Browse the repository at this point in the history