Lines Matching refs:accumulator
101 mbedtls_sha512_init( &ctx->accumulator ); in mbedtls_entropy_init()
103 mbedtls_sha256_init( &ctx->accumulator ); in mbedtls_entropy_init()
161 mbedtls_sha512_free( &ctx->accumulator ); in mbedtls_entropy_free()
163 mbedtls_sha256_free( &ctx->accumulator ); in mbedtls_entropy_free()
242 ( ret = mbedtls_sha512_starts_ret( &ctx->accumulator, 0 ) ) != 0 ) in entropy_update()
246 if( ( ret = mbedtls_sha512_update_ret( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update()
248 ret = mbedtls_sha512_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
251 ( ret = mbedtls_sha256_starts_ret( &ctx->accumulator, 0 ) ) != 0 ) in entropy_update()
255 if( ( ret = mbedtls_sha256_update_ret( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update()
257 ret = mbedtls_sha256_update_ret( &ctx->accumulator, p, use_len ); in entropy_update()
411 if( ( ret = mbedtls_sha512_finish_ret( &ctx->accumulator, buf ) ) != 0 ) in mbedtls_entropy_func()
417 mbedtls_sha512_free( &ctx->accumulator ); in mbedtls_entropy_func()
418 mbedtls_sha512_init( &ctx->accumulator ); in mbedtls_entropy_func()
419 if( ( ret = mbedtls_sha512_starts_ret( &ctx->accumulator, 0 ) ) != 0 ) in mbedtls_entropy_func()
421 if( ( ret = mbedtls_sha512_update_ret( &ctx->accumulator, buf, in mbedtls_entropy_func()
432 if( ( ret = mbedtls_sha256_finish_ret( &ctx->accumulator, buf ) ) != 0 ) in mbedtls_entropy_func()
438 mbedtls_sha256_free( &ctx->accumulator ); in mbedtls_entropy_func()
439 mbedtls_sha256_init( &ctx->accumulator ); in mbedtls_entropy_func()
440 if( ( ret = mbedtls_sha256_starts_ret( &ctx->accumulator, 0 ) ) != 0 ) in mbedtls_entropy_func()
442 if( ( ret = mbedtls_sha256_update_ret( &ctx->accumulator, buf, in mbedtls_entropy_func()