HomeSort by relevance Sort by last modified time
    Searched refs:BN_BITS2 (Results 1 - 25 of 28) sorted by null

1 2

  /external/chromium_org/third_party/boringssl/src/crypto/bn/
shift.c 67 nw = n / BN_BITS2;
71 lb = n % BN_BITS2;
72 rb = BN_BITS2 - lb;
130 nw = n / BN_BITS2;
131 rb = n % BN_BITS2;
132 lb = BN_BITS2 - rb;
137 i = (BN_num_bits(a) - n + (BN_BITS2 - 1)) / BN_BITS2;
213 i = n / BN_BITS2;
214 j = n % BN_BITS2;
    [all...]
montgomery.c 192 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
194 #if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2 <= 32)
195 /* Only certain BN_BITS2<=32 platforms actually make use of
201 if (!BN_set_bit(R, 2 * BN_BITS2)) {
216 if (!BN_lshift(Ri, Ri, 2 * BN_BITS2)) {
244 if (!BN_set_bit(R, BN_BITS2)) {
255 if (!BN_lshift(Ri, Ri, BN_BITS2)) {
bn.c 235 return max*BN_BITS2 + BN_num_bits_word(bn->d[max]);
285 if (words > (INT_MAX / (4 * BN_BITS2))) {
313 return bn_wexpand(bn, (bits+BN_BITS2-1)/BN_BITS2);
div.c 73 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
168 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
173 norm_shift += BN_BITS2;
267 q = (BN_ULONG)(((((BN_ULLONG)n0) << BN_BITS2) | n1) / d0);
281 if (t2 <= ((((BN_ULLONG)rem) << BN_BITS2) | wnump[-2]))
575 j = BN_BITS2 - BN_num_bits_word(w);
616 ret = (BN_ULLONG)(((ret << (BN_ULLONG)BN_BITS2) | a->d[i]) % (BN_ULLONG)w);
internal.h 218 #define LHBITS(a) (((a) >> BN_BITS2) & BN_MASKl)
219 #define LL2HBITS(a) ((BN_ULLONG)((a) & BN_MASKl) << BN_BITS2)
generic.c 171 #define LHBITS(a) (((a) >> BN_BITS2) & BN_MASKl)
172 #define LL2HBITS(a) ((BN_ULLONG)((a) & BN_MASKl) << BN_BITS2)
425 return (BN_ULONG)(((((BN_ULLONG)h) << BN_BITS2) | l) / (BN_ULLONG)d);
440 assert((i == BN_BITS2) || (h <= (BN_ULONG)1 << i));
442 i = BN_BITS2 - i;
449 h = (h << i) | (l >> (BN_BITS2 - i));
515 ll >>= BN_BITS2;
518 ll >>= BN_BITS2;
521 ll >>= BN_BITS2;
524 ll >>= BN_BITS2;
    [all...]
convert.c 214 for (j = BN_BITS2 - 8; j >= 0; j -= 8) {
462 for (j = BN_BITS2 - 4; j >= 0; j -= 4) {
exponentiation.c 688 if (m->d[j - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
691 /* 2^(top*BN_BITS2) - m */
961 if (m->d[top - 1] & (((BN_ULONG)1) << (BN_BITS2 - 1))) {
962 /* 2^(top*BN_BITS2) - m */
1071 int max_bits = p->top * BN_BITS2;
    [all...]
prime.c 461 char is_single_word = bits <= BN_BITS2;
    [all...]
  /external/openssl/crypto/bn/
bn_shift.c 145 nw=n/BN_BITS2;
147 lb=n%BN_BITS2;
148 rb=BN_BITS2-lb;
180 nw=n/BN_BITS2;
181 rb=n%BN_BITS2;
182 lb=BN_BITS2-rb;
188 i = (BN_num_bits(a)-n+(BN_BITS2-1))/BN_BITS2;
exptest.c 146 c=(c%BN_BITS)-BN_BITS2;
150 c=(c%BN_BITS)-BN_BITS2;
154 c=(c%BN_BITS)-BN_BITS2;
bn_mont.c 376 mont->ri=(BN_num_bits(mod)+(BN_BITS2-1))/BN_BITS2*BN_BITS2;
378 #if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
379 /* Only certain BN_BITS2<=32 platforms actually make use of
385 if (!(BN_set_bit(R,2*BN_BITS2))) goto err;
393 if (!BN_lshift(Ri,Ri,2*BN_BITS2)) goto err; /* R*Ri */
415 if (!(BN_set_bit(R,BN_BITS2))) goto err; /* R */
423 if (!BN_lshift(Ri,Ri,BN_BITS2)) goto err; /* R*Ri */
bn_lib.c 235 return ((i*BN_BITS2) + BN_num_bits_word(a->d[i]));
307 if (words > (INT_MAX/(4*BN_BITS2)))
716 i=n/BN_BITS2;
717 j=n%BN_BITS2;
738 i=n/BN_BITS2;
739 j=n%BN_BITS2;
753 i=n/BN_BITS2;
754 j=n%BN_BITS2;
766 w=n/BN_BITS2;
767 b=n%BN_BITS2;
    [all...]
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
    [all...]
bn_div.c 137 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
237 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2);
240 norm_shift+=BN_BITS2;
337 q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0);
358 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2]))
bn_gf2m.c 128 /* Product of two polynomials a, b each with degree < BN_BITS2 - 1,
206 /* Product of two polynomials a, b each with degree < 2 * BN_BITS2 - 1,
207 * result is a polynomial r with degree < 4 * BN_BITS2 - 1
297 dN = p[0] / BN_BITS2;
308 d0 = n % BN_BITS2; d1 = BN_BITS2 - d0;
309 n /= BN_BITS2;
316 d0 = p[0] % BN_BITS2;
317 d1 = BN_BITS2 - d0;
326 d0 = p[0] % BN_BITS2;
    [all...]
bn_word.c 83 ret=(BN_ULLONG)(((ret<<(BN_ULLONG)BN_BITS2)|a->d[i])%
105 j = BN_BITS2 - BN_num_bits_word(w);
bn.h 184 #define BN_BITS2 64
212 #define BN_BITS2 64
241 #define BN_BITS2 32
320 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
703 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
704 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
783 #define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2
    [all...]
bn_print.c 85 for (j=BN_BITS2-8; j >= 0; j-=8)
343 for (j=BN_BITS2-4; j >= 0; j-=4)
bn_asm.c 232 return((BN_ULONG)(((((BN_ULLONG)h)<<BN_BITS2)|l)/(BN_ULLONG)d));
247 assert((i == BN_BITS2) || (h <= (BN_ULONG)1<<i));
249 i=BN_BITS2-i;
255 h=(h<<i)|(l>>(BN_BITS2-i));
318 ll>>=BN_BITS2;
321 ll>>=BN_BITS2;
324 ll>>=BN_BITS2;
327 ll>>=BN_BITS2;
335 ll>>=BN_BITS2;
bn_lcl.h 310 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
413 #define LHBITS(a) (((a)>>BN_BITS2)&BN_MASKl)
414 #define LL2HBITS(a) ((BN_ULLONG)((a)&BN_MASKl)<<BN_BITS2)
  /external/openssl/crypto/ec/
ec2_smpl.c 189 if (bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0;
190 if (bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) return 0;
214 if(bn_wexpand(&group->a, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err;
219 if(bn_wexpand(&group->b, (int)(group->poly[0] + BN_BITS2 - 1) / BN_BITS2) == NULL) goto err;
  /external/openssl/include/openssl/
bn.h 184 #define BN_BITS2 64
212 #define BN_BITS2 64
241 #define BN_BITS2 32
320 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
703 #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
704 (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
783 #define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2
    [all...]
  /external/chromium_org/third_party/boringssl/src/crypto/dh/
params.c 60 #if BN_BITS2 == 64
134 #elif BN_BITS2 == 32
210 #error "unsupported BN_BITS2"
  /external/chromium_org/third_party/boringssl/src/include/openssl/
bn.h 143 #define BN_BITS2 64
146 #define BN_BITS2 32
    [all...]

Completed in 142 milliseconds

1 2