Skip to content

Commit 29fde02

Browse files
committed
Squashed 'src/secp256k1/' changes from 199d27c..efe85c70a2
efe85c70a2 Merge bitcoin-core/secp256k1#1466: release cleanup: bump version after 0.4.1 4b2e06f460 release cleanup: bump version after 0.4.1 1ad5185 Merge bitcoin-core/secp256k1#1465: release: prepare for 0.4.1 672053d release: prepare for 0.4.1 1a81df8 Merge bitcoin-core/secp256k1#1380: Add ABI checking tool for release process 74a4d97 doc: Add ABI checking with `check-abi.sh` to the Release Process e7f830e Add `tools/check-abi.sh` 77af1da Merge bitcoin-core/secp256k1#1455: doc: improve secp256k1_fe_set_b32_mod doc 3928b7c doc: improve secp256k1_fe_set_b32_mod doc 5e9a4d7 Merge bitcoin-core/secp256k1#990: Add comment on length checks when parsing ECDSA sigs 4197d66 Merge bitcoin-core/secp256k1#1431: Add CONTRIBUTING.md 0e5ea62 CONTRIBUTING: add some coding and style conventions e2c9888 Merge bitcoin-core/secp256k1#1451: changelog: add entry for "field: Remove x86_64 asm" d2e36a2 changelog: add entry for "field: Remove x86_64 asm" 1a432cb README: update first sentence 0922a04 docs: move coverage report instructions to CONTRIBUTING 76880e4 Add CONTRIBUTING.md including scope and guidelines for new code d3e29db Merge bitcoin-core/secp256k1#1450: Add group.h ge/gej equality functions 04af0ba Replace ge_equals_ge[,j] calls with group.h equality calls 60525f6 Add unit tests for group.h equality functions a47cd97 Add group.h ge/gej equality functions 10e6d29 Merge bitcoin-core/secp256k1#1446: field: Remove x86_64 asm 07687e8 Merge bitcoin-core/secp256k1#1393: Implement new policy for VERIFY_CHECK and #ifdef VERIFY (issue bitcoin#1381) bb46723 remove VERIFY_SETUP define a3a3e11 remove unneeded VERIFY_SETUP uses in ECMULT_CONST_TABLE_GET_GE macro a0fb68a introduce and use SECP256K1_SCALAR_VERIFY macro cf25c86 introduce and use SECP256K1_{FE,GE,GEJ}_VERIFY macros 5d89bc0 remove superfluous `#ifdef VERIFY`/`#endif` preprocessor conditions c2688f8 redefine VERIFY_CHECK to empty in production (non-VERIFY) mode 5814d84 Merge bitcoin-core/secp256k1#1438: correct assertion for secp256k1_fe_mul_inner c1b4966 Merge bitcoin-core/secp256k1#1445: bench: add --help option to bench_internal f07cead build: Don't call assembly an optimization 2f0762f field: Remove x86_64 asm 1ddd76a bench: add --help option to bench_internal e721039 Merge bitcoin-core/secp256k1#1441: asm: add .note.GNU-stack section for non-exec stack ea47c82 Merge bitcoin-core/secp256k1#1442: Return temporaries to being unsigned in secp256k1_fe_sqr_inner dcdda31 Tighten secp256k1_fe_mul_inner's VERIFY_BITS checks 1027135 Return temporaries to being unsigned in secp256k1_fe_sqr_inner 33dc7e4 asm: add .note.GNU-stack section for non-exec stack c891c5c Merge bitcoin-core/secp256k1#1437: ci: Ignore internal errors of snapshot compilers 8185e72 ci: Ignore internal errors in snapshot compilers 40f50d0 Merge bitcoin-core/secp256k1#1184: Signed-digit based ecmult_const algorithm 8e2a5fe correct assertion for secp256k1_fe_mul_inner 355bbdf Add changelog entry for signed-digit ecmult_const algorithm 21f49d9 Remove unused secp256k1_scalar_shr_int 115fdc7 Remove unused secp256k1_wnaf_const aa9f3a3 ecmult_const: add/improve tests 4d16e90 Signed-digit based ecmult_const algorithm ba523be make SECP256K1_SCALAR_CONST reduce modulo exhaustive group order 2140da9 Add secp256k1_scalar_half for halving scalars (+ tests/benchmarks). 1f1bb78 Merge bitcoin-core/secp256k1#1430: README: remove CI badge 5dab0ba README: remove CI badge b314cf2 Merge bitcoin-core/secp256k1#1426: ci/cirrus: Add native ARM64 jobs fa4d6c7 ci/cirrus: Add native ARM64 persistent workers ee7aaf2 Merge bitcoin-core/secp256k1#1395: tests: simplify `random_fe_non_zero` (remove loop limit and unneeded normalize) ba9cb6f Merge bitcoin-core/secp256k1#1424: ci: Bump major versions for docker actions d9d80fd ci: Bump major versions for docker actions 4fd00f4 Merge bitcoin-core/secp256k1#1422: cmake: Install `libsecp256k1.pc` file 421d848 ci: Align Autotools/CMake `CI_INSTALL` directory names 9f005c6 cmake: Install `libsecp256k1.pc` file 2262d0e ci/cirrus: Bring back skeleton .cirrus.yml without jobs b10ddd2 Merge bitcoin-core/secp256k1#1416: doc: Align documented scripts with CI ones 49be5be Merge bitcoin-core/secp256k1#1390: tests: Replace counting_illegal_callbacks with CHECK_ILLEGAL_VOID cbf3053 Merge bitcoin-core/secp256k1#1417: release cleanup: bump version after 0.4.0 9b118bc release cleanup: bump version after 0.4.0 7030364 tests: add CHECK_ERROR_VOID and use it in scratch tests f8d7ea6 tests: Replace counting_illegal_callbacks with CHECK_ILLEGAL_VOID b0f7bfe doc: Do not mention soname in CHANGELOG.md "ABI Compatibility" section bd9d98d doc: Align documented scripts with CI ones a1d52e3 tests: remove unnecessary test in run_ec_pubkey_parse_test 875b0ad tests: remove unnecessary set_illegal_callback c45b7c4 refactor: introduce testutil.h (deduplicate `random_fe_`, `ge_equals_` helpers) dc55141 tests: simplify `random_fe_non_zero` (remove loop limit and unneeded normalize) e02f313 Add comment on length checks when parsing ECDSA sigs git-subtree-dir: src/secp256k1 git-subtree-split: efe85c70a2e357e3605a8901a9662295bae1001f
1 parent c0da4f6 commit 29fde02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1477
-1926
lines changed

