comparison random.c @ 759:76fba0856749 ecc

More changes for KEX and ECDH. Set up hash descriptors, make ECC code work, ses.hash and ses.session_id are now buffers (doesn't compile)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Mar 2013 00:28:09 +0800
parents b07eb3dc23ec
children ac2158e3e403
comparison
equal deleted inserted replaced
758:1c607a62d235 759:76fba0856749
25 #include "includes.h" 25 #include "includes.h"
26 #include "buffer.h" 26 #include "buffer.h"
27 #include "dbutil.h" 27 #include "dbutil.h"
28 #include "bignum.h" 28 #include "bignum.h"
29 #include "random.h" 29 #include "random.h"
30 #include "ltc_prng.h"
31
30 32
31 /* this is used to generate unique output from the same hashpool */ 33 /* this is used to generate unique output from the same hashpool */
32 static uint32_t counter = 0; 34 static uint32_t counter = 0;
33 /* the max value for the counter, so it won't integer overflow */ 35 /* the max value for the counter, so it won't integer overflow */
34 #define MAX_COUNTER 1<<30 36 #define MAX_COUNTER 1<<30