64 okx (
test->image->type ==
test->type, file, line );
83 sizeof (
out ) ) == 0, file, line );
struct golan_eq_context ctx
int image_asn1(struct image *image, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from image.
void asn1_okx(struct asn1_test *test, const char *file, unsigned int line)
Report ASN.1 test result.
#define asn1_test_digest_algorithm
Digest algorithm used for ASN.1 tests.
#define ASN1_TEST_DIGEST_SIZE
Digest size used for ASN.1 tests.
#define assert(condition)
Assert a condition at run-time.
uint16_t offset
Offset to command line.
uint32_t next
Next descriptor address.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
void unregister_image(struct image *image)
Unregister executable image.
int register_image(struct image *image)
Register executable image.
static void digest_init(struct digest_algorithm *digest, void *ctx)
static void digest_final(struct digest_algorithm *digest, void *ctx, void *out)
static void digest_update(struct digest_algorithm *digest, void *ctx, const void *data, size_t len)
static void(* free)(struct refcnt *refcnt))
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
const void * data
Start of data.
size_t len
Length of data.
A message digest algorithm.
size_t digestsize
Digest size.
size_t ctxsize
Context size.
Self-test infrastructure.
#define okx(success, file, line)
Report test result.