Lines Matching refs:accumulator
78 mbedtls_sha512_starts( &ctx->accumulator, 0 ); in mbedtls_entropy_init()
80 mbedtls_sha256_starts( &ctx->accumulator, 0 ); in mbedtls_entropy_init()
191 mbedtls_sha512_update( &ctx->accumulator, header, 2 ); in entropy_update()
192 mbedtls_sha512_update( &ctx->accumulator, p, use_len ); in entropy_update()
194 mbedtls_sha256_update( &ctx->accumulator, header, 2 ); in entropy_update()
195 mbedtls_sha256_update( &ctx->accumulator, p, use_len ); in entropy_update()
336 mbedtls_sha512_finish( &ctx->accumulator, buf ); in mbedtls_entropy_func()
341 memset( &ctx->accumulator, 0, sizeof( mbedtls_sha512_context ) ); in mbedtls_entropy_func()
342 mbedtls_sha512_starts( &ctx->accumulator, 0 ); in mbedtls_entropy_func()
343 mbedtls_sha512_update( &ctx->accumulator, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()
350 mbedtls_sha256_finish( &ctx->accumulator, buf ); in mbedtls_entropy_func()
355 memset( &ctx->accumulator, 0, sizeof( mbedtls_sha256_context ) ); in mbedtls_entropy_func()
356 mbedtls_sha256_starts( &ctx->accumulator, 0 ); in mbedtls_entropy_func()
357 mbedtls_sha256_update( &ctx->accumulator, buf, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_entropy_func()