GNUnet 0.22.2
testing_api_barrier.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_TESTING_Barrier
 An entry for a barrier list. More...
 

Functions

void GNUNET_TESTING_barrier_name_hash_ (const char *barrier_name, struct GNUNET_ShortHashCode *bkey)
 

Function Documentation

◆ GNUNET_TESTING_barrier_name_hash_()

void GNUNET_TESTING_barrier_name_hash_ ( const char *  barrier_name,
struct GNUNET_ShortHashCode bkey 
)

Definition at line 39 of file testing_api_barrier.c.

42{
43 struct GNUNET_HashCode hc = {0};
44
45 GNUNET_CRYPTO_hash (barrier_name,
46 strlen (barrier_name),
47 &hc);
48 memcpy (bkey,
49 &hc,
50 sizeof (*bkey));
51}
void GNUNET_CRYPTO_hash(const void *block, size_t size, struct GNUNET_HashCode *ret)
Compute hash of a given block.
Definition: crypto_hash.c:41
A 512-bit hashcode.

References GNUNET_CRYPTO_hash().

Referenced by barrier_reached_run(), GNUNET_TESTING_cmd_barrier_create(), and GNUNET_TESTING_get_barrier_().

Here is the call graph for this function:
Here is the caller graph for this function: