Lines Matching refs:accumulator
2 * Entropy accumulator implementation
37 mbedtls_md_init(&ctx->accumulator);
73 mbedtls_md_free(&ctx->accumulator);
118 * Entropy accumulator update
142 * Start the accumulator if this has not already happened. Note that
143 * it is sufficient to start the accumulator here only because all calls to
147 ret = mbedtls_md_setup(&ctx->accumulator,
152 ret = mbedtls_md_starts(&ctx->accumulator);
158 if ((ret = mbedtls_md_update(&ctx->accumulator, header, 2)) != 0) {
161 ret = mbedtls_md_update(&ctx->accumulator, p, use_len);
192 * Run through the different sources to add entropy to our accumulator
323 * Note that at this stage it is assumed that the accumulator was started
327 if ((ret = mbedtls_md_finish(&ctx->accumulator, buf)) != 0) {
332 * Reset accumulator and counters and recycle existing entropy
334 mbedtls_md_free(&ctx->accumulator);
335 mbedtls_md_init(&ctx->accumulator);
336 ret = mbedtls_md_setup(&ctx->accumulator,
341 ret = mbedtls_md_starts(&ctx->accumulator);
345 if ((ret = mbedtls_md_update(&ctx->accumulator, buf,
631 * - collect entropy 8 times and OR the result in an accumulator: