Home
last modified time | relevance | path

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

/external/rust/crates/ring/crypto/
Dinternal.h157 typedef uint64_t crypto_word; typedef
160 typedef uint32_t crypto_word; typedef
166 #define CONSTTIME_TRUE_W ~((crypto_word)0)
167 #define CONSTTIME_FALSE_W ((crypto_word)0)
176 static inline crypto_word value_barrier_w(crypto_word a) { in value_barrier_w()
201 static inline crypto_word constant_time_msb_w(crypto_word a) { in constant_time_msb_w()
206 static inline crypto_word constant_time_is_zero_w(crypto_word a) { in constant_time_is_zero_w()
221 static inline crypto_word constant_time_is_nonzero_w(crypto_word a) { in constant_time_is_nonzero_w()
226 static inline crypto_word constant_time_eq_w(crypto_word a, in constant_time_eq_w()
227 crypto_word b) { in constant_time_eq_w()
[all …]
Dconstant_time_test.c50 static int test_binary_op_w(crypto_word (*op)(crypto_word a, crypto_word b), in test_binary_op_w()
51 crypto_word a, crypto_word b, int is_true) { in test_binary_op_w()
52 crypto_word c = op(a, b); in test_binary_op_w()
61 static int test_is_zero_w(crypto_word a) { in test_is_zero_w()
62 crypto_word c = constant_time_is_zero_w(a); in test_is_zero_w()
79 static int test_select_w(crypto_word a, crypto_word b) { in test_select_w()
80 crypto_word selected = constant_time_select_w(CONSTTIME_TRUE_W, a, b); in test_select_w()
91 static crypto_word test_values_s[] = {
116 crypto_word a = test_values_s[i]; in bssl_constant_time_test_main()
120 crypto_word b = test_values_s[j]; in bssl_constant_time_test_main()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Decp_nistz.h249 static inline void booth_recode(crypto_word *is_negative, crypto_word *digit, in booth_recode()
250 crypto_word in, crypto_word w) { in booth_recode()
256 crypto_word s = ~((in >> w) - 1); in booth_recode()
257 crypto_word d; in booth_recode()
258 d = ((crypto_word)1u << (w + 1)) - in - 1; in booth_recode()
Decp_nistz256.c197 static const crypto_word kMask = (1 << (5 /* kWindowSize */ + 1)) - 1; in GFp_nistz256_point_mul()
238 crypto_word raw_wvalue; in GFp_nistz256_point_mul()
239 crypto_word recoded_is_negative; in GFp_nistz256_point_mul()
240 crypto_word recoded; in GFp_nistz256_point_mul()
291 crypto_word raw_wvalue) { in select_precomputed()
292 crypto_word recoded_is_negative; in select_precomputed()
293 crypto_word recoded; in select_precomputed()
314 static const crypto_word kMask = (1 << (7 /* kWindowSize */ + 1)) - 1; in GFp_nistz256_point_mul_base()
325 crypto_word raw_wvalue = (p_str[0] << 1) & kMask; in GFp_nistz256_point_mul_base()
Dgfp_p256.c76 crypto_word index) { in GFp_nistz256_select_w5()
85 crypto_word equal = constant_time_eq_w(index, (crypto_word)i + 1); in GFp_nistz256_select_w5()
100 const PRECOMP256_ROW table, crypto_word index) { in GFp_nistz256_select_w7()
Decp_nistz256.h48 crypto_word index);
51 void GFp_nistz256_select_w7(P256_POINT_AFFINE *out, const PRECOMP256_ROW table, crypto_word index);
Decp_nistz384.inl160 static void add_precomputed_w5(P384_POINT *r, crypto_word wvalue,
162 crypto_word recoded_is_negative;
163 crypto_word recoded;
181 static const crypto_word kMask = (1 << (5 /* kWindowSize */ + 1)) - 1;
221 crypto_word recoded;
223 crypto_word wvalue = p_str[(index - 1) / 8];
Dgfp_p384.c228 crypto_word equal = constant_time_eq_w(index, (crypto_word)i + 1); in gfp_p384_point_select_w5()
/external/rust/crates/ring/crypto/limbs/
Dlimbs.c154 crypto_word index) { in LIMBS_select_512_32()
164 crypto_word LIMBS_window5_split_window(Limb lower_limb, Limb higher_limb, size_t index_within_word)… in LIMBS_window5_split_window()
174 crypto_word LIMBS_window5_unsplit_window(Limb limb, size_t index_within_word) { in LIMBS_window5_unsplit_window()
Dlimbs.h22 typedef crypto_word Limb;
Dlimbs.inl145 crypto_word index) {
/external/rust/crates/ring/crypto/fipsmodule/bn/
Dinternal.h137 typedef crypto_word BN_ULONG;