Lines Matching full:source
30 memset(ctx->source, 0, sizeof(ctx->source)); in mbedtls_entropy_init()
82 mbedtls_platform_zeroize(ctx->source, sizeof(ctx->source)); in mbedtls_entropy_free()
104 ctx->source[idx].f_source = f_source; in mbedtls_entropy_add_source()
105 ctx->source[idx].p_source = p_source; in mbedtls_entropy_add_source()
106 ctx->source[idx].threshold = threshold; in mbedtls_entropy_add_source()
107 ctx->source[idx].strong = strong; in mbedtls_entropy_add_source()
214 if (ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG) { in entropy_gather_internal()
219 if ((ret = ctx->source[i].f_source(ctx->source[i].p_source, in entropy_gather_internal()
232 ctx->source[i].size += olen; in entropy_gather_internal()
315 if (ctx->source[i].size < ctx->source[i].threshold) { in mbedtls_entropy_func()
318 if (ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG) { in mbedtls_entropy_func()
319 strong_size += ctx->source[i].size; in mbedtls_entropy_func()
363 ctx->source[i].size = 0; in mbedtls_entropy_func()
484 * Dummy source function
542 * - The entropy source is not providing only 0s (all bits unset) or 1s (all
544 * - The entropy source is not providing values in a pattern. Because the
546 * the hardware entropy source twice and compares the result to ensure they
548 * - The error code returned by the entropy source is not an error.
578 /* Make sure that the entropy source is not returning values in a in mbedtls_entropy_source_self_test()