Skip to content
Snippets Groups Projects
Commit a3513dea authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

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: default avatarMicah Elizabeth Scott <beth@torproject.org>
parent 5a4f92ea
No related branches found
No related tags found
1 merge request!712HashX bugfix and error path refactoring, for issue 40794
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment