diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 | 
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /random128/random128.h | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'random128/random128.h')
| -rw-r--r-- | random128/random128.h | 41 | 
1 files changed, 41 insertions, 0 deletions
| diff --git a/random128/random128.h b/random128/random128.h new file mode 100644 index 0000000..6f18a90 --- /dev/null +++ b/random128/random128.h @@ -0,0 +1,41 @@ +#ifndef	random128_h +#define	random128_h + +/* +** Copyright 1998 - 2002 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +#ifdef	__cplusplus +extern "C" { +#endif + +/* +	random128 returns 128 random bits from the entropy.  random128 +	returns a pointer to 32 hexadecimal uppercase nibbles, all total +	being 128 bits. +*/ + +const char *random128(); + +/* +	random128_alpha does the same thing, except that the return +	string contains uppercase alphabetic letters only (letters 'A' +	through 'P'). +*/ + +const char *random128_alpha(); + +/* +** random128_bin(), saves the 128 random bits in 16 bytes. +*/ + +typedef unsigned char random128binbuf[16]; + +void random128_binary(random128binbuf *); + +#ifdef	__cplusplus +} +#endif + +#endif | 
