Home
last modified time | relevance | path

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

/openbmc/qemu/tests/unit/
H A Dtest-crypto-hmac.c100 const char *exp_output = NULL; in test_hmac_alloc() local
108 exp_output = data->hex_digest; in test_hmac_alloc()
120 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_alloc()
121 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_alloc()
139 const char *exp_output = NULL; in test_hmac_prealloc() local
147 exp_output = data->hex_digest; in test_hmac_prealloc()
149 resultlen = strlen(exp_output) / 2; in test_hmac_prealloc()
163 exp_output = data->hex_digest; in test_hmac_prealloc()
165 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_prealloc()
166 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_prealloc()
[all …]