FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
crypto.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  unittest_crypto_test_data_t
 
struct  unittest_crypto_test_registration
 
struct  crypto_test_main_t
 

Macros

#define CRYPTO_TEST_MAX_OP_CHUNKS   8
 
#define TEST_DATA(n)   { .data = (u8 *) n, .length = sizeof (n)}
 
#define TEST_DATA_CHUNK(s, off, n)   { .data = (u8 *) s + off, .length = n}
 
#define UNITTEST_REGISTER_CRYPTO_TEST(x)
 

Typedefs

typedef struct unittest_crypto_test_registration unittest_crypto_test_registration_t
 

Variables

crypto_test_main_t crypto_test_main
 

Macro Definition Documentation

◆ CRYPTO_TEST_MAX_OP_CHUNKS

#define CRYPTO_TEST_MAX_OP_CHUNKS   8

Definition at line 20 of file crypto.h.

◆ TEST_DATA

#define TEST_DATA (   n)    { .data = (u8 *) n, .length = sizeof (n)}

Definition at line 63 of file crypto.h.

◆ TEST_DATA_CHUNK

#define TEST_DATA_CHUNK (   s,
  off,
 
)    { .data = (u8 *) s + off, .length = n}

Definition at line 64 of file crypto.h.

◆ UNITTEST_REGISTER_CRYPTO_TEST

#define UNITTEST_REGISTER_CRYPTO_TEST (   x)
Value:
unittest_crypto_test_registration_t __unittest_crypto_test_##x; \
static void __clib_constructor \
__unittest_crypto_test_registration_##x (void) \
{ \
crypto_test_main_t * cm = &crypto_test_main; \
__unittest_crypto_test_##x.next = cm->test_registrations; \
cm->test_registrations = & __unittest_crypto_test_##x; \
} \
unittest_crypto_test_registration_t __unittest_crypto_test_##x

Definition at line 66 of file crypto.h.

Typedef Documentation

◆ unittest_crypto_test_registration_t

Variable Documentation

◆ crypto_test_main

crypto_test_main_t crypto_test_main
unittest_crypto_test_registration
Definition: crypto.h:28
crypto_test_main
crypto_test_main_t crypto_test_main
cm
vnet_feature_config_main_t * cm
Definition: nat44_ei_hairpinning.c:594