/macosx-10.10/CommonCrypto-60061/lib/ |
H A D | CommonRandom.c | 112 #define DRBG_RNG_STATE(X) (X)->state.drbg.rng_state 113 #define DRBG_DRBG_STATE(X) (X)->state.drbg.drbg_state 114 #define DRBG_INFO(X) (X)->state.drbg.info 117 ccInitDRBG(ccInternalRandomRef drbg, struct ccdrbg_nistctr_custom *options, int function_options) argument 121 drbg->rngtype = rng_created; 122 if((DRBG_INFO(drbg) = CC_XMALLOC(sizeof(struct ccdrbg_info))) == NULL) goto errOut; 123 ccdrbg_factory_nistctr(DRBG_INFO(drbg), options); 124 if((DRBG_DRBG_STATE(drbg) = CC_XMALLOC(DRBG_INFO(drbg)->size)) == NULL) goto errOut; 125 if((DRBG_RNG_STATE(drbg) 167 ccInternalRandomRef drbg = &globals->drbg; local [all...] |
H A D | CommonRandomPriv.h | 35 drbg_rng drbg; member in union:__CCRandom::__anon444
|
H A D | ccGlobals.h | 69 ccInternalRandom drbg; member in struct:cc_globals_s
|
/macosx-10.10/xnu-2782.1.97/osfmk/corecrypto/ccdbrg/src/ |
H A D | ccdrbg_nisthmac.c | 36 // http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip 156 static int hmac_dbrg_update(struct ccdrbg_state *drbg, argument 162 struct ccdrbg_nisthmac_state *state = (struct ccdrbg_nisthmac_state *)drbg; 220 static int hmac_dbrg_instantiate_algorithm(struct ccdrbg_state *drbg, argument 227 struct ccdrbg_nisthmac_state *state=(struct ccdrbg_nisthmac_state *)drbg; 238 hmac_dbrg_update(drbg, entropyLength, entropy, nonceLength, nonce, psLength, ps); 248 static int init(const struct ccdrbg_info *info, struct ccdrbg_state *drbg, argument 253 struct ccdrbg_nisthmac_state *state=(struct ccdrbg_nisthmac_state *)drbg; 279 hmac_dbrg_instantiate_algorithm(drbg, entropyLength, entropy, nonceLength, nonce, psLength, ps); 311 static int reseed(struct ccdrbg_state *drbg, argument 343 generate(struct ccdrbg_state *drbg, unsigned long numBytes, void *outBytes, unsigned long inputLen, const void *input) argument 390 done(struct ccdrbg_state *drbg) argument [all...] |
/macosx-10.10/xnu-2782.1.97/EXTERNAL_HEADERS/corecrypto/ |
H A D | ccdrbg.h | 43 CC_INLINE size_t ccdrbg_context_size(const struct ccdrbg_info *drbg) argument 45 return drbg->size; 49 struct ccdrbg_state *drbg, 54 return info->init(info, drbg, entropyLength, entropy, nonceLength, nonce, psLength, ps); 48 ccdrbg_init(const struct ccdrbg_info *info, struct ccdrbg_state *drbg, unsigned long entropyLength, const void* entropy, unsigned long nonceLength, const void* nonce, unsigned long psLength, const void* ps) argument
|
H A D | ccdrbg_impl.h | 13 /* opaque drbg structure */ 28 int (*init)(const struct ccdrbg_info *info, struct ccdrbg_state *drbg,
|
/macosx-10.10/CommonCrypto-60061/test/CommonCrypto/ |
H A D | CommonRandom.c | 56 struct ccrng_state *drbg = NULL; 83 drbg = ccDRBGGetRngState(); 84 is(drbg,NULL, "ccDRBGGetRngState /dev/random exhaustion"); 105 drbg = ccDRBGGetRngState(); 106 isnt(drbg,NULL, "DRBG first state ok"); 115 is(ccrng_generate(drbg, len, buf6),0, "Random success");
|
/macosx-10.10/xnu-2782.1.97/osfmk/prng/ |
H A D | prng_yarrow.c | 295 struct ccdrbg_state *drbg, 305 YarrowContextp yp = (YarrowContextp) drbg; 293 yarrow_init( const struct ccdrbg_info *info, struct ccdrbg_state *drbg, unsigned long entropyLength, const void* entropy, unsigned long nonceLength, const void* nonce, unsigned long psLength, const void* ps) argument
|