GNUnet 0.21.2
testing_api_barrier.c File Reference
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_lib.h"
#include "testing_api_barrier.h"
Include dependency graph for testing_api_barrier.c:

Go to the source code of this file.

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;
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: