Implement and test probability distributions used by WTF-PAD.
This project introduces the prob_distr.c subsystem which implements all the probability distributions that WTF-PAD needs. It also adds unittests for all of them. Code and tests courtesy of Riastradh. Co-authored-by:Taylor R Campbell <campbell+tor@mumble.net> Co-authored-by:
Mike Perry <mikeperry-git@torproject.org>
Showing
- src/core/or/circuitpadding.c 4 additions, 4 deletionssrc/core/or/circuitpadding.c
- src/lib/crypt_ops/crypto_rand.c 11 additions, 0 deletionssrc/lib/crypt_ops/crypto_rand.c
- src/lib/crypt_ops/crypto_rand.h 1 addition, 0 deletionssrc/lib/crypt_ops/crypto_rand.h
- src/lib/math/.may_include 2 additions, 0 deletionssrc/lib/math/.may_include
- src/lib/math/fp.c 25 additions, 0 deletionssrc/lib/math/fp.c
- src/lib/math/fp.h 1 addition, 0 deletionssrc/lib/math/fp.h
- src/lib/math/include.am 4 additions, 2 deletionssrc/lib/math/include.am
- src/lib/math/prob_distr.c 1628 additions, 0 deletionssrc/lib/math/prob_distr.c
- src/lib/math/prob_distr.h 156 additions, 0 deletionssrc/lib/math/prob_distr.h
- src/test/include.am 2 additions, 0 deletionssrc/test/include.am
- src/test/prob_distr_mpfr_ref.c 64 additions, 0 deletionssrc/test/prob_distr_mpfr_ref.c
- src/test/test.c 1 addition, 0 deletionssrc/test/test.c
- src/test/test.h 2 additions, 0 deletionssrc/test/test.h
- src/test/test_prob_distr.c 1414 additions, 0 deletionssrc/test/test_prob_distr.c
- src/test/test_slow.c 1 addition, 0 deletionssrc/test/test_slow.c
Loading
Please register or sign in to comment