Lines Matching refs:accumulator
438 #error "Unsupported entropy accumulator"
440 mbedtls_md_context_t accumulator;
463 mbedtls_md_init( &accumulator );
479 // Init accumulator
481 TEST_ASSERT( mbedtls_md_setup( &accumulator, md_info, 0 ) == 0 );
485 TEST_ASSERT( mbedtls_md_starts( &accumulator ) == 0 );
486 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 );
487 TEST_ASSERT( mbedtls_md_update( &accumulator,
489 TEST_ASSERT( mbedtls_md_finish( &accumulator, buf ) == 0 );
491 TEST_ASSERT( mbedtls_md_starts( &accumulator ) == 0 );
492 TEST_ASSERT( mbedtls_md_update( &accumulator,
500 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 );
501 TEST_ASSERT( mbedtls_md_update( &accumulator,
505 TEST_ASSERT( mbedtls_md_update( &accumulator, header, 2 ) == 0 );
506 TEST_ASSERT( mbedtls_md_update( &accumulator,
508 TEST_ASSERT( mbedtls_md_finish( &accumulator, buf ) == 0 );
518 mbedtls_md_free( &accumulator );