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