/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/ |
D | internal.h | 161 #define TOBN(hi, lo) ((BN_ULONG)(hi) << 32 | (lo)) in OPENSSL_MSVC_PRAGMA() 201 (((320u * 3u) + (32u * 9u * 16u)) / sizeof(BN_ULONG)) in OPENSSL_MSVC_PRAGMA() 205 (BN_ULONG *)(x), sizeof(x) / sizeof(BN_ULONG), \ in OPENSSL_MSVC_PRAGMA() 206 sizeof(x) / sizeof(BN_ULONG), 0, BN_FLG_STATIC_DATA \ in OPENSSL_MSVC_PRAGMA() 210 #define Lw(t) ((BN_ULONG)(t)) in OPENSSL_MSVC_PRAGMA() 211 #define Hw(t) ((BN_ULONG)((t) >> BN_BITS2)) in OPENSSL_MSVC_PRAGMA() 237 void bn_select_words(BN_ULONG *r, BN_ULONG mask, const BN_ULONG *a, in OPENSSL_MSVC_PRAGMA() 238 const BN_ULONG *b, size_t num); in OPENSSL_MSVC_PRAGMA() 242 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() 250 void bn_set_static_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() [all …]
|
D | rsaz_exp.h | 37 void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16], const BN_ULONG base_norm[16], 38 const BN_ULONG exponent[16], 39 const BN_ULONG m_norm[16], const BN_ULONG RR[16], 40 BN_ULONG k0, 41 BN_ULONG storage_words[MOD_EXP_CTIME_STORAGE_LEN]); 68 void rsaz_1024_norm2red_avx2(BN_ULONG red[40], const BN_ULONG norm[16]); 73 void rsaz_1024_mul_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 74 const BN_ULONG b[40], const BN_ULONG n[40], BN_ULONG k); 79 void rsaz_1024_sqr_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 80 const BN_ULONG n[40], BN_ULONG k, int count); [all …]
|
D | mul.c | 75 static void bn_abs_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, in bn_abs_sub_words() 76 size_t num, BN_ULONG *tmp) { in bn_abs_sub_words() 77 BN_ULONG borrow = bn_sub_words(tmp, a, b, num); in bn_abs_sub_words() 82 static void bn_mul_normal(BN_ULONG *r, const BN_ULONG *a, size_t na, in bn_mul_normal() 83 const BN_ULONG *b, size_t nb) { in bn_mul_normal() 88 const BN_ULONG *ltmp = a; in bn_mul_normal() 92 BN_ULONG *rr = &(r[na]); in bn_mul_normal() 94 OPENSSL_memset(r, 0, na * sizeof(BN_ULONG)); in bn_mul_normal() 130 static BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, in bn_sub_part_words() 131 const BN_ULONG *b, int cl, int dl) { in bn_sub_part_words() [all …]
|
D | div.c | 69 OPENSSL_UNUSED static BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, in bn_div_words() 70 BN_ULONG d) { in bn_div_words() 71 BN_ULONG dh, dl, q, ret = 0, th, tl, t; in bn_div_words() 79 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i)); in bn_div_words() 139 static inline void bn_div_rem_words(BN_ULONG *quotient_out, BN_ULONG *rem_out, in bn_div_rem_words() 140 BN_ULONG n0, BN_ULONG n1, BN_ULONG d0) { in bn_div_rem_words() 170 *quotient_out = (BN_ULONG)(n / d0); in bn_div_rem_words() 198 BN_ULONG *resp, *wnump; in BN_div() 199 BN_ULONG d0, d1; in BN_div() 312 BN_ULONG q, l0; in BN_div() [all …]
|
D | generic.c | 99 BN_ULONG high, low, ret, tmp = (a); \ 112 BN_ULONG high, low, ret, ta = (a); \ 122 BN_ULONG tmp = (a); \ 128 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_add_words() 129 BN_ULONG w) { in bn_mul_add_words() 130 BN_ULONG c1 = 0; in bn_mul_add_words() 156 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_words() 157 BN_ULONG w) { in bn_mul_words() 158 BN_ULONG c1 = 0; in bn_mul_words() 182 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n) { in bn_sqr_words() [all …]
|
D | random.c | 151 const BN_ULONG kOne = 1; in BN_rand() 152 const BN_ULONG kThree = 3; in BN_rand() 153 BN_ULONG mask = bit < BN_BITS2 - 1 ? (kOne << (bit + 1)) - 1 : BN_MASK2; in BN_rand() 158 RAND_bytes((uint8_t *)rnd->d, words * sizeof(BN_ULONG)); in BN_rand() 188 static crypto_word_t bn_less_than_word_mask(const BN_ULONG *a, size_t len, in bn_less_than_word_mask() 189 BN_ULONG b) { in bn_less_than_word_mask() 198 OPENSSL_STATIC_ASSERT(sizeof(BN_ULONG) <= sizeof(crypto_word_t), in bn_less_than_word_mask() 210 int bn_in_range_words(const BN_ULONG *a, BN_ULONG min_inclusive, in bn_in_range_words() 211 const BN_ULONG *max_exclusive, size_t len) { in bn_in_range_words() 216 static int bn_range_to_mask(size_t *out_words, BN_ULONG *out_mask, in bn_range_to_mask() [all …]
|
D | gcd_extra.c | 24 static BN_ULONG word_is_odd_mask(BN_ULONG a) { return (BN_ULONG)0 - (a & 1); } in word_is_odd_mask() 26 static void maybe_rshift1_words(BN_ULONG *a, BN_ULONG mask, BN_ULONG *tmp, in maybe_rshift1_words() 32 static void maybe_rshift1_words_carry(BN_ULONG *a, BN_ULONG carry, in maybe_rshift1_words_carry() 33 BN_ULONG mask, BN_ULONG *tmp, in maybe_rshift1_words_carry() 42 static BN_ULONG maybe_add_words(BN_ULONG *a, BN_ULONG mask, const BN_ULONG *b, in maybe_add_words() 43 BN_ULONG *tmp, size_t num) { in maybe_add_words() 44 BN_ULONG carry = bn_add_words(tmp, a, b, num); in maybe_add_words() 84 BN_ULONG both_odd = word_is_odd_mask(u->d[0]) & word_is_odd_mask(v->d[0]); in bn_gcd_consttime() 87 BN_ULONG u_less_than_v = in bn_gcd_consttime() 88 (BN_ULONG)0 - bn_sub_words(tmp->d, u->d, v->d, width); in bn_gcd_consttime() [all …]
|
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/bn/ |
D | internal.h | 161 #define TOBN(hi, lo) ((BN_ULONG)(hi) << 32 | (lo)) in OPENSSL_MSVC_PRAGMA() 207 (((320u * 3u) + (32u * 9u * 16u)) / sizeof(BN_ULONG)) in OPENSSL_MSVC_PRAGMA() 211 (BN_ULONG *)(x), sizeof(x) / sizeof(BN_ULONG), \ in OPENSSL_MSVC_PRAGMA() 212 sizeof(x) / sizeof(BN_ULONG), 0, BN_FLG_STATIC_DATA \ in OPENSSL_MSVC_PRAGMA() 216 #define Lw(t) ((BN_ULONG)(t)) in OPENSSL_MSVC_PRAGMA() 217 #define Hw(t) ((BN_ULONG)((t) >> BN_BITS2)) in OPENSSL_MSVC_PRAGMA() 243 void bn_select_words(BN_ULONG *r, BN_ULONG mask, const BN_ULONG *a, in OPENSSL_MSVC_PRAGMA() 244 const BN_ULONG *b, size_t num); in OPENSSL_MSVC_PRAGMA() 248 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() 256 void bn_set_static_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() [all …]
|
D | rsaz_exp.h | 36 void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16], const BN_ULONG base_norm[16], 37 const BN_ULONG exponent[16], 38 const BN_ULONG m_norm[16], const BN_ULONG RR[16], 39 BN_ULONG k0, 40 BN_ULONG storage_words[MOD_EXP_CTIME_STORAGE_LEN]); 66 void rsaz_1024_norm2red_avx2(BN_ULONG red[40], const BN_ULONG norm[16]); 71 void rsaz_1024_mul_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 72 const BN_ULONG b[40], const BN_ULONG n[40], BN_ULONG k); 77 void rsaz_1024_sqr_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 78 const BN_ULONG n[40], BN_ULONG k, int count); [all …]
|
D | mul.c | 74 static void bn_abs_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, in bn_abs_sub_words() 75 size_t num, BN_ULONG *tmp) { in bn_abs_sub_words() 76 BN_ULONG borrow = bn_sub_words(tmp, a, b, num); in bn_abs_sub_words() 81 static void bn_mul_normal(BN_ULONG *r, const BN_ULONG *a, size_t na, in bn_mul_normal() 82 const BN_ULONG *b, size_t nb) { in bn_mul_normal() 87 const BN_ULONG *ltmp = a; in bn_mul_normal() 91 BN_ULONG *rr = &(r[na]); in bn_mul_normal() 93 OPENSSL_memset(r, 0, na * sizeof(BN_ULONG)); in bn_mul_normal() 129 static BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, in bn_sub_part_words() 130 const BN_ULONG *b, int cl, int dl) { in bn_sub_part_words() [all …]
|
D | generic.c | 113 BN_ULONG high, low, ret, tmp = (a); \ 126 BN_ULONG high, low, ret, ta = (a); \ 136 BN_ULONG tmp = (a); \ 142 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_add_words() 143 BN_ULONG w) { in bn_mul_add_words() 144 BN_ULONG c1 = 0; in bn_mul_add_words() 170 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_words() 171 BN_ULONG w) { in bn_mul_words() 172 BN_ULONG c1 = 0; in bn_mul_words() 196 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n) { in bn_sqr_words() [all …]
|
D | div.c | 69 OPENSSL_UNUSED static BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, in bn_div_words() 70 BN_ULONG d) { in bn_div_words() 71 BN_ULONG dh, dl, q, ret = 0, th, tl, t; in bn_div_words() 79 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i)); in bn_div_words() 139 static inline void bn_div_rem_words(BN_ULONG *quotient_out, BN_ULONG *rem_out, in bn_div_rem_words() 140 BN_ULONG n0, BN_ULONG n1, BN_ULONG d0) { in bn_div_rem_words() 170 *quotient_out = (BN_ULONG)(n / d0); in bn_div_rem_words() 198 BN_ULONG *resp, *wnump; in BN_div() 199 BN_ULONG d0, d1; in BN_div() 312 BN_ULONG q, l0; in BN_div() [all …]
|
D | random.c | 152 const BN_ULONG kOne = 1; in BN_rand() 153 const BN_ULONG kThree = 3; in BN_rand() 154 BN_ULONG mask = bit < BN_BITS2 - 1 ? (kOne << (bit + 1)) - 1 : BN_MASK2; in BN_rand() 160 RAND_bytes((uint8_t *)rnd->d, words * sizeof(BN_ULONG)); in BN_rand() 192 static crypto_word_t bn_less_than_word_mask(const BN_ULONG *a, size_t len, in bn_less_than_word_mask() 193 BN_ULONG b) { in bn_less_than_word_mask() 202 static_assert(sizeof(BN_ULONG) <= sizeof(crypto_word_t), in bn_less_than_word_mask() 214 int bn_in_range_words(const BN_ULONG *a, BN_ULONG min_inclusive, in bn_in_range_words() 215 const BN_ULONG *max_exclusive, size_t len) { in bn_in_range_words() 220 static int bn_range_to_mask(size_t *out_words, BN_ULONG *out_mask, in bn_range_to_mask() [all …]
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | internal.h | 161 #define TOBN(hi, lo) ((BN_ULONG)(hi) << 32 | (lo)) in OPENSSL_MSVC_PRAGMA() 207 (((320u * 3u) + (32u * 9u * 16u)) / sizeof(BN_ULONG)) in OPENSSL_MSVC_PRAGMA() 211 (BN_ULONG *)(x), sizeof(x) / sizeof(BN_ULONG), \ in OPENSSL_MSVC_PRAGMA() 212 sizeof(x) / sizeof(BN_ULONG), 0, BN_FLG_STATIC_DATA \ in OPENSSL_MSVC_PRAGMA() 216 #define Lw(t) ((BN_ULONG)(t)) in OPENSSL_MSVC_PRAGMA() 217 #define Hw(t) ((BN_ULONG)((t) >> BN_BITS2)) in OPENSSL_MSVC_PRAGMA() 243 void bn_select_words(BN_ULONG *r, BN_ULONG mask, const BN_ULONG *a, in OPENSSL_MSVC_PRAGMA() 244 const BN_ULONG *b, size_t num); in OPENSSL_MSVC_PRAGMA() 248 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() 256 void bn_set_static_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() [all …]
|
D | rsaz_exp.h | 36 void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16], const BN_ULONG base_norm[16], 37 const BN_ULONG exponent[16], 38 const BN_ULONG m_norm[16], const BN_ULONG RR[16], 39 BN_ULONG k0, 40 BN_ULONG storage_words[MOD_EXP_CTIME_STORAGE_LEN]); 66 void rsaz_1024_norm2red_avx2(BN_ULONG red[40], const BN_ULONG norm[16]); 71 void rsaz_1024_mul_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 72 const BN_ULONG b[40], const BN_ULONG n[40], BN_ULONG k); 77 void rsaz_1024_sqr_avx2(BN_ULONG ret[40], const BN_ULONG a[40], 78 const BN_ULONG n[40], BN_ULONG k, int count); [all …]
|
D | mul.c | 74 static void bn_abs_sub_words(BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, in bn_abs_sub_words() 75 size_t num, BN_ULONG *tmp) { in bn_abs_sub_words() 76 BN_ULONG borrow = bn_sub_words(tmp, a, b, num); in bn_abs_sub_words() 81 static void bn_mul_normal(BN_ULONG *r, const BN_ULONG *a, size_t na, in bn_mul_normal() 82 const BN_ULONG *b, size_t nb) { in bn_mul_normal() 87 const BN_ULONG *ltmp = a; in bn_mul_normal() 91 BN_ULONG *rr = &(r[na]); in bn_mul_normal() 93 OPENSSL_memset(r, 0, na * sizeof(BN_ULONG)); in bn_mul_normal() 129 static BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a, in bn_sub_part_words() 130 const BN_ULONG *b, int cl, int dl) { in bn_sub_part_words() [all …]
|
D | generic.c | 113 BN_ULONG high, low, ret, tmp = (a); \ 126 BN_ULONG high, low, ret, ta = (a); \ 136 BN_ULONG tmp = (a); \ 142 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_add_words() 143 BN_ULONG w) { in bn_mul_add_words() 144 BN_ULONG c1 = 0; in bn_mul_add_words() 170 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, size_t num, in bn_mul_words() 171 BN_ULONG w) { in bn_mul_words() 172 BN_ULONG c1 = 0; in bn_mul_words() 196 void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, size_t n) { in bn_sqr_words() [all …]
|
D | div.c | 69 OPENSSL_UNUSED static BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, in bn_div_words() 70 BN_ULONG d) { in bn_div_words() 71 BN_ULONG dh, dl, q, ret = 0, th, tl, t; in bn_div_words() 79 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i)); in bn_div_words() 139 static inline void bn_div_rem_words(BN_ULONG *quotient_out, BN_ULONG *rem_out, in bn_div_rem_words() 140 BN_ULONG n0, BN_ULONG n1, BN_ULONG d0) { in bn_div_rem_words() 170 *quotient_out = (BN_ULONG)(n / d0); in bn_div_rem_words() 198 BN_ULONG *resp, *wnump; in BN_div() 199 BN_ULONG d0, d1; in BN_div() 312 BN_ULONG q, l0; in BN_div() [all …]
|
D | random.c | 152 const BN_ULONG kOne = 1; in BN_rand() 153 const BN_ULONG kThree = 3; in BN_rand() 154 BN_ULONG mask = bit < BN_BITS2 - 1 ? (kOne << (bit + 1)) - 1 : BN_MASK2; in BN_rand() 160 RAND_bytes((uint8_t *)rnd->d, words * sizeof(BN_ULONG)); in BN_rand() 192 static crypto_word_t bn_less_than_word_mask(const BN_ULONG *a, size_t len, in bn_less_than_word_mask() 193 BN_ULONG b) { in bn_less_than_word_mask() 202 static_assert(sizeof(BN_ULONG) <= sizeof(crypto_word_t), in bn_less_than_word_mask() 214 int bn_in_range_words(const BN_ULONG *a, BN_ULONG min_inclusive, in bn_in_range_words() 215 const BN_ULONG *max_exclusive, size_t len) { in bn_in_range_words() 220 static int bn_range_to_mask(size_t *out_words, BN_ULONG *out_mask, in bn_range_to_mask() [all …]
|
D | gcd_extra.c | 24 static BN_ULONG word_is_odd_mask(BN_ULONG a) { return (BN_ULONG)0 - (a & 1); } in word_is_odd_mask() 26 static void maybe_rshift1_words(BN_ULONG *a, BN_ULONG mask, BN_ULONG *tmp, in maybe_rshift1_words() 32 static void maybe_rshift1_words_carry(BN_ULONG *a, BN_ULONG carry, in maybe_rshift1_words_carry() 33 BN_ULONG mask, BN_ULONG *tmp, in maybe_rshift1_words_carry() 42 static BN_ULONG maybe_add_words(BN_ULONG *a, BN_ULONG mask, const BN_ULONG *b, in maybe_add_words() 43 BN_ULONG *tmp, size_t num) { in maybe_add_words() 44 BN_ULONG carry = bn_add_words(tmp, a, b, num); in maybe_add_words() 84 BN_ULONG both_odd = word_is_odd_mask(u->d[0]) & word_is_odd_mask(v->d[0]); in bn_gcd_consttime() 87 BN_ULONG u_less_than_v = in bn_gcd_consttime() 88 (BN_ULONG)0 - bn_sub_words(tmp->d, u->d, v->d, width); in bn_gcd_consttime() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/ |
D | p256-x86_64.h | 47 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 50 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 51 const BN_ULONG a[P256_LIMBS], 52 const BN_ULONG b[P256_LIMBS]); 55 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS], 56 const BN_ULONG a[P256_LIMBS]); 60 static inline void ecp_nistz256_from_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_from_mont() 61 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_from_mont() 62 static const BN_ULONG ONE[P256_LIMBS] = { 1 }; in ecp_nistz256_from_mont() 68 static inline void ecp_nistz256_to_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_to_mont() [all …]
|
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/ec/ |
D | p256-nistz.h | 48 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 51 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 52 const BN_ULONG a[P256_LIMBS], 53 const BN_ULONG b[P256_LIMBS]); 56 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS], 57 const BN_ULONG a[P256_LIMBS]); 61 static inline void ecp_nistz256_from_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_from_mont() 62 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_from_mont() 63 static const BN_ULONG ONE[P256_LIMBS] = { 1 }; in ecp_nistz256_from_mont() 75 void ecp_nistz256_ord_mul_mont(BN_ULONG res[P256_LIMBS], [all …]
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | p256-nistz.h | 48 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 51 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 52 const BN_ULONG a[P256_LIMBS], 53 const BN_ULONG b[P256_LIMBS]); 56 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS], 57 const BN_ULONG a[P256_LIMBS]); 61 static inline void ecp_nistz256_from_mont(BN_ULONG res[P256_LIMBS], in ecp_nistz256_from_mont() 62 const BN_ULONG in[P256_LIMBS]) { in ecp_nistz256_from_mont() 63 static const BN_ULONG ONE[P256_LIMBS] = { 1 }; in ecp_nistz256_from_mont() 75 void ecp_nistz256_ord_mul_mont(BN_ULONG res[P256_LIMBS], [all …]
|
/external/rust/crates/ring/crypto/fipsmodule/ec/ |
D | p256-x86_64.h | 38 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 41 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 42 const BN_ULONG a[P256_LIMBS], 43 const BN_ULONG b[P256_LIMBS]); 46 void ecp_nistz256_sqr_mont(BN_ULONG res[P256_LIMBS], 47 const BN_ULONG a[P256_LIMBS]); 57 void ecp_nistz256_ord_mul_mont(BN_ULONG res[P256_LIMBS], 58 const BN_ULONG a[P256_LIMBS], 59 const BN_ULONG b[P256_LIMBS]); 64 void ecp_nistz256_ord_sqr_mont(BN_ULONG res[P256_LIMBS], [all …]
|
/external/rust/crates/ring/crypto/fipsmodule/bn/ |
D | internal.h | 137 typedef crypto_word BN_ULONG; typedef 149 #define TOBN(hi, lo) ((BN_ULONG)(hi) << 32 | (lo)) 183 void bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, 184 const BN_ULONG *np, const BN_ULONG *n0, size_t num); 186 static inline void bn_umult_lohi(BN_ULONG *low_out, BN_ULONG *high_out, in bn_umult_lohi() 187 BN_ULONG a, BN_ULONG b) { in bn_umult_lohi() 192 *low_out = (BN_ULONG)result; in bn_umult_lohi() 193 *high_out = (BN_ULONG)(result >> BN_BITS2); in bn_umult_lohi()
|