diff options
Diffstat (limited to 'src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c')
-rw-r--r-- | src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c b/src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c index fbae288..42a5be2 100644 --- a/src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c +++ b/src/lib/crypto/krb/prng/fortuna/t_fortuna_make_oct.c @@ -35,7 +35,7 @@ #include "fortuna.h" #include <k5-int.h> -#define LEN_TEST_BUF 4096 +#define LEN_TEST_BUF 1024 static int len = LEN_TEST_BUF; static void hex_print( FILE* f, const char* var, void* data, size_t size ); @@ -52,7 +52,15 @@ main(int argc, char **argv) krb5_c_random_make_octets(NULL, &data); - hex_print( stdout, "random", data.data, data.length ); + hex_print( stdout, "random1", data.data, data.length ); + + /* To target FORTUNA_RESEED_BYTE */ + i = 0; + while (i++ < 11){ + krb5_c_random_make_octets(NULL, &data); + } + + hex_print( stdout, "random2", data.data, data.length ); return 0; } |