[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs