Home
last modified time | relevance | path

Searched refs:constant_time_select_w (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/ring/crypto/limbs/
Dlimbs.c31 is_zero = constant_time_select_w(is_zero, constant_time_is_zero_w(a[i]), in LIMBS_are_zero()
41 eq = constant_time_select_w(eq, constant_time_eq_w(a[i], b[i]), eq); in LIMBS_equal()
54 return constant_time_select_w(lo_equal, hi_zero, 0); in LIMBS_equal_limb()
89 return constant_time_select_w(lo, hi, lo); in LIMBS_less_than_limb()
102 limb_sub(&r[0], r[0], constant_time_select_w(lt, 0, m[0])); in LIMBS_reduce_once()
108 limb_sbb(&r[i], r[i], constant_time_select_w(lt, 0, m[i]), borrow); in LIMBS_reduce_once()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Dgfp_p384.c77 r[i] = constant_time_select_w(condition, a[i], r[i]); in copy_conditional()
203 r[i] = constant_time_select_w(is_zero, 0, r[i]); in GFp_p384_elem_neg()
230 x[j] = constant_time_select_w(equal, table[i].X[j], x[j]); in gfp_p384_point_select_w5()
231 y[j] = constant_time_select_w(equal, table[i].Y[j], y[j]); in gfp_p384_point_select_w5()
232 z[j] = constant_time_select_w(equal, table[i].Z[j], z[j]); in gfp_p384_point_select_w5()
Dgfp_p256.c87 x[j] = constant_time_select_w(equal, table[i].X[j], x[j]); in GFp_nistz256_select_w5()
88 y[j] = constant_time_select_w(equal, table[i].Y[j], y[j]); in GFp_nistz256_select_w5()
89 z[j] = constant_time_select_w(equal, table[i].Z[j], z[j]); in GFp_nistz256_select_w5()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dshift.c318 l = constant_time_select_w(mask, l >> 32, l); in bn_count_low_zero_bits_word()
324 l = constant_time_select_w(mask, l >> 16, l); in bn_count_low_zero_bits_word()
328 l = constant_time_select_w(mask, l >> 8, l); in bn_count_low_zero_bits_word()
332 l = constant_time_select_w(mask, l >> 4, l); in bn_count_low_zero_bits_word()
336 l = constant_time_select_w(mask, l >> 2, l); in bn_count_low_zero_bits_word()
Drandom.c326 r->d[0] |= constant_time_select_w(in_range, 0, min_inclusive); in bn_rand_secret_range()
327 r->d[words - 1] &= constant_time_select_w(in_range, BN_MASK2, mask >> 1); in bn_rand_secret_range()
Dbn.c428 r[i] = constant_time_select_w(mask, a[i], b[i]); in bn_select_words()
/external/boringssl/src/crypto/fipsmodule/bn/
Dshift.c318 l = constant_time_select_w(mask, l >> 32, l); in bn_count_low_zero_bits_word()
324 l = constant_time_select_w(mask, l >> 16, l); in bn_count_low_zero_bits_word()
328 l = constant_time_select_w(mask, l >> 8, l); in bn_count_low_zero_bits_word()
332 l = constant_time_select_w(mask, l >> 4, l); in bn_count_low_zero_bits_word()
336 l = constant_time_select_w(mask, l >> 2, l); in bn_count_low_zero_bits_word()
Drandom.c326 r->d[0] |= constant_time_select_w(in_range, 0, min_inclusive); in bn_rand_secret_range()
327 r->d[words - 1] &= constant_time_select_w(in_range, BN_MASK2, mask >> 1); in bn_rand_secret_range()
Dbn.c421 r[i] = constant_time_select_w(mask, a[i], b[i]); in bn_select_words()
Dmul.c286 c = constant_time_select_w(neg, c_neg, c_pos); in bn_mul_recursive()
400 c = constant_time_select_w(neg, c_neg, c_pos); in bn_mul_part_recursive()
/external/rust/crates/ring/crypto/
Dconstant_time_test.c80 crypto_word selected = constant_time_select_w(CONSTTIME_TRUE_W, a, b); in test_select_w()
84 selected = constant_time_select_w(CONSTTIME_FALSE_W, a, b); in test_select_w()
Dinternal.h234 static inline crypto_word constant_time_select_w(crypto_word mask, in constant_time_select_w() function
/external/rust/crates/quiche/deps/boringssl/src/crypto/
Dconstant_time_test.cc113 EXPECT_EQ(a, constant_time_select_w(CONSTTIME_TRUE_W, a, b)); in TEST()
114 EXPECT_EQ(b, constant_time_select_w(CONSTTIME_FALSE_W, a, b)); in TEST()
Dinternal.h399 static inline crypto_word_t constant_time_select_w(crypto_word_t mask, in OPENSSL_MSVC_PRAGMA()
415 return (uint8_t)(constant_time_select_w(mask, a, b)); in OPENSSL_MSVC_PRAGMA()
421 return (int)(constant_time_select_w(mask, (crypto_word_t)(a), in OPENSSL_MSVC_PRAGMA()
/external/boringssl/src/crypto/
Dconstant_time_test.cc113 EXPECT_EQ(a, constant_time_select_w(CONSTTIME_TRUE_W, a, b)); in TEST()
114 EXPECT_EQ(b, constant_time_select_w(CONSTTIME_FALSE_W, a, b)); in TEST()
Dinternal.h399 static inline crypto_word_t constant_time_select_w(crypto_word_t mask, in OPENSSL_MSVC_PRAGMA()
415 return (uint8_t)(constant_time_select_w(mask, a, b)); in OPENSSL_MSVC_PRAGMA()
421 return (int)(constant_time_select_w(mask, (crypto_word_t)(a), in OPENSSL_MSVC_PRAGMA()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c214 constant_time_select_w(looking_for_index & equals0, i, zero_index); in RSA_padding_check_PKCS1_type_2()
215 looking_for_index = constant_time_select_w(equals0, 0, looking_for_index); in RSA_padding_check_PKCS1_type_2()
451 constant_time_select_w(looking_for_one_byte & equals1, i, one_index); in RSA_padding_check_PKCS1_OAEP_mgf1()
453 constant_time_select_w(equals1, 0, looking_for_one_byte); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c214 constant_time_select_w(looking_for_index & equals0, i, zero_index); in RSA_padding_check_PKCS1_type_2()
215 looking_for_index = constant_time_select_w(equals0, 0, looking_for_index); in RSA_padding_check_PKCS1_type_2()
451 constant_time_select_w(looking_for_one_byte & equals1, i, one_index); in RSA_padding_check_PKCS1_OAEP_mgf1()
453 constant_time_select_w(equals1, 0, looking_for_one_byte); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/rust/crates/ring/crypto/fipsmodule/bn/
Dmontgomery.c154 r[i] = constant_time_select_w(v, a[i], r[i]); in GFp_bn_from_montgomery_in_place()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/modes/
Dpolyval.c41 lo ^= ((uint64_t) constant_time_select_w(carry, 0xe1, 0)) << 56; in reverse_and_mulX_ghash()
/external/boringssl/src/crypto/fipsmodule/modes/
Dpolyval.c41 lo ^= ((uint64_t) constant_time_select_w(carry, 0xe1, 0)) << 56; in reverse_and_mulX_ghash()
/external/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c234 *out_len = constant_time_select_w(ok, claimed_len, 0); in AES_unwrap_key_padded()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c234 *out_len = constant_time_select_w(ok, claimed_len, 0); in AES_unwrap_key_padded()
/external/rust/crates/quiche/deps/boringssl/src/crypto/curve25519/
Dspake25519.c333 constant_time_select_w(mask, src->words[i], dest->words[i]); in scalar_cmov()
/external/boringssl/src/crypto/curve25519/
Dspake25519.c333 constant_time_select_w(mask, src->words[i], dest->words[i]); in scalar_cmov()

12