Lines Matching refs:mask
80 static ossl_inline unsigned int constant_time_select(unsigned int mask,
84 static ossl_inline unsigned char constant_time_select_8(unsigned char mask,
89 static ossl_inline uint32_t constant_time_select_32(uint32_t mask, uint32_t a,
93 static ossl_inline uint64_t constant_time_select_64(uint64_t mask, uint64_t a,
96 static ossl_inline int constant_time_select_int(unsigned int mask, int a,
176 static ossl_inline BN_ULONG constant_time_select_bn(BN_ULONG mask, in constant_time_select_bn() argument
180 return (value_barrier_bn(mask) & a) | (value_barrier_bn(~mask) & b); in constant_time_select_bn()
317 static ossl_inline unsigned int constant_time_select(unsigned int mask, in constant_time_select() argument
321 return (value_barrier(mask) & a) | (value_barrier(~mask) & b); in constant_time_select()
324 static ossl_inline size_t constant_time_select_s(size_t mask, in constant_time_select_s() argument
328 return (value_barrier_s(mask) & a) | (value_barrier_s(~mask) & b); in constant_time_select_s()
331 static ossl_inline unsigned char constant_time_select_8(unsigned char mask, in constant_time_select_8() argument
335 return (unsigned char)constant_time_select(mask, a, b); in constant_time_select_8()
338 static ossl_inline int constant_time_select_int(unsigned int mask, int a, 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
346 return (int)constant_time_select((unsigned)mask, (unsigned)(a), in constant_time_select_int_s()
350 static ossl_inline uint32_t constant_time_select_32(uint32_t mask, uint32_t a, in constant_time_select_32() argument
353 return (value_barrier_32(mask) & a) | (value_barrier_32(~mask) & b); in constant_time_select_32()
356 static ossl_inline uint64_t constant_time_select_64(uint64_t mask, uint64_t a, in constant_time_select_64() argument
359 return (value_barrier_64(mask) & a) | (value_barrier_64(~mask) & b); in constant_time_select_64()
372 static ossl_inline void constant_time_cond_swap_32(uint32_t mask, uint32_t *a, in constant_time_cond_swap_32() argument
377 xor &= mask; in constant_time_cond_swap_32()
392 static ossl_inline void constant_time_cond_swap_64(uint64_t mask, uint64_t *a, in constant_time_cond_swap_64() argument
397 xor &= mask; in constant_time_cond_swap_64()
414 static ossl_inline void constant_time_cond_swap_buff(unsigned char mask, in constant_time_cond_swap_buff() argument
424 tmp &= mask; in constant_time_cond_swap_buff()
444 unsigned char mask; in constant_time_lookup() local
450 mask = (unsigned char)constant_time_is_zero_s(idx); in constant_time_lookup()
452 *(outc + j) |= constant_time_select_8(mask, *(tablec++), 0); in constant_time_lookup()