I think I need to move the newly static variables to the random_state

structure; remind myself in the cooments. Also regroup all the Yarrow
variables at the top of the variable list; they are "special".
(no functional change).
This commit is contained in:
Mark Murray 2000-07-11 18:35:33 +00:00
parent bc2a5e683a
commit 7978f67e28
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62967
2 changed files with 10 additions and 12 deletions

View File

@ -101,13 +101,12 @@ random_deinit(void)
static void
reseed(int fastslow)
{
/*
* Allocate the huge variables statically. They _will_ run you
* out of interrupt-context stack otherwise!
*/
static BF_KEY hashkey;
/* Interrupt-context stack is a limited resource; make static */
/* large structures; XXX Revisit - needs to move to the large */
/* random_state structure. */
static unsigned char v[TIMEBIN][KEYSIZE]; /* v[i] */
unsigned char hash[KEYSIZE]; /* h' */
unsigned char hash[KEYSIZE]; /* h' */
static BF_KEY hashkey;
unsigned char ivec[8];
unsigned char temp[KEYSIZE];
struct entropy *bucket;

View File

@ -101,13 +101,12 @@ random_deinit(void)
static void
reseed(int fastslow)
{
/*
* Allocate the huge variables statically. They _will_ run you
* out of interrupt-context stack otherwise!
*/
static BF_KEY hashkey;
/* Interrupt-context stack is a limited resource; make static */
/* large structures; XXX Revisit - needs to move to the large */
/* random_state structure. */
static unsigned char v[TIMEBIN][KEYSIZE]; /* v[i] */
unsigned char hash[KEYSIZE]; /* h' */
unsigned char hash[KEYSIZE]; /* h' */
static BF_KEY hashkey;
unsigned char ivec[8];
unsigned char temp[KEYSIZE];
struct entropy *bucket;