HomePhabricator

Pass scalar by reference in secp256k1_wnaf_const()

Description

Pass scalar by reference in secp256k1_wnaf_const()

Summary:
After this change, no struct or union is passed by value in the
entire codebase. This makes it easier to compile the library with
CompCert.

This is a backport of secp256k1 PR617

Test Plan:

make check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Tim Ruffing <crypto@timruffing.de>Authored on May 14 2019, 09:43
deadalnixCommitted on Jan 17 2020, 16:09
deadalnixPushed on Jan 17 2020, 16:22
Reviewer
Restricted Project
Differential Revision
D4994: Pass scalar by reference in secp256k1_wnaf_const()
Parents
rSTAGING56260aeec5fc: Avoid implementation-defined and undefined behavior when dealing with sizes
Branches
Unknown
Tags
Unknown