Searched refs:constant_time_select (Results 1 - 2 of 2) sorted by relevance

/external/openssl/crypto/
H A Dconstant_time_locl.h70 * c = constant_time_select(lt, a, b);
122 static inline unsigned int constant_time_select(unsigned int mask,
195 static inline unsigned int constant_time_select(unsigned int mask, function
204 return (unsigned char)(constant_time_select(mask, a, b));
209 return (int)(constant_time_select(mask, (unsigned)(a), (unsigned)(b)));
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Dpadding.c211 /* constant_time_select returns |x| if |v| is 1 and |y| if |v| is 0.
213 static int constant_time_select(int v, int x, int y) { function
242 constant_time_select(looking_for_index & equals0, i, zero_index);
243 looking_for_index = constant_time_select(equals0, 0, looking_for_index);
509 constant_time_select(looking_for_one_byte & equals1, i, one_index);
511 constant_time_select(equals1, 0, looking_for_one_byte);

Completed in 78 milliseconds