Searched refs:BN_BITS2 (Results 1 – 16 of 16) sorted by relevance
/external/openssl/crypto/bn/ |
D | bn_shift.c | 145 nw=n/BN_BITS2; in BN_lshift() 147 lb=n%BN_BITS2; in BN_lshift() 148 rb=BN_BITS2-lb; in BN_lshift() 180 nw=n/BN_BITS2; in BN_rshift() 181 rb=n%BN_BITS2; in BN_rshift() 182 lb=BN_BITS2-rb; in BN_rshift() 188 i = (BN_num_bits(a)-n+(BN_BITS2-1))/BN_BITS2; in BN_rshift()
|
D | bn_nist.c | 63 #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 518 #if BN_BITS2==64 in BN_nist_mod_224() 529 #if defined(NIST_INT64) && BN_BITS2!=64 in BN_nist_mod_224() [all …]
|
D | bn_mont.c | 376 mont->ri=(BN_num_bits(mod)+(BN_BITS2-1))/BN_BITS2*BN_BITS2; in BN_MONT_CTX_set() 378 #if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32) in BN_MONT_CTX_set() 385 if (!(BN_set_bit(R,2*BN_BITS2))) goto err; in BN_MONT_CTX_set() 393 if (!BN_lshift(Ri,Ri,2*BN_BITS2)) goto err; /* R*Ri */ in BN_MONT_CTX_set() 415 if (!(BN_set_bit(R,BN_BITS2))) goto err; /* R */ in BN_MONT_CTX_set() 423 if (!BN_lshift(Ri,Ri,BN_BITS2)) goto err; /* R*Ri */ in BN_MONT_CTX_set()
|
D | bn_lib.c | 235 return ((i*BN_BITS2) + BN_num_bits_word(a->d[i])); in BN_num_bits() 307 if (words > (INT_MAX/(4*BN_BITS2))) in bn_expand_internal() 707 i=n/BN_BITS2; in BN_set_bit() 708 j=n%BN_BITS2; in BN_set_bit() 729 i=n/BN_BITS2; in BN_clear_bit() 730 j=n%BN_BITS2; in BN_clear_bit() 744 i=n/BN_BITS2; in BN_is_bit_set() 745 j=n%BN_BITS2; in BN_is_bit_set() 757 w=n/BN_BITS2; in BN_mask_bits() 758 b=n%BN_BITS2; in BN_mask_bits()
|
D | bn_gf2m.c | 297 dN = p[0] / BN_BITS2; in BN_GF2m_mod_arr() 308 d0 = n % BN_BITS2; d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr() 309 n /= BN_BITS2; in BN_GF2m_mod_arr() 316 d0 = p[0] % BN_BITS2; in BN_GF2m_mod_arr() 317 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr() 326 d0 = p[0] % BN_BITS2; in BN_GF2m_mod_arr() 329 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr() 343 n = p[k] / BN_BITS2; in BN_GF2m_mod_arr() 344 d0 = p[k] % BN_BITS2; in BN_GF2m_mod_arr() 345 d1 = BN_BITS2 - d0; in BN_GF2m_mod_arr() [all …]
|
D | exptest.c | 109 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()
|
D | bn_div.c | 235 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); in BN_div() 238 norm_shift+=BN_BITS2; in BN_div() 335 q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0); in BN_div() 356 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2])) in BN_div()
|
D | bn_word.c | 83 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()
|
D | bn.h | 184 #define BN_BITS2 64 macro 212 #define BN_BITS2 64 macro 241 #define BN_BITS2 32 macro 697 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\ 698 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
|
D | bn_asm.c | 232 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()
|
D | bn_lcl.h | 303 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2) 406 #define LHBITS(a) (((a)>>BN_BITS2)&BN_MASKl) 407 #define LL2HBITS(a) ((BN_ULLONG)((a)&BN_MASKl)<<BN_BITS2)
|
D | bn_print.c | 85 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()
|
D | bntest.c | 505 BN_bntest_rand(&b,BN_BITS2,-1,0); in test_div_word()
|
/external/openssl/crypto/ec/ |
D | ec2_smpl.c | 188 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy() 189 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0; in ec_GF2m_simple_group_copy() 213 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err; in ec_GF2m_simple_group_set_curve() 218 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/ |
D | bn.h | 184 #define BN_BITS2 64 macro 212 #define BN_BITS2 64 macro 241 #define BN_BITS2 32 macro 697 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\ 698 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
|
/external/openssl/crypto/engine/ |
D | eng_cryptodev.c | 947 for (k = 0; k < BN_BITS2 / 8; k++) { in bn2crparam() 952 j += BN_BITS2 / 8; in bn2crparam()
|