HomePhabricator

[SECP256K1] Move secp256k1_scalar_{inverse{_var},is_even} and…

Description

[SECP256K1] Move secp256k1_scalar_{inverse{_var},is_even} and secp256k1_fe_inverse{_var} to per-impl files

Summary:
Partial backport of secp256k1#831:
https://github.com/bitcoin-core/secp256k1/pull/831/commits/aa404d53bef21d252a23171381d4bfda6e7e25c6
https://github.com/bitcoin-core/secp256k1/pull/831/commits/436281afdcb68991395f97338197d208212965e2

These are move only commits in preparation for replacing the functions
with their new safegcd variants. There is no change in behavior.

Depends on D9403.

Test Plan:

ninja check-secp256k1

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9404

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Oct 11 2020, 22:30
FabienCommitted on Apr 14 2021, 06:50
FabienPushed on Apr 14 2021, 06:50
Reviewer
Restricted Project
Differential Revision
D9404: [SECP256K1] Move secp256k1_scalar_{inverse{_var},is_even} and secp256k1_fe_inverse{_var} to per-impl files
Parents
rABC76ecd0d3ed0e: [SECP256K1] Improve bounds checks in modinv modules
Branches
Unknown
Tags
Unknown