Searched refs:ALGO (Results 1 – 1 of 1) sorted by relevance
/external/elfutils/src/tests/ |
D | md5-sha1-test.c | 72 #define TEST_HASH(ALGO, I) \ argument 74 struct ALGO##_ctx ctx; \ 75 uint32_t result_buffer[(ALGO##_size + 3) / 4]; \ 76 ALGO##_init_ctx (&ctx); \ 82 ALGO##_process_bytes (input_buffer, sizeof input_buffer, &ctx); \ 85 ALGO##_process_bytes (tests[I].sample, strlen (tests[I].sample), &ctx); \ 86 char *result = ALGO##_finish_ctx (&ctx, result_buffer); \ 88 || memcmp (result, tests[I].ALGO##_expected, ALGO##_size) != 0) \ 89 error (0, 0, #ALGO " test %zu failed", 1 + I); \
|