Mercurial > dropbear
diff random.c @ 351:e66eec4dcba7 debug-unrandom
some more debugging output
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 08 Aug 2006 15:31:38 +0000 |
parents | 381834084475 |
children | c61bd8f9e32d |
line wrap: on
line diff
--- a/random.c Sun Aug 06 15:29:41 2006 +0000 +++ b/random.c Tue Aug 08 15:31:38 2006 +0000 @@ -71,6 +71,8 @@ hash_state hs; unsigned char hash[SHA1_HASH_SIZE]; unsigned int copylen; + const unsigned int total_len = len; + unsigned char* start_buf = buf; if (!donerandinit) { dropbear_exit("seedrandom not done"); @@ -93,6 +95,7 @@ buf += copylen; } m_burn(hash, sizeof(hash)); + printhex("genrandom", start_buf, total_len); } /* Generates a random mp_int.