Home
last modified time | relevance | path

Searched refs:expected_outputs (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-crypto-hash.c57 static const char *expected_outputs[] = { variable
92 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_alloc()
113 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_alloc()
124 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_prealloc()
148 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_prealloc()
160 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_iov()
184 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_iov()
196 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_digest()
207 g_assert_cmpint(digestsize * 2, ==, strlen(expected_outputs[i])); in test_hash_digest()
215 g_assert_cmpstr(digest, ==, expected_outputs[i]); in test_hash_digest()
[all …]