• Home
  • Raw
  • Download

Lines Matching refs:accumulator

62     mbedtls_sha512_init( &ctx->accumulator );  in mbedtls_entropy_init()
64 mbedtls_sha256_init( &ctx->accumulator ); in mbedtls_entropy_init()
101 mbedtls_sha512_free( &ctx->accumulator ); in mbedtls_entropy_free()
103 mbedtls_sha256_free( &ctx->accumulator ); in mbedtls_entropy_free()
182 ( ret = mbedtls_sha512_starts( &ctx->accumulator, 0 ) ) != 0 ) in entropy_update()
186 if( ( ret = mbedtls_sha512_update( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update()
188 ret = mbedtls_sha512_update( &ctx->accumulator, p, use_len ); in entropy_update()
191 ( ret = mbedtls_sha256_starts( &ctx->accumulator, 0 ) ) != 0 ) in entropy_update()
195 if( ( ret = mbedtls_sha256_update( &ctx->accumulator, header, 2 ) ) != 0 ) in entropy_update()
197 ret = mbedtls_sha256_update( &ctx->accumulator, p, use_len ); in entropy_update()
359 if( ( ret = mbedtls_sha512_finish( &ctx->accumulator, buf ) ) != 0 ) in mbedtls_entropy_func()
365 mbedtls_sha512_free( &ctx->accumulator ); in mbedtls_entropy_func()
366 mbedtls_sha512_init( &ctx->accumulator ); in mbedtls_entropy_func()
367 if( ( ret = mbedtls_sha512_starts( &ctx->accumulator, 0 ) ) != 0 ) in mbedtls_entropy_func()
369 if( ( ret = mbedtls_sha512_update( &ctx->accumulator, buf, in mbedtls_entropy_func()
380 if( ( ret = mbedtls_sha256_finish( &ctx->accumulator, buf ) ) != 0 ) in mbedtls_entropy_func()
386 mbedtls_sha256_free( &ctx->accumulator ); in mbedtls_entropy_func()
387 mbedtls_sha256_init( &ctx->accumulator ); in mbedtls_entropy_func()
388 if( ( ret = mbedtls_sha256_starts( &ctx->accumulator, 0 ) ) != 0 ) in mbedtls_entropy_func()
390 if( ( ret = mbedtls_sha256_update( &ctx->accumulator, buf, in mbedtls_entropy_func()