CommonRandomPriv.h [plain text]
#ifndef CommonCrypto_CommonRandomPriv_h
#define CommonCrypto_CommonRandomPriv_h
#include <corecrypto/ccdrbg.h>
typedef union {
struct ccdrbg_nistctr_custom nistctr_custom;
struct ccdrbg_nisthmac_custom nisthmac_custom;
} drbg_custom;
typedef struct drbgrng_t {
struct ccdrbg_info *info;
struct ccdrbg_state *drbg_state;
} drbg_context;
typedef enum {
rng_default=1, rng_created=99
}rng_type_t;
typedef struct __CCRandom {
rng_type_t rngtype;
uint32_t drbgtype;
struct ccrng_state *rng; drbg_custom custom; drbg_context drbg; int status;
} ccInternalRandom, *ccInternalRandomRef;
#endif