/external/boringssl/src/crypto/bn/ |
rsaz_exp.h | 48 void RSAZ_1024_mod_exp_avx2(BN_ULONG result[16], 49 const BN_ULONG base_norm[16], const BN_ULONG exponent[16], 50 const BN_ULONG m_norm[16], const BN_ULONG RR[16], BN_ULONG k0); 53 void RSAZ_512_mod_exp(BN_ULONG result[8], 54 const BN_ULONG base_norm[8], const BN_ULONG exponent[8], 55 const BN_ULONG m_norm[8], BN_ULONG k0, const BN_ULONG RR[8]) [all...] |
internal.h | 160 #define TOBN(hi, lo) ((BN_ULONG)hi << 32 | lo) 192 (BN_ULONG *)x, sizeof(x) / sizeof(BN_ULONG), \ 193 sizeof(x) / sizeof(BN_ULONG), 0, BN_FLG_STATIC_DATA \ 197 #define Lw(t) (((BN_ULONG)(t))&BN_MASK2) 198 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2) 201 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) [all...] |
generic.c | 100 BN_ULONG high, low, ret, tmp = (a); \ 113 BN_ULONG high, low, ret, ta = (a); \ 123 BN_ULONG tmp = (a); \ 143 BN_ULONG m, m1, lt, ht; \ 153 ht += L2HBITS((BN_ULONG)1); \ 165 BN_ULONG l, h, m; \ 184 BN_ULONG l, h; \ 205 BN_ULONG l, h; \ 223 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num [all...] |
cmp.c | 64 BN_ULONG t1, t2, *ap, *bp; 87 BN_ULONG t1, t2; 133 int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n) { 135 BN_ULONG aa, bb; 153 int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl) { 175 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { 194 int BN_is_word(const BIGNUM *bn, BN_ULONG w) {
|
rsaz_exp.c | 55 void rsaz_1024_mul_avx2(void *ret,const void *a,const void *b,const void *n,BN_ULONG k); 56 void rsaz_1024_sqr_avx2(void *ret,const void *a,const void *n,BN_ULONG k,int cnt); 72 ALIGN64 static const BN_ULONG one[40] = 74 ALIGN64 static const BN_ULONG two80[40] = 77 void RSAZ_1024_mod_exp_avx2(BN_ULONG result_norm[16], 78 const BN_ULONG base_norm[16], const BN_ULONG exponent[16], 79 const BN_ULONG m_norm[16], const BN_ULONG RR[16], BN_ULONG k0 [all...] |
mul.c | 65 void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) { 66 BN_ULONG *rr; 70 BN_ULONG *ltmp; 110 void bn_mul_low_normal(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) { 146 static BN_ULONG bn_sub_part_words(BN_ULONG *r, const BN_ULONG *a [all...] |
div.c | 119 BN_ULONG *resp, *wnump; 120 BN_ULONG d0, d1; 252 BN_ULONG q, l0; 254 * calculate a BN_ULONG q such that | wnum - sdiv * q | < sdiv */ 255 BN_ULONG n0, n1, rem = 0; 267 q = (BN_ULONG)(((((BN_ULLONG)n0) << BN_BITS2) | n1) / d0); 292 BN_ULONG t2l, t2h; 311 BN_ULONG ql, qh; 341 * BN_ULONG arrays with bn_sub_words */ 564 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w) [all...] |
convert.c | 75 BN_ULONG word = 0; 123 BN_ULONG l; 135 static BN_ULONG constant_time_select_ulong(int v, BN_ULONG x, BN_ULONG y) { 136 BN_ULONG mask = v; 153 static BN_ULONG read_word_padded(const BIGNUM *in, size_t i) { 155 BN_ULONG l = in->d[constant_time_select_ulong( 164 BN_ULONG l; 255 /* Decode one |BN_ULONG| at a time. * [all...] |
bn.c | 169 static const BN_ULONG kOneLimbs[1] = { 1 }; 183 unsigned BN_num_bits_word(BN_ULONG l) { 253 int BN_set_word(BIGNUM *bn, BN_ULONG value) { 282 BN_ULONG *a; 298 a = (BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG) * words); 304 memcpy(a, bn->d, sizeof(BN_ULONG) * bn->top); 322 BN_ULONG *ftl;
|
shift.c | 68 BN_ULONG *t, *f; 69 BN_ULONG l; 105 BN_ULONG *ap, *rp, t, c; 137 BN_ULONG *t, *f; 138 BN_ULONG l, tmp; 189 BN_ULONG *ap, *rp, t, c; 240 a->d[i] |= (((BN_ULONG)1) << j); 258 a->d[i] &= (~(((BN_ULONG)1) << j));
|
montgomery.c | 169 BN_ULONG buf[2]; 223 if (bn_expand(Ri, (int)sizeof(BN_ULONG) * 2) == NULL) { 333 BN_ULONG *ap, *np, *rp, n0, v, carry; 354 memset(&rp[r->top], 0, (max - r->top) * sizeof(BN_ULONG)); 378 BN_ULONG *nrp; 385 nrp = (BN_ULONG *)(((intptr_t)rp & ~m) | ((intptr_t)ap & m)); 388 BN_ULONG t1, t2, t3, t4; 421 BN_ULONG *ap,*np,*rp,n0,v,carry; 440 memset(&(rp[r->top]),0,(max-r->top)*sizeof(BN_ULONG)); 463 BN_ULONG *nrp [all...] |
prime.c | 635 static BN_ULONG get_word(const BIGNUM *bn) { 645 BN_ULONG delta; 646 BN_ULONG maxdelta = BN_MASK2 - primes[NUMPRIMES - 1]; 656 mods[i] = (uint16_t)BN_mod_word(rnd, (BN_ULONG)primes[i]); 661 BN_ULONG size_limit; 664 size_limit = ~((BN_ULONG)0) - get_word(rnd); 666 size_limit = (((BN_ULONG)1) << bits) - get_word(rnd) - 1; 676 BN_ULONG rnd_word = get_word(rnd); 756 if (BN_mod_word(rnd, (BN_ULONG)primes[i]) <= 1) { [all...] |
add.c | 106 BN_ULONG *ap, *bp, *rp, carry, t1, t2; 162 int BN_add_word(BIGNUM *a, BN_ULONG w) { 163 BN_ULONG l; 263 register BN_ULONG t1, t2, *ap, *bp, *rp; 327 int BN_sub_word(BIGNUM *a, BN_ULONG w) {
|
exponentiation.c | 127 void bn_mul_mont_gather5(BN_ULONG *rp, const BN_ULONG *ap, const void *table, 128 const BN_ULONG *np, const BN_ULONG *n0, int num, 130 void bn_scatter5(const BN_ULONG *inp, size_t num, void *table, size_t power); 131 void bn_gather5(BN_ULONG *out, size_t num, void *table, size_t power); 132 void bn_power5(BN_ULONG *rp, const BN_ULONG *ap, const void *table, 133 const BN_ULONG *np, const BN_ULONG *n0, int num, int power) [all...] |
kronecker.c | 59 #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])
|
bn_test.cc | 830 static void print_word(FILE *fp, BN_ULONG w) { 852 BN_ULONG s = b->d[0]; 853 BN_ULONG r = BN_div_word(b.get(), s); 854 if (r == (BN_ULONG)-1) { [all...] |
/external/boringssl/src/crypto/ec/ |
p256-x86_64.c | 54 BN_ULONG X[P256_LIMBS]; 55 BN_ULONG Y[P256_LIMBS]; 56 BN_ULONG Z[P256_LIMBS]; 60 BN_ULONG X[P256_LIMBS]; 61 BN_ULONG Y[P256_LIMBS]; 69 void ecp_nistz256_neg(BN_ULONG res[P256_LIMBS], const BN_ULONG a[P256_LIMBS]); 71 void ecp_nistz256_mul_mont(BN_ULONG res[P256_LIMBS], 72 const BN_ULONG a[P256_LIMBS], 73 const BN_ULONG b[P256_LIMBS]) [all...] |
ec.c | 467 !BN_set_word(&group->cofactor, (BN_ULONG)data->cofactor)) {
|
/external/boringssl/src/crypto/bn/asm/ |
x86_64-gcc.c | 73 register BN_ULONG high, low; \ 88 register BN_ULONG high, low; \ 99 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, 100 BN_ULONG w) { 101 BN_ULONG c1 = 0; 132 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) [all...] |
/external/boringssl/src/crypto/dh/ |
params.c | 61 static const BN_ULONG dh1024_160_p[] = { 71 static const BN_ULONG dh1024_160_g[] = { 81 static const BN_ULONG dh1024_160_q[] = { 85 static const BN_ULONG dh2048_224_p[] = { 104 static const BN_ULONG dh2048_224_g[] = { 123 static const BN_ULONG dh2048_224_q[] = { 128 static const BN_ULONG dh2048_256_p[] = { 146 static const BN_ULONG dh2048_256_g[] = { 164 static const BN_ULONG dh2048_256_q[] = { 171 static const BN_ULONG dh1024_safe_prime_1[] = [all...] |
check.c | 103 BN_ULONG l;
|
/external/boringssl/src/include/openssl/ |
bn.h | 142 /* BN_ULONG is the native word size when working with big integers. 149 #define BN_ULONG uint64_t 155 #define BN_ULONG uint32_t 222 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value); 301 OPENSSL_EXPORT BN_ULONG BN_get_word(const BIGNUM *bn); 384 OPENSSL_EXPORT int BN_add_word(BIGNUM *a, BN_ULONG w); 397 OPENSSL_EXPORT int BN_sub_word(BIGNUM *a, BN_ULONG w); 406 OPENSSL_EXPORT int BN_mul_word(BIGNUM *bn, BN_ULONG w); 423 * remainder or (BN_ULONG)-1 on error. */ 424 OPENSSL_EXPORT BN_ULONG BN_div_word(BIGNUM *numerator, BN_ULONG divisor) [all...] |
/libcore/luni/src/main/native/ |
java_math_NativeBN.cpp | 134 static_assert(sizeof(dw) == sizeof(BN_ULONG) || 135 sizeof(dw) == 2*sizeof(BN_ULONG), "Unknown BN configuration"); 137 if (sizeof(dw) == sizeof(BN_ULONG)) { 139 } else if (sizeof(dw) == 2 * sizeof(BN_ULONG)) { 263 int wLen = (bytesLen + sizeof(BN_ULONG) - 1) / sizeof(BN_ULONG); 266 BN_ULONG* d = ret->d; 267 BN_ULONG di; 269 int highBytes = bytesLen % sizeof(BN_ULONG); 274 k -= sizeof(BN_ULONG); [all...] |
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
poloutil.cc | 67 BN_ULONG value = bn->d[0];
|
/external/ipsec-tools/src/racoon/ |
crypto_openssl.c | [all...] |