-
- Downloads
hashx: Rust hook for inspecting and modifying the random number stream
This patch has no effect on the C tor build.
Adds a function hashx_rng_callback() to the hashx API, defined only
when HASHX_RNG_CALLBACK is defined. This is then used in the Rust
wrapper to implement a similar rng_callback().
Included some minimal test cases. This code is intented for
use in cross-compatibility fuzzing tests which drive multiple
implementations of hashx with the same custom Rng stream.
Signed-off-by:
Micah Elizabeth Scott <beth@torproject.org>
Showing
- src/ext/equix/Cargo.toml 1 addition, 1 deletionsrc/ext/equix/Cargo.toml
- src/ext/equix/build.rs 3 additions, 0 deletionssrc/ext/equix/build.rs
- src/ext/equix/hashx/include/hashx.h 19 additions, 0 deletionssrc/ext/equix/hashx/include/hashx.h
- src/ext/equix/hashx/src/context.c 10 additions, 0 deletionssrc/ext/equix/hashx/src/context.c
- src/ext/equix/hashx/src/program.c 4 additions, 0 deletionssrc/ext/equix/hashx/src/program.c
- src/ext/equix/hashx/src/program.h 4 additions, 0 deletionssrc/ext/equix/hashx/src/program.h
- src/ext/equix/hashx/src/siphash_rng.c 10 additions, 0 deletionssrc/ext/equix/hashx/src/siphash_rng.c
- src/ext/equix/hashx/src/siphash_rng.h 4 additions, 0 deletionssrc/ext/equix/hashx/src/siphash_rng.h
- src/ext/equix/src/lib.rs 101 additions, 15 deletionssrc/ext/equix/src/lib.rs
Please register or sign in to comment