]>
git.saurik.com Git - apple/xnu.git/blob - EXTERNAL_HEADERS/corecrypto/ccrng.h
5 * Created by Fabrice Gautier on 12/13/10.
6 * Copyright 2010 Apple, Inc. All rights reserved.
11 #ifndef _CORECRYPTO_CCRNG_H_
12 #define _CORECRYPTO_CCRNG_H_
16 #define CCRNG_STATE_COMMON \
17 int (*generate)(struct ccrng_state *rng, unsigned long outlen, void *out);
19 /* default state structure - do not instantiate, instead use the specific one you need */
24 #define ccrng_generate(ctx, outlen, out) ((ctx)->generate((ctx), (outlen), (out)))
26 #endif /* _CORECRYPTO_CCRNG_H_ */