Searched refs:BN_BITS2 (Results 1 - 25 of 65) sorted by relevance

123

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/bn/
H A Dbn_shift.c142 nw=n/BN_BITS2;
144 lb=n%BN_BITS2;
145 rb=BN_BITS2-lb;
177 nw=n/BN_BITS2;
178 rb=n%BN_BITS2;
179 lb=BN_BITS2-rb;
H A Dbn_nist.c62 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
63 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
64 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
65 #define BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2
66 #define BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2
[all...]
H A Dexptest.c109 c=(c%BN_BITS)-BN_BITS2;
113 c=(c%BN_BITS)-BN_BITS2;
117 c=(c%BN_BITS)-BN_BITS2;
H A Dbn_mont.c172 al=ri=mont->ri/BN_BITS2;
341 mont->ri=(BN_num_bits(mod)+(BN_BITS2-1))/BN_BITS2*BN_BITS2;
343 if (!(BN_set_bit(R,BN_BITS2))) goto err; /* R */
354 if (!BN_lshift(Ri,Ri,BN_BITS2)) goto err; /* R*Ri */
H A Dbn_lib.c254 return ((i*BN_BITS2) + BN_num_bits_word(a->d[i]));
326 if (words > (INT_MAX/(4*BN_BITS2)))
726 i=n/BN_BITS2;
727 j=n%BN_BITS2;
748 i=n/BN_BITS2;
749 j=n%BN_BITS2;
763 i=n/BN_BITS2;
764 j=n%BN_BITS2;
776 w=n/BN_BITS2;
777 b=n%BN_BITS2;
[all...]
H A Dbn_div.c137 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
217 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2);
220 norm_shift+=BN_BITS2;
292 q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0);
313 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2]))
H A Dbn_word.c83 ret=(BN_ULLONG)(((ret<<(BN_ULLONG)BN_BITS2)|a->d[i])%
105 j = BN_BITS2 - BN_num_bits_word(w);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/bn/
H A Dbn_shift.c146 nw = n / BN_BITS2;
149 lb = n % BN_BITS2;
150 rb = BN_BITS2 - lb;
187 nw = n / BN_BITS2;
188 rb = n % BN_BITS2;
189 lb = BN_BITS2 - rb;
194 i = (BN_num_bits(a) - n + (BN_BITS2 - 1)) / BN_BITS2;
H A Dbn_mont.c397 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
399 # if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
401 * Only certain BN_BITS2<=32 platforms actually make use of n0[1],
408 if (!(BN_set_bit(R, 2 * BN_BITS2)))
419 if (!BN_lshift(Ri, Ri, 2 * BN_BITS2))
443 if (!(BN_set_bit(R, BN_BITS2)))
452 if (!BN_lshift(Ri, Ri, BN_BITS2))
H A Dbn_lib.c224 return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
295 if (words > (INT_MAX / (4 * BN_BITS2))) {
733 i = n / BN_BITS2;
734 j = n % BN_BITS2;
756 i = n / BN_BITS2;
757 j = n % BN_BITS2;
773 i = n / BN_BITS2;
774 j = n % BN_BITS2;
788 w = n / BN_BITS2;
789 b = n % BN_BITS2;
[all...]
H A Dbn_nist.c62 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
63 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
64 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
65 #define BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2
66 #define BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2
[all...]
H A Dbn_div.c146 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
255 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
259 norm_shift += BN_BITS2;
362 q = (BN_ULONG)(((((BN_ULLONG) n0) << BN_BITS2) | n1) / d0);
381 if (t2 <= ((((BN_ULLONG) rem) << BN_BITS2) | wnump[-2]))
H A Dbn_gf2m.c134 * Product of two polynomials a, b each with degree < BN_BITS2 - 1, result is
306 * Product of two polynomials a, b each with degree < 2 * BN_BITS2 - 1,
307 * result is a polynomial r with degree < 4 * BN_BITS2 - 1 The caller MUST
400 dN = p[0] / BN_BITS2;
412 d0 = n % BN_BITS2;
413 d1 = BN_BITS2 - d0;
414 n /= BN_BITS2;
422 d0 = p[0] % BN_BITS2;
423 d1 = BN_BITS2 - d0;
432 d0 = p[0] % BN_BITS2;
[all...]
H A Dbn_word.c82 ret = (BN_ULLONG) (((ret << (BN_ULLONG) BN_BITS2) | a->d[i]) %
104 j = BN_BITS2 - BN_num_bits_word(w);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/bn/
H A Dbn_shift.c146 nw = n / BN_BITS2;
149 lb = n % BN_BITS2;
150 rb = BN_BITS2 - lb;
187 nw = n / BN_BITS2;
188 rb = n % BN_BITS2;
189 lb = BN_BITS2 - rb;
194 i = (BN_num_bits(a) - n + (BN_BITS2 - 1)) / BN_BITS2;
H A Dbn_mont.c397 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
399 # if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
401 * Only certain BN_BITS2<=32 platforms actually make use of n0[1],
408 if (!(BN_set_bit(R, 2 * BN_BITS2)))
419 if (!BN_lshift(Ri, Ri, 2 * BN_BITS2))
443 if (!(BN_set_bit(R, BN_BITS2)))
452 if (!BN_lshift(Ri, Ri, BN_BITS2))
H A Dbn_lib.c224 return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
295 if (words > (INT_MAX / (4 * BN_BITS2))) {
733 i = n / BN_BITS2;
734 j = n % BN_BITS2;
756 i = n / BN_BITS2;
757 j = n % BN_BITS2;
773 i = n / BN_BITS2;
774 j = n % BN_BITS2;
788 w = n / BN_BITS2;
789 b = n % BN_BITS2;
[all...]
H A Dbn_nist.c62 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
63 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
64 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
65 #define BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2
66 #define BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2
[all...]
H A Dbn_div.c146 * in reply to ((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0 (I fail to
255 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2);
259 norm_shift += BN_BITS2;
362 q = (BN_ULONG)(((((BN_ULLONG) n0) << BN_BITS2) | n1) / d0);
381 if (t2 <= ((((BN_ULLONG) rem) << BN_BITS2) | wnump[-2]))
H A Dbn_gf2m.c134 * Product of two polynomials a, b each with degree < BN_BITS2 - 1, result is
306 * Product of two polynomials a, b each with degree < 2 * BN_BITS2 - 1,
307 * result is a polynomial r with degree < 4 * BN_BITS2 - 1 The caller MUST
400 dN = p[0] / BN_BITS2;
412 d0 = n % BN_BITS2;
413 d1 = BN_BITS2 - d0;
414 n /= BN_BITS2;
422 d0 = p[0] % BN_BITS2;
423 d1 = BN_BITS2 - d0;
432 d0 = p[0] % BN_BITS2;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/test/
H A Dexptest.c109 c=(c%BN_BITS)-BN_BITS2;
113 c=(c%BN_BITS)-BN_BITS2;
117 c=(c%BN_BITS)-BN_BITS2;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/engines/
H A De_ubsec.c607 r->top = (BN_num_bits(m) + BN_BITS2 - 1) / BN_BITS2;
678 r->top = (BN_num_bits(p) + BN_num_bits(q) + BN_BITS2 - 1) / BN_BITS2;
767 if (!bn_wexpand(r, (160 + BN_BITS2 - 1) / BN_BITS2) ||
768 (!bn_wexpand(s, (160 + BN_BITS2 - 1) / BN_BITS2))) {
814 r->top = (160 + BN_BITS2 - 1) / BN_BITS2;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/engines/
H A De_ubsec.c599 r->top = (BN_num_bits(m)+BN_BITS2-1)/BN_BITS2;
672 r->top = (BN_num_bits(p) + BN_num_bits(q) + BN_BITS2 - 1)/BN_BITS2;
757 if(!bn_wexpand(r, (160+BN_BITS2-1)/BN_BITS2) ||
758 (!bn_wexpand(s, (160+BN_BITS2-1)/BN_BITS2))) {
798 r->top = (160+BN_BITS2-1)/BN_BITS2;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/engines/
H A De_ubsec.c607 r->top = (BN_num_bits(m) + BN_BITS2 - 1) / BN_BITS2;
678 r->top = (BN_num_bits(p) + BN_num_bits(q) + BN_BITS2 - 1) / BN_BITS2;
767 if (!bn_wexpand(r, (160 + BN_BITS2 - 1) / BN_BITS2) ||
768 (!bn_wexpand(s, (160 + BN_BITS2 - 1) / BN_BITS2))) {
814 r->top = (160 + BN_BITS2 - 1) / BN_BITS2;
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/include/bcmcrypto/
H A Dbn.h137 #define BN_BITS2 64 macro
163 #define BN_BITS2 64 macro
186 #define BN_BITS2 32 macro
214 #define BN_BITS2 16 macro
237 #define BN_BITS2 8 macro
267 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
490 #define bn_expand(a, bits) ((((((bits + BN_BITS2 - 1)) / BN_BITS2)) <= \
491 (a)->dmax) ? (a) : bn_expand2((a), (bits) / BN_BITS2 + 1))

Completed in 157 milliseconds

123