Lines Matching full:dt
30 * Note: DT is our counter value
42 unsigned char DT[DEFAULT_BLK_SZ]; member
90 hexdump("Input DT: ", ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
105 memcpy(tmp, ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
160 * Now update our DT value in _get_more_prng_bytes()
163 ctx->DT[i] += 1; in _get_more_prng_bytes()
164 if (ctx->DT[i] != 0) in _get_more_prng_bytes()
171 hexdump("Output DT: ", ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
277 const unsigned char *V, const unsigned char *DT) in reset_prng_context() argument
295 if (DT) in reset_prng_context()
296 memcpy(ctx->DT, DT, DEFAULT_BLK_SZ); in reset_prng_context()
298 memset(ctx->DT, 0, DEFAULT_BLK_SZ); in reset_prng_context()
359 * interpreted as the tuple { V KEY DT}
360 * V and KEY are required during reset, and DT is optional, detected
368 const u8 *dt = NULL; in cprng_reset() local
374 dt = key + DEFAULT_PRNG_KSZ; in cprng_reset()
376 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset()