Home
last modified time | relevance | path

Searched refs:constant_time_is_zero_w (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dshift.c314 mask = constant_time_is_zero_w(l << (BN_BITS2 - 32)); in bn_count_low_zero_bits_word()
322 mask = constant_time_is_zero_w(l << (BN_BITS2 - 16)); in bn_count_low_zero_bits_word()
326 mask = constant_time_is_zero_w(l << (BN_BITS2 - 8)); in bn_count_low_zero_bits_word()
330 mask = constant_time_is_zero_w(l << (BN_BITS2 - 4)); in bn_count_low_zero_bits_word()
334 mask = constant_time_is_zero_w(l << (BN_BITS2 - 2)); in bn_count_low_zero_bits_word()
338 mask = constant_time_is_zero_w(l << (BN_BITS2 - 1)); in bn_count_low_zero_bits_word()
353 crypto_word_t nonzero = ~constant_time_is_zero_w(bn->d[i]); in BN_count_low_zero_bits()
Dcmp.c86 ret = constant_time_select_int(constant_time_is_zero_w(mask), ret, -1); in bn_cmp_words_consttime()
92 ret = constant_time_select_int(constant_time_is_zero_w(mask), ret, 1); in bn_cmp_words_consttime()
Drandom.c205 mask = constant_time_is_zero_w(mask); in bn_less_than_word_mask()
/external/boringssl/src/crypto/fipsmodule/bn/
Dshift.c314 mask = constant_time_is_zero_w(l << (BN_BITS2 - 32)); in bn_count_low_zero_bits_word()
322 mask = constant_time_is_zero_w(l << (BN_BITS2 - 16)); in bn_count_low_zero_bits_word()
326 mask = constant_time_is_zero_w(l << (BN_BITS2 - 8)); in bn_count_low_zero_bits_word()
330 mask = constant_time_is_zero_w(l << (BN_BITS2 - 4)); in bn_count_low_zero_bits_word()
334 mask = constant_time_is_zero_w(l << (BN_BITS2 - 2)); in bn_count_low_zero_bits_word()
338 mask = constant_time_is_zero_w(l << (BN_BITS2 - 1)); in bn_count_low_zero_bits_word()
353 crypto_word_t nonzero = ~constant_time_is_zero_w(bn->d[i]); in BN_count_low_zero_bits()
Dcmp.c86 ret = constant_time_select_int(constant_time_is_zero_w(mask), ret, -1); in bn_cmp_words_consttime()
92 ret = constant_time_select_int(constant_time_is_zero_w(mask), ret, 1); in bn_cmp_words_consttime()
Drandom.c205 mask = constant_time_is_zero_w(mask); in bn_less_than_word_mask()
/external/rust/crates/ring/crypto/
Dinternal.h206 static inline crypto_word constant_time_is_zero_w(crypto_word a) { in constant_time_is_zero_w() function
222 return ~constant_time_is_zero_w(a); in constant_time_is_nonzero_w()
228 return constant_time_is_zero_w(a ^ b); in constant_time_eq_w()
Dconstant_time_test.c62 crypto_word c = constant_time_is_zero_w(a); in test_is_zero_w()
/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()
49 return constant_time_is_zero_w(b); in LIMBS_equal_limb()
66 return constant_time_is_zero_w(lo & 1); in LIMBS_are_even()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c226 ok &= ~constant_time_is_zero_w(claimed_len); in AES_unwrap_key_padded()
231 ok &= constant_time_is_zero_w(constant_time_ge_8(i, claimed_len) & out[i]); in AES_unwrap_key_padded()
/external/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c226 ok &= ~constant_time_is_zero_w(claimed_len); in AES_unwrap_key_padded()
231 ok &= constant_time_is_zero_w(constant_time_ge_8(i, claimed_len) & out[i]); in AES_unwrap_key_padded()
/external/rust/crates/quiche/deps/boringssl/src/crypto/
Dinternal.h351 static inline crypto_word_t constant_time_is_zero_w(crypto_word_t a) { in OPENSSL_MSVC_PRAGMA()
369 return (uint8_t)(constant_time_is_zero_w(a)); in OPENSSL_MSVC_PRAGMA()
375 return constant_time_is_zero_w(a ^ b); in OPENSSL_MSVC_PRAGMA()
Dconstant_time_test.cc98 EXPECT_EQ(FromBoolW(a == 0), constant_time_is_zero_w(a)); in TEST()
/external/boringssl/src/crypto/
Dinternal.h351 static inline crypto_word_t constant_time_is_zero_w(crypto_word_t a) { in OPENSSL_MSVC_PRAGMA()
369 return (uint8_t)(constant_time_is_zero_w(a)); in OPENSSL_MSVC_PRAGMA()
375 return constant_time_is_zero_w(a ^ b); in OPENSSL_MSVC_PRAGMA()
Dconstant_time_test.cc98 EXPECT_EQ(FromBoolW(a == 0), constant_time_is_zero_w(a)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c212 crypto_word_t equals0 = constant_time_is_zero_w(from[i]); in RSA_padding_check_PKCS1_type_2()
442 crypto_word_t bad = ~constant_time_is_zero_w(CRYPTO_memcmp(db, phash, mdlen)); in RSA_padding_check_PKCS1_OAEP_mgf1()
443 bad |= ~constant_time_is_zero_w(from[0]); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c212 crypto_word_t equals0 = constant_time_is_zero_w(from[i]); in RSA_padding_check_PKCS1_type_2()
442 crypto_word_t bad = ~constant_time_is_zero_w(CRYPTO_memcmp(db, phash, mdlen)); in RSA_padding_check_PKCS1_OAEP_mgf1()
443 bad |= ~constant_time_is_zero_w(from[0]); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/boringssl/src/crypto/fipsmodule/ec/
Dfelem.c88 return ~constant_time_is_zero_w(mask); in ec_felem_non_zero_mask()
Dp256.c321 fiat_p256_limb_t is_nontrivial_double = constant_time_is_zero_w(xneq | yneq) & in fiat_p256_point_add()
322 ~constant_time_is_zero_w(z1nz) & in fiat_p256_point_add()
323 ~constant_time_is_zero_w(z2nz); in fiat_p256_point_add()
Dsimple_mul.c233 BN_ULONG is_infinity = constant_time_is_zero_w(window); in ec_GFp_mont_get_comb_window()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dfelem.c88 return ~constant_time_is_zero_w(mask); in ec_felem_non_zero_mask()
Dp256.c321 fiat_p256_limb_t is_nontrivial_double = constant_time_is_zero_w(xneq | yneq) & in fiat_p256_point_add()
322 ~constant_time_is_zero_w(z1nz) & in fiat_p256_point_add()
323 ~constant_time_is_zero_w(z2nz); in fiat_p256_point_add()
Dsimple_mul.c233 BN_ULONG is_infinity = constant_time_is_zero_w(window); in ec_GFp_mont_get_comb_window()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Decp_nistz256.c309 return constant_time_is_zero_w(acc); in is_infinity()
/external/boringssl/src/crypto/hrss/
Dhrss.c812 const crypto_word_t delta_is_non_zero = ~constant_time_is_zero_w(delta); in poly3_invert_vec()
873 const crypto_word_t delta_is_non_zero = ~constant_time_is_zero_w(delta); in HRSS_poly3_invert()
1526 const crypto_word_t delta_is_non_zero = ~constant_time_is_zero_w(delta); in poly_invert_mod2()
2068 ok &= constant_time_is_zero_w(CRYPTO_memcmp(ciphertext, expected_ciphertext, in HRSS_decap()

12