Lines Matching refs: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()