- void (*init)(struct cckprng_ctx *ctx,
- unsigned max_ngens,
- size_t entropybuf_nbytes,
- const void *entropybuf,
- const uint32_t *entropybuf_nsamples,
- size_t seed_nbytes,
- const void *seed,
- size_t nonce_nbytes,
- const void *nonce);
- void (*initgen)(struct cckprng_ctx *ctx, unsigned gen_idx);
- void (*reseed)(struct cckprng_ctx *ctx, size_t nbytes, const void *seed);
- void (*refresh)(struct cckprng_ctx *ctx);
- void (*generate)(struct cckprng_ctx *ctx, unsigned gen_idx, size_t nbytes, void *out);
+ void (*CC_SPTR(cckprng_funcs, init))(struct cckprng_ctx *ctx,
+ unsigned max_ngens,
+ size_t entropybuf_nbytes,
+ const void *entropybuf,
+ const uint32_t *entropybuf_nsamples,
+ size_t seed_nbytes,
+ const void *seed,
+ size_t nonce_nbytes,
+ const void *nonce);
+ void (*CC_SPTR(cckprng_funcs, initgen))(struct cckprng_ctx *ctx, unsigned gen_idx);
+ void (*CC_SPTR(cckprng_funcs, reseed))(struct cckprng_ctx *ctx, size_t nbytes, const void *seed);
+ void (*CC_SPTR(cckprng_funcs, refresh))(struct cckprng_ctx *ctx);
+ void (*CC_SPTR(cckprng_funcs, generate))(struct cckprng_ctx *ctx, unsigned gen_idx, size_t nbytes, void *out);
+ void (*CC_SPTR(cckprng_funcs, init_with_getentropy))(struct cckprng_ctx *ctx,
+ unsigned max_ngens,
+ size_t seed_nbytes,
+ const void *seed,
+ size_t nonce_nbytes,
+ const void *nonce,
+ cckprng_getentropy getentropy,
+ void *getentropy_arg);