Report ASN.1 test result.
66 okx (
test->image->type ==
test->type, file, line );
85 sizeof (
out ) ) == 0, file, line );
static void digest_update(struct digest_algorithm *digest, void *ctx, const void *data, size_t len)
uint32_t next
Next descriptor address.
static void digest_final(struct digest_algorithm *digest, void *ctx, void *out)
const void * data
Start of data.
int image_asn1(struct image *image, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from image.
struct golan_eq_context ctx
size_t len
Length of data.
#define ASN1_TEST_DIGEST_SIZE
Digest size used for ASN.1 tests.
#define okx(success, file, line)
Report test result.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
static void digest_init(struct digest_algorithm *digest, void *ctx)
int register_image(struct image *image)
Register executable image.
static void(* free)(struct refcnt *refcnt))
#define asn1_test_digest_algorithm
Digest algorithm used for ASN.1 tests.
void unregister_image(struct image *image)
Unregister executable image.
size_t ctxsize
Context size.
size_t digestsize
Digest size.
userptr_t virt_to_user(volatile const void *addr)
Convert virtual address to user pointer.
A message digest algorithm.
uint16_t offset
Offset to command line.
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.