Home
last modified time | relevance | path

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

/crypto/cipher/
A Dtls_cbc.cc64 good = constant_time_eq_w(0xff, good & 0xff); in EVP_tls_cbc_remove_padding()
106 crypto_word_t is_mac_start = constant_time_eq_w(i, mac_start); in EVP_tls_cbc_copy_mac()
213 crypto_word_t is_last_block = constant_time_eq_w(i, last_block); in EVP_sha1_final_with_secret_suffix()
306 crypto_word_t is_last_block = constant_time_eq_w(i, last_block); in EVP_sha256_final_with_secret_suffix()
A De_aesgcmsiv.cc650 const crypto_word_t carry = constant_time_eq_w(hi & 1, 1); in reverse_and_mulX_ghash()
/crypto/rsa/
A Drsa_crypt.cc177 crypto_word_t equals1 = constant_time_eq_w(db[i], 1); in RSA_padding_check_PKCS1_OAEP_mgf1()
178 crypto_word_t equals0 = constant_time_eq_w(db[i], 0); in RSA_padding_check_PKCS1_OAEP_mgf1()
260 crypto_word_t first_byte_is_zero = constant_time_eq_w(from[0], 0); in rsa_padding_check_PKCS1_type_2()
261 crypto_word_t second_byte_is_two = constant_time_eq_w(from[1], 2); in rsa_padding_check_PKCS1_type_2()
/crypto/curve25519/
A Dspake25519.cc406 constant_time_eq_w(password_scalar.words[0] & 1, 1)); in SPAKE2_generate_msg()
412 constant_time_eq_w(password_scalar.words[0] & 2, 2)); in SPAKE2_generate_msg()
418 constant_time_eq_w(password_scalar.words[0] & 4, 4)); in SPAKE2_generate_msg()
A Dcurve25519.cc732 cmov(&e, &multiples[j - 1], 1 & constant_time_eq_w(index, j)); in x25519_ge_scalarmult_small_precomp()
769 constant_time_eq_w(babs, 1 + i)); in table_select()
909 cmov_cached(&selected, &Ai[j], 1 & constant_time_eq_w(index, j)); in x25519_ge_scalarmult()
/crypto/fipsmodule/ec/
A Dsimple_mul.cc.inc62 BN_ULONG mask = constant_time_eq_w(j, window);
117 BN_ULONG mask = constant_time_eq_w(j, digit);
228 BN_ULONG match = constant_time_eq_w(window, j + 1);
A Dp224-64.cc.inc845 uint64_t mask = value_barrier_w(constant_time_eq_w(i, idx));
/crypto/
A Dinternal.h351 static inline crypto_word_t constant_time_eq_w(crypto_word_t a, in constant_time_eq_w() function
359 return (uint8_t)(constant_time_eq_w(a, b)); in constant_time_eq_8()
365 return constant_time_eq_w((crypto_word_t)(a), (crypto_word_t)(b)); in constant_time_eq_int()
A Dconstant_time_test.cc80 EXPECT_EQ(FromBoolW(a == b), constant_time_eq_w(a, b)); in TEST()
/crypto/fipsmodule/bn/
A Dcmp.cc.inc33 crypto_word_t eq = constant_time_eq_w(a[i], b[i]);
/crypto/fipsmodule/aes/
A Dkey_wrap.cc.inc196 ok &= constant_time_eq_w((claimed_len - 1) >> 3, (in_len - 9) >> 3);
/crypto/hrss/
A Dhrss.cc1402 ok &= constant_time_eq_w(v, expected); in poly3_from_poly_checked()

Completed in 611 milliseconds