Lines Matching refs:selected
131 unsigned int selected = constant_time_select(CONSTTIME_TRUE, a, b); in test_select() local
132 if (selected != a) { in test_select()
136 CONSTTIME_TRUE, a, b, a, selected); in test_select()
139 selected = constant_time_select(CONSTTIME_FALSE, a, b); in test_select()
140 if (selected != b) { in test_select()
144 CONSTTIME_FALSE, a, b, b, selected); in test_select()
151 uint8_t selected = constant_time_select_8(CONSTTIME_TRUE_8, a, b); in test_select_8() local
152 if (selected != a) { in test_select_8()
156 CONSTTIME_TRUE, a, b, a, selected); in test_select_8()
159 selected = constant_time_select_8(CONSTTIME_FALSE_8, a, b); in test_select_8()
160 if (selected != b) { in test_select_8()
164 CONSTTIME_FALSE, a, b, b, selected); in test_select_8()
171 int selected = constant_time_select_int(CONSTTIME_TRUE, a, b); in test_select_int() local
172 if (selected != a) { in test_select_int()
176 CONSTTIME_TRUE, a, b, a, selected); in test_select_int()
179 selected = constant_time_select_int(CONSTTIME_FALSE, a, b); in test_select_int()
180 if (selected != b) { in test_select_int()
184 CONSTTIME_FALSE, a, b, b, selected); in test_select_int()