File: random.h

package info (click to toggle)
wipe 0.24-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 468 kB
  • sloc: ansic: 1,925; makefile: 93; perl: 85; sh: 27
file content (48 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* wipe
 * 
 * by Berke Durak
 *
 * Header file for cryptographically-strong (as well as weak)
 * random data generation routines
 *
 */

#ifndef RANDOM_H
#define RANDOM_H

#ifndef U32U16U8
typedef unsigned long u32;
typedef unsigned short u16;
typedef unsigned char u8;
#define U32U16U8
#endif

void rand_Init ();
#define rand_Get32 rand_Get32p
#define rand_Fill rand_Fillp
#if 0
u32 rand_Get32 ();
#endif

extern u32 (*rand_Get32p) ();
extern void (*rand_Fill) (u8 *, int);

extern char *o_devrandom;
#define o_randomcmd o_devrandom
extern int o_randseed;
extern int o_randalgo;
extern char **environ;

#define RANDS_DEVRANDOM 0
#define RANDS_PIPE 1
#define RANDS_PID 2

#define RANDA_LIBC 0
#define RANDA_RC6 1
#define RANDA_ARCFOUR 2

#define RAND_ARCFOUR_EXTRA 8192

#endif

/* vim:set sw=4:set ts=8: */