dkrandc.h File Reference

Constants for allowed PRNG types and error codes. More...

Go to the source code of this file.

Defines

#define DK_RAND_ALLOW_SEED_FILE   1
 Seeding from file is allowed.
#define DK_RAND_TYPE_NONE   0
 No PRNG type found (yet).
#define DK_RAND_TYPE_OPENSSL   2
 PRNG: OpenSSL.
#define DK_RAND_TYPE_STATE   4
 PRNG: state().
#define DK_RAND_TYPE_RAND48   8
 PRNG: rand48().
#define DK_RAND_TYPE_SIMPLE   16
 PRNG: rand().
#define DK_RAND_OSSL_PRNG_SEED_BYTES   1024
 Number of seed bytes to save for OpenSSL PRNG.
#define DK_RAND_TYPE_ALL
 All PRNG types.
#define DK_RAND_TYPE_CRYPTO   (DK_RAND_TYPE_OPENSSL)
 PRNGs to use for cryptographic purposes.
#define DK_RAND_ERR_NONE   0x00000000UL
 Information: No error occured.
#define DK_RAND_ERR_NO_PRNG   0x00000001UL
 ERROR: No usable PRNG found.
#define DK_RAND_ERR_UNSECURE_PRNG   0x00000002UL
 ERROR: Only predictable PRNGs available.
#define DK_RAND_ERR_NO_SEED   0x00000004UL
 ERROR: No seed source found.
#define DK_RAND_ERR_INVALID_ARGS   0x00000008UL
 ERROR: Invalid arguments.
#define DK_RAND_ERR_OPENSSL_NOT_SUPPORTED   0x00000010UL
 ERROR: No support for OpenSSL.
#define DK_RAND_ERR_NO_MEMORY   0x00000020UL
 ERROR: Not enough memory.


Detailed Description

Constants for allowed PRNG types and error codes.


Define Documentation

#define DK_RAND_ALLOW_SEED_FILE   1

Seeding from file is allowed.

#define DK_RAND_ERR_INVALID_ARGS   0x00000008UL

ERROR: Invalid arguments.

#define DK_RAND_ERR_NO_MEMORY   0x00000020UL

ERROR: Not enough memory.

#define DK_RAND_ERR_NO_PRNG   0x00000001UL

ERROR: No usable PRNG found.

#define DK_RAND_ERR_NO_SEED   0x00000004UL

ERROR: No seed source found.

#define DK_RAND_ERR_NONE   0x00000000UL

Information: No error occured.

#define DK_RAND_ERR_OPENSSL_NOT_SUPPORTED   0x00000010UL

ERROR: No support for OpenSSL.

#define DK_RAND_ERR_UNSECURE_PRNG   0x00000002UL

ERROR: Only predictable PRNGs available.

#define DK_RAND_OSSL_PRNG_SEED_BYTES   1024

Number of seed bytes to save for OpenSSL PRNG.

#define DK_RAND_TYPE_ALL

#define DK_RAND_TYPE_CRYPTO   (DK_RAND_TYPE_OPENSSL)

PRNGs to use for cryptographic purposes.

#define DK_RAND_TYPE_NONE   0

No PRNG type found (yet).

#define DK_RAND_TYPE_OPENSSL   2

PRNG: OpenSSL.

#define DK_RAND_TYPE_RAND48   8

PRNG: rand48().

#define DK_RAND_TYPE_SIMPLE   16

PRNG: rand().

#define DK_RAND_TYPE_STATE   4

PRNG: state().


Generated on Thu Feb 25 13:48:24 2010 for dklibs by  doxygen 1.5.8