[tor-bugs] #23066 [Core Tor/Tor]: Test granularity, distribution, and inner range of crypto_rand* functions

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jul 31 10:02:08 UTC 2017


#23066: Test granularity, distribution, and inner range of crypto_rand* functions
------------------------------+----------------------------------------
     Reporter:  teor          |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  technical-debt, test, easy
Actual Points:                |  Parent ID:
       Points:  1             |   Reviewer:
      Sponsor:                |
------------------------------+----------------------------------------
 In #23061, we added tests for crypto_rand_double() that test:
 * granularity: low bits being non-zero,
 * distribution: some values above and below half, and
 * inner range: mock crypto_rand() and generate lowest and highest valid
 results.

 We should do the same for:
 * crypto_rand()
 * crypto_rand_int()
 * crypto_rand_int_range()
 * crypto_rand_uint64()
 * crypto_rand_uint64_range()
 * crypto_rand_time_range()
 * crypto_rand_hostname()

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23066>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list