Home
last modified time | relevance | path

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

12

/external/rust/crates/ring/crypto/
Dconstant_time_test.c121 num_failed += test_binary_op_w(&constant_time_eq_w, a, b, a == b); in bssl_constant_time_test_main()
122 num_failed += test_binary_op_w(&constant_time_eq_w, b, a, b == a); in bssl_constant_time_test_main()
Dinternal.h226 static inline crypto_word constant_time_eq_w(crypto_word a, in constant_time_eq_w() function
/external/rust/crates/quiche/deps/boringssl/src/crypto/curve25519/
Dspake25519.c415 constant_time_eq_w(password_scalar.bytes[0] & 1, 1)); in SPAKE2_generate_msg()
421 constant_time_eq_w(password_scalar.bytes[0] & 2, 2)); in SPAKE2_generate_msg()
427 constant_time_eq_w(password_scalar.bytes[0] & 4, 4)); in SPAKE2_generate_msg()
/external/boringssl/src/crypto/curve25519/
Dspake25519.c415 constant_time_eq_w(password_scalar.bytes[0] & 1, 1)); in SPAKE2_generate_msg()
421 constant_time_eq_w(password_scalar.bytes[0] & 2, 2)); in SPAKE2_generate_msg()
427 constant_time_eq_w(password_scalar.bytes[0] & 4, 4)); in SPAKE2_generate_msg()
/external/boringssl/src/crypto/fipsmodule/ec/
Dsimple_mul.c62 BN_ULONG mask = constant_time_eq_w(j, window); in ec_GFp_mont_mul()
117 BN_ULONG mask = constant_time_eq_w(j, digit); in ec_GFp_mont_batch_get_window()
229 BN_ULONG match = constant_time_eq_w(window, j + 1); in ec_GFp_mont_get_comb_window()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dsimple_mul.c62 BN_ULONG mask = constant_time_eq_w(j, window); in ec_GFp_mont_mul()
117 BN_ULONG mask = constant_time_eq_w(j, digit); in ec_GFp_mont_batch_get_window()
229 BN_ULONG match = constant_time_eq_w(window, j + 1); in ec_GFp_mont_get_comb_window()
/external/rust/crates/quiche/deps/boringssl/src/crypto/
Dinternal.h373 static inline crypto_word_t constant_time_eq_w(crypto_word_t a, in OPENSSL_MSVC_PRAGMA()
381 return (uint8_t)(constant_time_eq_w(a, b)); in OPENSSL_MSVC_PRAGMA()
387 return constant_time_eq_w((crypto_word_t)(a), (crypto_word_t)(b)); in OPENSSL_MSVC_PRAGMA()
Dconstant_time_test.cc110 EXPECT_EQ(FromBoolW(a == b), constant_time_eq_w(a, b)); in TEST()
/external/boringssl/src/crypto/
Dinternal.h373 static inline crypto_word_t constant_time_eq_w(crypto_word_t a, in OPENSSL_MSVC_PRAGMA()
381 return (uint8_t)(constant_time_eq_w(a, b)); in OPENSSL_MSVC_PRAGMA()
387 return constant_time_eq_w((crypto_word_t)(a), (crypto_word_t)(b)); in OPENSSL_MSVC_PRAGMA()
Dconstant_time_test.cc110 EXPECT_EQ(FromBoolW(a == b), constant_time_eq_w(a, b)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c207 crypto_word_t first_byte_is_zero = constant_time_eq_w(from[0], 0); in RSA_padding_check_PKCS1_type_2()
208 crypto_word_t second_byte_is_two = constant_time_eq_w(from[1], 2); in RSA_padding_check_PKCS1_type_2()
448 crypto_word_t equals1 = constant_time_eq_w(db[i], 1); in RSA_padding_check_PKCS1_OAEP_mgf1()
449 crypto_word_t equals0 = constant_time_eq_w(db[i], 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c207 crypto_word_t first_byte_is_zero = constant_time_eq_w(from[0], 0); in RSA_padding_check_PKCS1_type_2()
208 crypto_word_t second_byte_is_two = constant_time_eq_w(from[1], 2); in RSA_padding_check_PKCS1_type_2()
448 crypto_word_t equals1 = constant_time_eq_w(db[i], 1); in RSA_padding_check_PKCS1_OAEP_mgf1()
449 crypto_word_t equals0 = constant_time_eq_w(db[i], 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
/external/rust/crates/ring/crypto/limbs/
Dlimbs.c41 eq = constant_time_select_w(eq, constant_time_eq_w(a[i], b[i]), eq); in LIMBS_equal()
52 Limb lo_equal = constant_time_eq_w(a[0], b); in LIMBS_equal_limb()
Dlimbs.inl151 Limb equal = constant_time_eq_w(index, e);
/external/boringssl/src/crypto/fipsmodule/modes/
Dpolyval.c37 const crypto_word_t carry = constant_time_eq_w(hi & 1, 1); in reverse_and_mulX_ghash()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/modes/
Dpolyval.c37 const crypto_word_t carry = constant_time_eq_w(hi & 1, 1); in reverse_and_mulX_ghash()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Dgfp_p256.c85 crypto_word equal = constant_time_eq_w(index, (crypto_word)i + 1); in GFp_nistz256_select_w5()
Dgfp_p384.c228 crypto_word equal = constant_time_eq_w(index, (crypto_word)i + 1); in gfp_p384_point_select_w5()
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/
Dtls_cbc.c111 good = constant_time_eq_w(0xff, good & 0xff); in EVP_tls_cbc_remove_padding()
153 crypto_word_t is_mac_start = constant_time_eq_w(i, mac_start); in EVP_tls_cbc_copy_mac()
/external/boringssl/src/crypto/cipher_extra/
Dtls_cbc.c111 good = constant_time_eq_w(0xff, good & 0xff); in EVP_tls_cbc_remove_padding()
153 crypto_word_t is_mac_start = constant_time_eq_w(i, mac_start); in EVP_tls_cbc_copy_mac()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dcmp.c74 crypto_word_t eq = constant_time_eq_w(a[i], b[i]); in bn_cmp_words_consttime()
/external/boringssl/src/crypto/fipsmodule/bn/
Dcmp.c74 crypto_word_t eq = constant_time_eq_w(a[i], b[i]); in bn_cmp_words_consttime()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c227 ok &= constant_time_eq_w((claimed_len - 1) >> 3, (in_len - 9) >> 3); in AES_unwrap_key_padded()
/external/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c227 ok &= constant_time_eq_w((claimed_len - 1) >> 3, (in_len - 9) >> 3); in AES_unwrap_key_padded()
/external/boringssl/src/crypto/hrss/
Dhrss.c1427 ok &= constant_time_eq_w(v, expected); in poly3_from_poly_checked()

12