]> git.ipfire.org Git - thirdparty/tor.git/commit
Use NSS in crypto_rand.c
authorNick Mathewson <nickm@torproject.org>
Fri, 13 Jul 2018 18:35:51 +0000 (14:35 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2018 23:46:00 +0000 (19:46 -0400)
commit60705a5719d929a5f3180bc4e6906f972855f84b
tree01ac15d5c956b5cdc0cf7a9ee31296c7b7e7afaa
parentbe8d497b656b674e33726f49d9829cc03fccea09
Use NSS in crypto_rand.c

This is comparatively straightforward too, except for a couple of
twists:

   * For as long as we're building with two crypto libraries, we
     want to seed _both_ their RNGs, and use _both_ their RNGs to
     improve the output of crypto_strongest_rand()

   * The NSS prng will sometimes refuse to generate huge outputs.
     When it does, we stretch the output with SHAKE.  We only need
     this for the tests.
src/lib/crypt_ops/crypto_rand.c
src/test/test-timers.c