-
- Downloads
equix: API changes for new result codes and hashx compatibility
This change adapts Equi-X to the corresponding HashX API changes that
added HASHX_TRY_COMPILE. The new regularized HashX return codes are
reflected by revised corresponding Equi-X return codes.
Both solve and verify operations now return an error/success code, and a
new equix_solutions_buffer struct includes both the solution buffer
and information about the solution count and hashx implementation.
With this change, it's possible to discern between hash construction
failures (invalid seed) and some external error like an mprotect()
failure.
Signed-off-by:
Micah Elizabeth Scott <beth@torproject.org>
parent
5a4f92ea
No related branches found
No related tags found
Showing
- src/ext/equix/include/equix.h 39 additions, 18 deletionssrc/ext/equix/include/equix.h
- src/ext/equix/src/bench.c 25 additions, 19 deletionssrc/ext/equix/src/bench.c
- src/ext/equix/src/context.c 15 additions, 10 deletionssrc/ext/equix/src/context.c
- src/ext/equix/src/equix.c 51 additions, 19 deletionssrc/ext/equix/src/equix.c
- src/ext/equix/src/solver.c 2 additions, 1 deletionsrc/ext/equix/src/solver.c
- src/ext/equix/src/tests.c 33 additions, 28 deletionssrc/ext/equix/src/tests.c
Loading
Please register or sign in to comment