Lines Matching refs:result
69 int result = TC_PASS; in test_1() local
96 result = TC_FAIL; in test_1()
100 result = check_result(1, expected.words, sizeof(expected.words), s.words, in test_1()
104 TC_END_RESULT(result); in test_1()
105 return result; in test_1()
113 int result = TC_PASS; in test_2() local
135 result = TC_FAIL; in test_2()
139 result = check_result(2, expected, sizeof(expected), ciphertext, in test_2()
143 TC_END_RESULT(result); in test_2()
145 return result; in test_2()
153 int result = TC_PASS; in var_text_test() local
156 result = check_result(r, out, NUM_OF_NIST_KEYS, ciphertext, in var_text_test()
158 if (result != TC_FAIL) { in var_text_test()
161 result = TC_FAIL; in var_text_test()
163 result = check_result(r, in, NUM_OF_NIST_KEYS, in var_text_test()
168 return result; in var_text_test()
176 int result = TC_PASS; in test_3() local
1087 result = var_text_test(i, kat_tbl[i].in, kat_tbl[i].out, &s); in test_3()
1088 if (result == TC_FAIL) { in test_3()
1093 TC_END_RESULT(result); in test_3()
1095 return result; in test_3()
1100 int result = TC_PASS; in var_key_test() local
1112 result = check_result(r, out, NUM_OF_NIST_KEYS, ciphertext, in var_key_test()
1115 return result; in var_key_test()
1123 int result = TC_PASS; in test_4() local
2027 result = var_key_test(i, kat_tbl[i].in, kat_tbl[i].out); in test_4()
2028 if (result == TC_FAIL) { in test_4()
2034 TC_END_RESULT(result); in test_4()
2036 return result; in test_4()
2044 int result = TC_PASS; in main() local
2048 result = test_1(); in main()
2049 if (result == TC_FAIL) { /* terminate test */ in main()
2053 result = test_2(); in main()
2054 if (result == TC_FAIL) { /* terminate test */ in main()
2058 result = test_3(); in main()
2059 if (result == TC_FAIL) { /* terminate test */ in main()
2064 result = test_4(); in main()
2065 if (result == TC_FAIL) { /* terminate test */ in main()
2074 TC_END_RESULT(result); in main()
2075 TC_END_REPORT(result); in main()
2077 return result; in main()