Lines Matching refs:b
41 unsigned int b);
44 unsigned int b);
46 static ossl_inline uint64_t constant_time_lt_64(uint64_t a, uint64_t b);
50 unsigned int b);
53 unsigned int b);
64 unsigned int b);
67 unsigned int b);
69 static ossl_inline unsigned int constant_time_eq_int(int a, int b);
71 static ossl_inline unsigned char constant_time_eq_int_8(int a, int b);
82 unsigned int b);
86 unsigned char b);
90 uint32_t b);
94 uint64_t b);
97 int b);
122 unsigned int b) in constant_time_lt() argument
124 return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt()
127 static ossl_inline size_t constant_time_lt_s(size_t a, size_t b) in constant_time_lt_s() argument
129 return constant_time_msb_s(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_s()
133 unsigned int b) in constant_time_lt_8() argument
135 return (unsigned char)constant_time_lt(a, b); in constant_time_lt_8()
138 static ossl_inline uint64_t constant_time_lt_64(uint64_t a, uint64_t b) in constant_time_lt_64() argument
140 return constant_time_msb_64(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_64()
160 static ossl_inline BN_ULONG constant_time_lt_bn(BN_ULONG a, BN_ULONG b) in constant_time_lt_bn() argument
162 return constant_time_msb_bn(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_bn()
171 BN_ULONG b) in constant_time_eq_bn() argument
173 return constant_time_is_zero_bn(a ^ b); in constant_time_eq_bn()
178 BN_ULONG b) in constant_time_select_bn() argument
180 return (value_barrier_bn(mask) & a) | (value_barrier_bn(~mask) & b); in constant_time_select_bn()
185 unsigned int b) in constant_time_ge() argument
187 return ~constant_time_lt(a, b); in constant_time_ge()
190 static ossl_inline size_t constant_time_ge_s(size_t a, size_t b) in constant_time_ge_s() argument
192 return ~constant_time_lt_s(a, b); in constant_time_ge_s()
196 unsigned int b) in constant_time_ge_8() argument
198 return (unsigned char)constant_time_ge(a, b); in constant_time_ge_8()
201 static ossl_inline unsigned char constant_time_ge_8_s(size_t a, size_t b) in constant_time_ge_8_s() argument
203 return (unsigned char)constant_time_ge_s(a, b); in constant_time_ge_8_s()
232 unsigned int b) in constant_time_eq() argument
234 return constant_time_is_zero(a ^ b); in constant_time_eq()
237 static ossl_inline size_t constant_time_eq_s(size_t a, size_t b) in constant_time_eq_s() argument
239 return constant_time_is_zero_s(a ^ b); in constant_time_eq_s()
243 unsigned int b) in constant_time_eq_8() argument
245 return (unsigned char)constant_time_eq(a, b); in constant_time_eq_8()
248 static ossl_inline unsigned char constant_time_eq_8_s(size_t a, size_t b) in constant_time_eq_8_s() argument
250 return (unsigned char)constant_time_eq_s(a, b); in constant_time_eq_8_s()
253 static ossl_inline unsigned int constant_time_eq_int(int a, int b) in constant_time_eq_int() argument
255 return constant_time_eq((unsigned)(a), (unsigned)(b)); in constant_time_eq_int()
258 static ossl_inline unsigned char constant_time_eq_int_8(int a, int b) in constant_time_eq_int_8() argument
260 return constant_time_eq_8((unsigned)(a), (unsigned)(b)); in constant_time_eq_int_8()
319 unsigned int b) in constant_time_select() argument
321 return (value_barrier(mask) & a) | (value_barrier(~mask) & b); in constant_time_select()
326 size_t b) in constant_time_select_s() argument
328 return (value_barrier_s(mask) & a) | (value_barrier_s(~mask) & b); in constant_time_select_s()
333 unsigned char b) in constant_time_select_8() argument
335 return (unsigned char)constant_time_select(mask, a, b); in constant_time_select_8()
339 int b) in constant_time_select_int() argument
341 return (int)constant_time_select(mask, (unsigned)(a), (unsigned)(b)); in constant_time_select_int()
344 static ossl_inline int constant_time_select_int_s(size_t mask, int a, int b) in constant_time_select_int_s() argument
347 (unsigned)(b)); in constant_time_select_int_s()
351 uint32_t b) in constant_time_select_32() argument
353 return (value_barrier_32(mask) & a) | (value_barrier_32(~mask) & b); in constant_time_select_32()
357 uint64_t b) in constant_time_select_64() argument
359 return (value_barrier_64(mask) & a) | (value_barrier_64(~mask) & b); in constant_time_select_64()
373 uint32_t *b) in constant_time_cond_swap_32() argument
375 uint32_t xor = *a ^ *b; in constant_time_cond_swap_32()
379 *b ^= xor; in constant_time_cond_swap_32()
393 uint64_t *b) in constant_time_cond_swap_64() argument
395 uint64_t xor = *a ^ *b; in constant_time_cond_swap_64()
399 *b ^= xor; in constant_time_cond_swap_64()
416 unsigned char *b, in constant_time_cond_swap_buff() argument
423 tmp = a[i] ^ b[i]; in constant_time_cond_swap_buff()
426 b[i] ^= tmp; in constant_time_cond_swap_buff()