|
Coda Distributed File System
|
#include <sys/types.h>#include <sys/times.h>#include <sys/time.h>#include <time.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <unistd.h>#include <assert.h>#include <rpc2/secure.h>#include "aes.h"#include "grunt.h"
Macros | |
| #define | RND_KEY_BITS 128 /* or 192, 256... */ |
| #define | INITIAL_SEED_LENGTH (AES_BLOCK_SIZE + bytes(RND_KEY_BITS)) |
| #define | RANDOM_DEVICE "/dev/urandom" |
| #define | TESTSIZE (20000 / (sizeof(uint32_t) * 8)) |
Functions | |
| void | secure_random_init (int verbose) |
| void | secure_random_release (void) |
| void | secure_random_bytes (void *random, size_t len) |
| #define INITIAL_SEED_LENGTH (AES_BLOCK_SIZE + bytes(RND_KEY_BITS)) |
| #define RANDOM_DEVICE "/dev/urandom" |
| #define RND_KEY_BITS 128 /* or 192, 256... */ |
| void secure_random_bytes | ( | void * | random, |
| size_t | len | ||
| ) |
| void secure_random_init | ( | int | verbose | ) |
| void secure_random_release | ( | void | ) |