Home
last modified time | relevance | path

Searched refs:BN_BITS2 (Results 1 – 16 of 16) sorted by relevance

/external/openssl/crypto/bn/
Dbn_nist.c63 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
64 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
65 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
66 #define BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2
67 #define BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2
70 #if BN_BITS2 == 64
142 #elif BN_BITS2 == 32
311 #if BN_BITS2 == 64
333 #if BN_BITS2 == 32
475 #if BN_BITS2==64 in BN_nist_mod_224()
[all …]
Dbn_shift.c142 nw=n/BN_BITS2; in BN_lshift()
144 lb=n%BN_BITS2; in BN_lshift()
145 rb=BN_BITS2-lb; in BN_lshift()
177 nw=n/BN_BITS2; in BN_rshift()
178 rb=n%BN_BITS2; in BN_rshift()
179 lb=BN_BITS2-rb; in BN_rshift()
Dbn_div.c236 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); in BN_div()
239 norm_shift+=BN_BITS2; in BN_div()
311 q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0); in BN_div()
332 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2])) in BN_div()
456 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); in BN_div_no_branch()
459 norm_shift+=BN_BITS2; in BN_div_no_branch()
538 q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0); in BN_div_no_branch()
559 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2])) in BN_div_no_branch()
Dbn_mont.c186 al=ri=mont->ri/BN_BITS2; in BN_from_montgomery_word()
434 mont->ri=(BN_num_bits(mod)+(BN_BITS2-1))/BN_BITS2*BN_BITS2; in BN_MONT_CTX_set()
436 #if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32) in BN_MONT_CTX_set()
443 if (!(BN_set_bit(R,2*BN_BITS2))) goto err; in BN_MONT_CTX_set()
451 if (!BN_lshift(Ri,Ri,2*BN_BITS2)) goto err; /* R*Ri */ in BN_MONT_CTX_set()
473 if (!(BN_set_bit(R,BN_BITS2))) goto err; /* R */ in BN_MONT_CTX_set()
481 if (!BN_lshift(Ri,Ri,BN_BITS2)) goto err; /* R*Ri */ in BN_MONT_CTX_set()
Dbn_lib.c254 return ((i*BN_BITS2) + BN_num_bits_word(a->d[i])); in BN_num_bits()
326 if (words > (INT_MAX/(4*BN_BITS2))) in bn_expand_internal()
726 i=n/BN_BITS2; in BN_set_bit()
727 j=n%BN_BITS2; in BN_set_bit()
748 i=n/BN_BITS2; in BN_clear_bit()
749 j=n%BN_BITS2; in BN_clear_bit()
763 i=n/BN_BITS2; in BN_is_bit_set()
764 j=n%BN_BITS2; in BN_is_bit_set()
776 w=n/BN_BITS2; in BN_mask_bits()
777 b=n%BN_BITS2; in BN_mask_bits()
Dexptest.c109 c=(c%BN_BITS)-BN_BITS2; in main()
113 c=(c%BN_BITS)-BN_BITS2; in main()
117 c=(c%BN_BITS)-BN_BITS2; in main()
Dbn_gf2m.c292 dN = p[0] / BN_BITS2; in BN_GF2m_mod_arr()
303 d0 = n % BN_BITS2; d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr()
304 n /= BN_BITS2; in BN_GF2m_mod_arr()
311 d0 = p[0] % BN_BITS2; in BN_GF2m_mod_arr()
312 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr()
321 d0 = p[0] % BN_BITS2; in BN_GF2m_mod_arr()
324 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr()
338 n = p[k] / BN_BITS2; in BN_GF2m_mod_arr()
339 d0 = p[k] % BN_BITS2; in BN_GF2m_mod_arr()
340 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr()
[all …]
Dbn_word.c83 ret=(BN_ULLONG)(((ret<<(BN_ULLONG)BN_BITS2)|a->d[i])% in BN_mod_word()
105 j = BN_BITS2 - BN_num_bits_word(w); in BN_div_word()
Dbn.h184 #define BN_BITS2 64 macro
212 #define BN_BITS2 64 macro
241 #define BN_BITS2 32 macro
682 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
683 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
Dbn_lcl.h290 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
393 #define LHBITS(a) (((a)>>BN_BITS2)&BN_MASKl)
394 #define LL2HBITS(a) ((BN_ULLONG)((a)&BN_MASKl)<<BN_BITS2)
Dbn_asm.c232 return((BN_ULONG)(((((BN_ULLONG)h)<<BN_BITS2)|l)/(BN_ULLONG)d)); in bn_div_words()
247 assert((i == BN_BITS2) || (h <= (BN_ULONG)1<<i)); in bn_div_words()
249 i=BN_BITS2-i; in bn_div_words()
255 h=(h<<i)|(l>>(BN_BITS2-i)); in bn_div_words()
318 ll>>=BN_BITS2; in bn_add_words()
321 ll>>=BN_BITS2; in bn_add_words()
324 ll>>=BN_BITS2; in bn_add_words()
327 ll>>=BN_BITS2; in bn_add_words()
335 ll>>=BN_BITS2; in bn_add_words()
Dbn_print.c85 for (j=BN_BITS2-8; j >= 0; j-=8) in BN_bn2hex()
343 for (j=BN_BITS2-4; j >= 0; j-=4) in BN_print()
Dbntest.c505 BN_bntest_rand(&b,BN_BITS2,-1,0); in test_div_word()
/external/openssl/crypto/ec/
Dec2_smpl.c179 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
180 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy()
204 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve()
209 if(bn_wexpand(&group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve()
/external/openssl/include/openssl/
Dbn.h184 #define BN_BITS2 64 macro
212 #define BN_BITS2 64 macro
241 #define BN_BITS2 32 macro
682 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
683 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
/external/openssl/crypto/engine/
Deng_cryptodev.c916 for (k = 0; k < BN_BITS2 / 8; k++) { in bn2crparam()
921 j += BN_BITS2 / 8; in bn2crparam()