FD.io VPP  v20.09-64-g4f7b92f0a
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
unittest_crypto_test_registration_t * test_registrations
Definition: crypto.h:58
vnet_crypto_main_t * cm
Definition: quic_crypto.c:53
crypto_test_main_t crypto_test_main

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