.cirrus.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
env:
2+
### cirrus config
3+
CIRRUS_CLONE_DEPTH: 1
4+
### compiler options
5+
HOST:
6+
WRAPPER_CMD:
7+
# Specific warnings can be disabled with -Wno-error=foo.
8+
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual.
9+
WERROR_CFLAGS: -Werror -pedantic-errors
10+
MAKEFLAGS: -j4
11+
BUILD: check
12+
### secp256k1 config
13+
ECMULTWINDOW: auto
14+
ECMULTGENPRECISION: auto
15+
ASM: no
16+
WIDEMUL: auto
17+
WITH_VALGRIND: yes
18+
EXTRAFLAGS:
19+
### secp256k1 modules
20+
EXPERIMENTAL: no
21+
ECDH: no
22+
RECOVERY: no
23+
SCHNORRSIG: no
24+
ELLSWIFT: no
25+
### test options
26+
SECP256K1_TEST_ITERS:
27+
BENCH: yes
28+
SECP256K1_BENCH_ITERS: 2
29+
CTIMETESTS: yes
30+
# Compile and run the tests
31+
EXAMPLES: yes
32+
33+
cat_logs_snippet: &CAT_LOGS
34+
always:
35+
cat_tests_log_script:
36+
- cat tests.log || true
37+
cat_noverify_tests_log_script:
38+
- cat noverify_tests.log || true
39+
cat_exhaustive_tests_log_script:
40+
- cat exhaustive_tests.log || true
41+
cat_ctime_tests_log_script:
42+
- cat ctime_tests.log || true
43+
cat_bench_log_script:
44+
- cat bench.log || true
45+
cat_config_log_script:
46+
- cat config.log || true
47+
cat_test_env_script:
48+
- cat test_env.log || true
49+
cat_ci_env_script:
50+
- env
51+
52+
linux_arm64_container_snippet: &LINUX_ARM64_CONTAINER
53+
env_script:
54+
- env | tee /tmp/env
55+
build_script:
56+
- DOCKER_BUILDKIT=1 docker build --file "ci/linux-debian.Dockerfile" --tag="ci_secp256k1_arm"
57+
- docker image prune --force # Cleanup stale layers
58+
test_script:
59+
- docker run --rm --mount "type=bind,src=./,dst=/ci_secp256k1" --env-file /tmp/env --replace --name "ci_secp256k1_arm" "ci_secp256k1_arm" bash -c "cd /ci_secp256k1/ && ./ci/ci.sh"
60+
61+
task:
62+
name: "ARM64: Linux (Debian stable)"
63+
persistent_worker:
64+
labels:
65+
type: arm64
66+
env:
67+
ECDH: yes
68+
RECOVERY: yes
69+
SCHNORRSIG: yes
70+
ELLSWIFT: yes
71+
matrix:
72+
# Currently only gcc-snapshot, the other compilers are tested on GHA with QEMU
73+
- env: { CC: 'gcc-snapshot' }
74+
<< : *LINUX_ARM64_CONTAINER
75+
<< : *CAT_LOGS
76+
77+
task:
78+
name: "ARM64: Linux (Debian stable), Valgrind"
79+
persistent_worker:
80+
labels:
81+
type: arm64
82+
env:
83+
ECDH: yes
84+
RECOVERY: yes
85+
SCHNORRSIG: yes
86+
ELLSWIFT: yes
87+
WRAPPER_CMD: 'valgrind --error-exitcode=42'
88+
SECP256K1_TEST_ITERS: 2
89+
matrix:
90+
- env: { CC: 'gcc' }
91+
- env: { CC: 'clang' }
92+
- env: { CC: 'gcc-snapshot' }
93+
- env: { CC: 'clang-snapshot' }
94+
<< : *LINUX_ARM64_CONTAINER
95+
<< : *CAT_LOGS

