60 okx ( ( (
test->shared_len == 0 ) ||
64 actual =
malloc (
sizeof ( *actual ) );
65 okx ( actual !=
NULL, file, line );
82 if (
test->shared_len ) {
84 okx (
rc == 0, file, line );
85 DBGC (
test,
"KEX %s shared secret:\n", exchange->
name );
91 okx (
rc != 0, file, line );
#define NULL
NULL pointer (VOID *).
struct arbelprm_rc_send_wqe rc
void exchange_okx(struct exchange_test *test, const char *file, unsigned int line)
Report a key exchange test result.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
static int exchange_share(struct exchange_algorithm *exchange, const void *private, void *public)
static int exchange_agree(struct exchange_algorithm *exchange, const void *private, const void *partner, void *shared)
void * malloc(size_t size)
Allocate memory.
static void(* free)(struct refcnt *refcnt))
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
A key exchange algorithm.
size_t sharedsize
Shared secret size.
size_t privsize
Private key size.
size_t pubsize
Public key size.
const char * name
Algorithm name.
#define okx(success, file, line)
Report test result.