~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/lib/crypto/crypto_tests/t_prng.reseedtest-comments

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
The reseedtest is intended to allow confirmation that if sufficient
2
 
entropy is provided then the PRNG will reseed (well initially seed)
3
 
itself before the first random data is requested.  This test is not
4
 
useful to run in an automated manner because the point is to look at
5
 
internal function call order.
6
 
 
7
 
To test this, set a break point at krb5int_yarrow_reseed and
8
 
krb5_c_random_make_octets and run the test.  The reseed function
9
 
should be called with a pool of 1 (YARROW_SLOW_POOL) before
10
 
krb5_c_random_make_octets is called.
11
 
 
12
 
A slow reseed should require two sources to reach sufficient entropy.
13
 
Sources  start out sending entropy to fast pool then alternate with
14
 
slow pool.  So this test does the following:
15
 
* Seed source 1
16
 
* Seed source 1 (this time to slow pool)
17
 
* Seed source 0
18
 
* Seed source 0 (to slow pool triggering reseed)
19
 
* Output some random data
20
 
 
21