.github/actions/run-in-docker-action/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ inputs:
1414
runs:
1515
using: "composite"
1616
steps:
17-
- uses: docker/setup-buildx-action@v2
17+
- uses: docker/setup-buildx-action@v3
1818

19-
- uses: docker/build-push-action@v4
19+
- uses: docker/build-push-action@v5
2020
id: main_builder
2121
continue-on-error: true
2222
with:
@@ -26,7 +26,7 @@ runs:
2626
load: true
2727
cache-from: type=gha
2828

29-
- uses: docker/build-push-action@v4
29+
- uses: docker/build-push-action@v5
3030
id: retry_builder
3131
if: steps.main_builder.outcome == 'failure'
3232
with:

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@v2
50+
uses: docker/setup-buildx-action@v3
5151
with:
5252
# See: https://github.com/moby/buildkit/issues/3969.
5353
driver-opts: |
5454
network=host
5555
5656
- name: Build container
57-
uses: docker/build-push-action@v4
57+
uses: docker/build-push-action@v5
5858
with:
5959
file: ./ci/linux-debian.Dockerfile
6060
tags: linux-debian-image
@@ -792,7 +792,7 @@ jobs:
792792

793793
- name: Check installation with Autotools
794794
env:
795-
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}
795+
CI_INSTALL: ${{ runner.temp }}/${{ github.run_id }}${{ github.action }}/install
796796
run: |
797797
./autogen.sh && ./configure --prefix=${{ env.CI_INSTALL }} && make clean && make install && ls -RlAh ${{ env.CI_INSTALL }}
798798
gcc -o ecdsa examples/ecdsa.c $(PKG_CONFIG_PATH=${{ env.CI_INSTALL }}/lib/pkgconfig pkg-config --cflags --libs libsecp256k1) -Wl,-rpath,"${{ env.CI_INSTALL }}/lib" && ./ecdsa

CHANGELOG.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
## [0.4.1] - 2023-12-21
11+
12+
#### Changed
13+
- The point multiplication algorithm used for ECDH operations (module `ecdh`) was replaced with a slightly faster one.
14+
- Optional handwritten x86_64 assembly for field operations was removed because modern C compilers are able to output more efficient assembly. This change results in a significant speedup of some library functions when handwritten x86_64 assembly is enabled (`--with-asm=x86_64` in GNU Autotools, `-DSECP256K1_ASM=x86_64` in CMake), which is the default on x86_64. Benchmarks with GCC 10.5.0 show a 10% speedup for `secp256k1_ecdsa_verify` and `secp256k1_schnorrsig_verify`.
15+
16+
#### ABI Compatibility
17+
The ABI is backward compatible with versions 0.4.0 and 0.3.x.
18+
819
## [0.4.0] - 2023-09-04
920

1021
#### Added
@@ -104,7 +115,8 @@ This version was in fact never released.
104115
The number was given by the build system since the introduction of autotools in Jan 2014 (ea0fe5a5bf0c04f9cc955b2966b614f5f378c6f6).
105116
Therefore, this version number does not uniquely identify a set of source files.
106117

107-
[unreleased]: https://github.com/bitcoin-core/secp256k1/compare/v0.4.0...HEAD
118+
[unreleased]: https://github.com/bitcoin-core/secp256k1/compare/v0.4.1...HEAD
119+
[0.4.1]: https://github.com/bitcoin-core/secp256k1/compare/v0.4.0...v0.4.1
108120
[0.4.0]: https://github.com/bitcoin-core/secp256k1/compare/v0.3.2...v0.4.0
109121
[0.3.2]: https://github.com/bitcoin-core/secp256k1/compare/v0.3.1...v0.3.2
110122
[0.3.1]: https://github.com/bitcoin-core/secp256k1/compare/v0.3.0...v0.3.1

CMakeLists.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ project(libsecp256k1
1111
# The package (a.k.a. release) version is based on semantic versioning 2.0.0 of
1212
# the API. All changes in experimental modules are treated as
1313
# backwards-compatible and therefore at most increase the minor version.
14-
VERSION 0.4.0
14+
VERSION 0.4.2
1515
DESCRIPTION "Optimized C library for ECDSA signatures and secret/public key operations on curve secp256k1."
1616
HOMEPAGE_URL "https://github.com/bitcoin-core/secp256k1"
1717
LANGUAGES C
@@ -35,7 +35,7 @@ endif()
3535
# All changes in experimental modules are treated as if they don't affect the
3636
# interface and therefore only increase the revision.
3737
set(${PROJECT_NAME}_LIB_VERSION_CURRENT 3)
38-
set(${PROJECT_NAME}_LIB_VERSION_REVISION 0)
38+
set(${PROJECT_NAME}_LIB_VERSION_REVISION 2)
3939
set(${PROJECT_NAME}_LIB_VERSION_AGE 1)
4040

4141
set(CMAKE_C_STANDARD 90)
@@ -107,7 +107,7 @@ if(SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY)
107107
endif()
108108
mark_as_advanced(FORCE SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY)
109109

110-
set(SECP256K1_ASM "AUTO" CACHE STRING "Assembly optimizations to use: \"AUTO\", \"OFF\", \"x86_64\" or \"arm32\" (experimental). [default=AUTO]")
110+
set(SECP256K1_ASM "AUTO" CACHE STRING "Assembly to use: \"AUTO\", \"OFF\", \"x86_64\" or \"arm32\" (experimental). [default=AUTO]")
111111
set_property(CACHE SECP256K1_ASM PROPERTY STRINGS "AUTO" "OFF" "x86_64" "arm32")
112112
check_string_option_value(SECP256K1_ASM)
113113
if(SECP256K1_ASM STREQUAL "arm32")
@@ -117,7 +117,7 @@ if(SECP256K1_ASM STREQUAL "arm32")
117117
if(HAVE_ARM32_ASM)
118118
add_compile_definitions(USE_EXTERNAL_ASM=1)
119119
else()
120-
message(FATAL_ERROR "ARM32 assembly optimization requested but not available.")
120+
message(FATAL_ERROR "ARM32 assembly requested but not available.")
121121
endif()
122122
elseif(SECP256K1_ASM)
123123
include(CheckX86_64Assembly)
@@ -128,14 +128,14 @@ elseif(SECP256K1_ASM)
128128
elseif(SECP256K1_ASM STREQUAL "AUTO")
129129
set(SECP256K1_ASM "OFF")
130130
else()
131-
message(FATAL_ERROR "x86_64 assembly optimization requested but not available.")
131+
message(FATAL_ERROR "x86_64 assembly requested but not available.")
132132
endif()
133133
endif()
134134

135135
option(SECP256K1_EXPERIMENTAL "Allow experimental configuration options." OFF)
136136
if(NOT SECP256K1_EXPERIMENTAL)
137137
if(SECP256K1_ASM STREQUAL "arm32")
138-
message(FATAL_ERROR "ARM32 assembly optimization is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.")
138+
message(FATAL_ERROR "ARM32 assembly is experimental. Use -DSECP256K1_EXPERIMENTAL=ON to allow.")
139139
endif()
140140
endif()
141141

@@ -280,7 +280,7 @@ message("Parameters:")
280280
message(" ecmult window size .................. ${SECP256K1_ECMULT_WINDOW_SIZE}")
281281
message(" ecmult gen precision bits ........... ${SECP256K1_ECMULT_GEN_PREC_BITS}")
282282
message("Optional features:")
283-
message(" assembly optimization ............... ${SECP256K1_ASM}")
283+
message(" assembly ............................ ${SECP256K1_ASM}")
284284
message(" external callbacks .................. ${SECP256K1_USE_EXTERNAL_DEFAULT_CALLBACKS}")
285285
if(SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY)
286286
message(" wide multiplication (test-only) ..... ${SECP256K1_TEST_OVERRIDE_WIDE_MULTIPLY}")

CONTRIBUTING.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Contributing to libsecp256k1
2+
3+
## Scope
4+
5+
libsecp256k1 is a library for elliptic curve cryptography on the curve secp256k1, not a general-purpose cryptography library.
6+
The library primarily serves the needs of the Bitcoin Core project but provides additional functionality for the benefit of the wider Bitcoin ecosystem.
7+
8+
## Adding new functionality or modules
9+
10+
The libsecp256k1 project welcomes contributions in the form of new functionality or modules, provided they are within the project's scope.
11+
12+
It is the responsibility of the contributors to convince the maintainers that the proposed functionality is within the project's scope, high-quality and maintainable.
13+
Contributors are recommended to provide the following in addition to the new code:
14+
15+
* **Specification:**
16+
A specification can help significantly in reviewing the new code as it provides documentation and context.
17+
It may justify various design decisions, give a motivation and outline security goals.
18+
If the specification contains pseudocode, a reference implementation or test vectors, these can be used to compare with the proposed libsecp256k1 code.
19+
* **Security Arguments:**
20+
In addition to a defining the security goals, it should be argued that the new functionality meets these goals.
21+
Depending on the nature of the new functionality, a wide range of security arguments are acceptable, ranging from being "obviously secure" to rigorous proofs of security.
22+
* **Relevance Arguments:**
23+
The relevance of the new functionality for the Bitcoin ecosystem should be argued by outlining clear use cases.
24+
25+
These are not the only factors taken into account when considering to add new functionality.
26+
The proposed new libsecp256k1 code must be of high quality, including API documentation and tests, as well as featuring a misuse-resistant API design.
27+
28+
We recommend reaching out to other contributors (see [Communication Channels](#communication-channels)) and get feedback before implementing new functionality.
29+
30+
## Communication channels
31+
32+
Most communication about libsecp256k1 occurs on the GitHub repository: in issues, pull request or on the discussion board.
33+
34+
Additionally, there is an IRC channel dedicated to libsecp256k1, with biweekly meetings (see channel topic).
35+
The channel is `#secp256k1` on Libera Chat.
36+
The easiest way to participate on IRC is with the web client, [web.libera.chat](https://web.libera.chat/#secp256k1).
37+
Chat history logs can be found at https://gnusha.org/secp256k1/.
38+
39+
## Contributor workflow & peer review
40+
41+
The Contributor Workflow & Peer Review in libsecp256k1 are similar to Bitcoin Core's workflow and review processes described in its [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md).
42+
43+
### Coding conventions
44+
45+
In addition, libsecp256k1 tries to maintain the following coding conventions:
46+
47+
* No runtime heap allocation (e.g., no `malloc`) unless explicitly requested by the caller (via `secp256k1_context_create` or `secp256k1_scratch_space_create`, for example). Morever, it should be possible to use the library without any heap allocations.
48+
* The tests should cover all lines and branches of the library (see [Test coverage](#coverage)).
49+
* Operations involving secret data should be tested for being constant time with respect to the secrets (see [src/ctime_tests.c](src/ctime_tests.c)).
50+
* Local variables containing secret data should be cleared explicitly to try to delete secrets from memory.
51+
* Use `secp256k1_memcmp_var` instead of `memcmp` (see [#823](https://github.com/bitcoin-core/secp256k1/issues/823)).
52+
53+
#### Style conventions
54+
55+
* Commits should be atomic and diffs should be easy to read. For this reason, do not mix any formatting fixes or code moves with actual code changes. Make sure each individual commit is hygienic: that it builds successfully on its own without warnings, errors, regressions, or test failures.
56+
* New code should adhere to the style of existing, in particular surrounding, code. Other than that, we do not enforce strict rules for code formatting.
57+
* The code conforms to C89. Most notably, that means that only `/* ... */` comments are allowed (no `//` line comments). Moreover, any declarations in a `{ ... }` block (e.g., a function) must appear at the beginning of the block before any statements. When you would like to declare a variable in the middle of a block, you can open a new block:
58+
```C
59+
void secp256k_foo(void) {
60+
unsigned int x; /* declaration */
61+
int y = 2*x; /* declaration */
62+
x = 17; /* statement */
63+
{
64+
int a, b; /* declaration */
65+
a = x + y; /* statement */
66+
secp256k_bar(x, &b); /* statement */
67+
}
68+
}
69+
```
70+
* Use `unsigned int` instead of just `unsigned`.
71+
* Use `void *ptr` instead of `void* ptr`.
72+
* Arguments of the publicly-facing API must have a specific order defined in [include/secp256k1.h](include/secp256k1.h).
73+
* User-facing comment lines in headers should be limited to 80 chars if possible.
74+
* All identifiers in file scope should start with `secp256k1_`.
75+
* Avoid trailing whitespace.
76+
77+
### Tests
78+
79+
#### Coverage
80+
81+
This library aims to have full coverage of reachable lines and branches.
82+
83+
To create a test coverage report, configure with `--enable-coverage` (use of GCC is necessary):
84+
85+
$ ./configure --enable-coverage
86+
87+
Run the tests:
88+
89+
$ make check
90+
91+
To create a report, `gcovr` is recommended, as it includes branch coverage reporting:
92+
93+
$ gcovr --exclude 'src/bench*' --print-summary
94+
95+
To create a HTML report with coloured and annotated source code:
96+
97+
$ mkdir -p coverage
98+
$ gcovr --exclude 'src/bench*' --html --html-details -o coverage/coverage.html
99+
100+
#### Exhaustive tests
101+
102+
There are tests of several functions in which a small group replaces secp256k1.
103+
These tests are *exhaustive* since they provide all elements and scalars of the small group as input arguments (see [src/tests_exhaustive.c](src/tests_exhaustive.c)).
104+
105+
### Benchmarks
106+
107+
See `src/bench*.c` for examples of benchmarks.

Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ noinst_HEADERS += src/field_10x26_impl.h
3737
noinst_HEADERS += src/field_5x52.h
3838
noinst_HEADERS += src/field_5x52_impl.h
3939
noinst_HEADERS += src/field_5x52_int128_impl.h
40-
noinst_HEADERS += src/field_5x52_asm_impl.h
4140
noinst_HEADERS += src/modinv32.h
4241
noinst_HEADERS += src/modinv32_impl.h
4342
noinst_HEADERS += src/modinv64.h
@@ -46,6 +45,7 @@ noinst_HEADERS += src/precomputed_ecmult.h
4645
noinst_HEADERS += src/precomputed_ecmult_gen.h
4746
noinst_HEADERS += src/assumptions.h
4847
noinst_HEADERS += src/checkmem.h
48+
noinst_HEADERS += src/testutil.h
4949
noinst_HEADERS += src/util.h
5050
noinst_HEADERS += src/int128.h
5151
noinst_HEADERS += src/int128_impl.h

0 commit comments

Comments
 (0)