moved type and constants for random data to include file;

added consistency check in random; added source of randomness
internal to random using timing; only retrieve random bins that are full.
This commit is contained in:
Ben Gras
2009-04-02 15:24:44 +00:00
parent 51596bc608
commit 9647fbc94e
19 changed files with 177 additions and 80 deletions

View File

@@ -2,6 +2,7 @@
#define TYPE_H
#include <minix/com.h>
#include <ibm/interrupt.h>
typedef _PROTOTYPE( void task_t, (void) );
@@ -27,14 +28,6 @@ struct boot_image {
endpoint_t endpoint; /* endpoint number when started */
};
struct randomness {
struct {
int r_next; /* next index to write */
int r_size; /* number of random elements */
unsigned short r_buf[RANDOM_ELEMENTS]; /* buffer for random info */
} bin[RANDOM_SOURCES];
};
typedef unsigned long irq_policy_t;
typedef unsigned long irq_id_t;