Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / random128 / random128.h
CommitLineData
d9898ee8 1#ifndef random128_h
2#define random128_h
3
4/*
5** Copyright 1998 - 2002 Double Precision, Inc.
6** See COPYING for distribution information.
7*/
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12static const char random128_h_rcsid[]="$Id: random128.h,v 1.4 2002/07/01 03:17:05 mrsam Exp $";
13
14/*
15 random128 returns 128 random bits from the entropy. random128
16 returns a pointer to 32 hexadecimal uppercase nibbles, all total
17 being 128 bits.
18*/
19
20const char *random128();
21
22/*
23 random128_alpha does the same thing, except that the return
24 string contains uppercase alphabetic letters only (letters 'A'
25 through 'P').
26*/
27
28const char *random128_alpha();
29
30/*
31** random128_bin(), saves the 128 random bits in 16 bytes.
32*/
33
34typedef unsigned char random128binbuf[16];
35
36void random128_binary(random128binbuf *);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif