Lines Matching defs:test_case
87 auth_test_case_t *test_case = at->test_data;
100 if (test_case == NULL)
104 while (test_case != NULL) {
107 if (test_case->tag_length_octets > SELF_TEST_TAG_BUF_OCTETS)
111 status = auth_type_alloc(at, &a, test_case->key_length_octets,
112 test_case->tag_length_octets);
117 status = auth_init(a, test_case->key);
124 octet_string_set_to_zero(tag, test_case->tag_length_octets);
125 status = auth_compute(a, test_case->data,
126 test_case->data_length_octets, tag);
133 octet_string_hex_string(test_case->key,
134 test_case->key_length_octets));
136 octet_string_hex_string(test_case->data,
137 test_case->data_length_octets));
139 octet_string_hex_string(tag, test_case->tag_length_octets));
141 octet_string_hex_string(test_case->tag,
142 test_case->tag_length_octets));
146 for (i=0; i < test_case->tag_length_octets; i++)
147 if (tag[i] != test_case->tag[i]) {
166 test_case = test_case->next_test_case;