Searched refs:BN_ULONG (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-10.1-release/crypto/openssl/crypto/bn/
H A Dbn_lcl.h234 # define BN_UMULT_HIGH(a,b) (BN_ULONG)asm("umulh %a0,%a1,%v0",(a),(b))
237 register BN_ULONG ret; \
246 register BN_ULONG ret; \
256 register BN_ULONG ret,discard; \
287 register BN_ULONG ret; \
304 # define Lw(t) (((BN_ULONG)(t))&BN_MASK2)
305 # define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2)
311 BN_ULONG *ftl = &(a)->d[(a)->top-1]; \
343 BN_ULONG high,low,ret,tmp=(a); \
355 BN_ULONG hig
[all...]
H A Dbn_asm.c71 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
72 BN_ULONG w)
74 BN_ULONG c1 = 0;
101 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
103 BN_ULONG c
[all...]
H A Dbn_word.c63 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
66 BN_ULONG ret = 0;
73 return (BN_ULONG)-1;
86 return ((BN_ULONG)ret);
89 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w)
91 BN_ULONG ret = 0;
99 return (BN_ULONG)-1;
107 return (BN_ULONG)
[all...]
H A Dbn_sqr.c97 BN_ULONG t[8];
104 BN_ULONG t[16];
112 BN_ULONG t[BN_SQR_RECURSIVE_SIZE_NORMAL * 2];
117 j = BN_num_bits_word((BN_ULONG)al);
157 void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
160 const BN_ULONG *ap;
161 BN_ULONG *rp;
204 void bn_sqr_recursive(BN_ULONG *
[all...]
H A Dbn_lib.c138 static const BN_ULONG data_one = 1L;
140 { (BN_ULONG *)&data_one, 1, 1, 0, BN_FLG_STATIC_DATA };
145 int BN_num_bits_word(BN_ULONG l)
287 static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
289 BN_ULONG *A, *a = NULL;
290 const BN_ULONG *B;
303 a = A = (BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG) * words);
315 memset(a, 0, sizeof(BN_ULONG) * words);
332 BN_ULONG a
[all...]
H A Dbn_nist.c70 static const BN_ULONG _nist_p_192[][BN_NIST_192_TOP] = {
76 static const BN_ULONG _nist_p_192_sqr[] = {
81 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = {
89 static const BN_ULONG _nist_p_224_sqr[] = {
96 static const BN_ULONG _nist_p_256[][BN_NIST_256_TOP] = {
109 static const BN_ULONG _nist_p_256_sqr[] = {
116 static const BN_ULONG _nist_p_384[][BN_NIST_384_TOP] = {
129 static const BN_ULONG _nist_p_384_sqr[] = {
136 static const BN_ULONG _nist_p_521[] =
144 static const BN_ULONG _nist_p_521_sq
[all...]
H A Dbn_mul.c82 BN_ULONG bn_sub_part_words(BN_ULONG *r,
83 const BN_ULONG *a, const BN_ULONG *b,
86 BN_ULONG c, t;
226 BN_ULONG bn_add_part_words(BN_ULONG *r,
227 const BN_ULONG *a, const BN_ULONG *b,
230 BN_ULONG
[all...]
H A Dbn.h183 # define BN_ULONG unsigned long macro
212 # define BN_ULONG unsigned long long macro
241 # define BN_ULONG unsigned int macro
332 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit
348 BN_ULONG n0[2]; /* least significant word(s) of Ni; (type
349 * changed with 0.9.9, was "BN_ULONG n0;"
419 # define BN_abs_is_word(a,w) ((((a)->top == 1) && ((a)->d[0] == (BN_ULONG)(w))) || \
454 int BN_num_bits_word(BN_ULONG);
502 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG
[all...]
H A Dbn_div.c195 BN_ULONG *resp, *wnump;
196 BN_ULONG d0, d1;
341 BN_ULONG q, l0;
344 * to calculate a BN_ULONG q such that | wnum - sdiv * q | < sdiv
347 BN_ULONG bn_div_3_words(BN_ULONG *, BN_ULONG, BN_ULONG);
350 BN_ULONG n0, n1, rem = 0;
362 q = (BN_ULONG)(((((BN_ULLON
[all...]
H A Dbn_print.c113 BN_ULONG *bn_data = NULL, *lp;
125 bn_data = OPENSSL_malloc(bn_data_num * sizeof(BN_ULONG));
148 if (*lp == (BN_ULONG)-1)
185 BN_ULONG l = 0;
261 BN_ULONG l = 0;
394 (int)sizeof(BN_ULLONG) * 8, (int)sizeof(BN_ULONG) * 8);
397 (int)sizeof(BN_ULONG) * 8, (int)sizeof(BN_ULONG) * 8);
H A Dbn_gf2m.c106 static const BN_ULONG SQR_tb[16] = { 0, 1, 4, 5, 16, 17, 20, 21,
139 static void bn_GF2m_mul_1x1(BN_ULONG *r1, BN_ULONG *r0, const BN_ULONG a,
140 const BN_ULONG b)
142 register BN_ULONG h, l, s;
143 BN_ULONG tab[8], top2b = a >> 30;
144 register BN_ULONG a1, a2, a4;
208 static void bn_GF2m_mul_1x1(BN_ULONG *r1, BN_ULONG *r
[all...]
H A Dbn_shift.c65 register BN_ULONG *ap, *rp, t, c;
98 BN_ULONG *ap, *rp, t, c;
134 BN_ULONG *t, *f;
135 BN_ULONG l;
176 BN_ULONG *t, *f;
177 BN_ULONG l, tmp;
H A Dbn_exp.c237 BN_ULONG A = a->d[0];
543 BN_ULONG *table = (BN_ULONG *)buf;
561 volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
568 BN_ULONG acc = 0;
572 ((BN_ULONG)0 - (constant_time_eq_int(j,idx)&1));
579 BN_ULONG y0, y1, y2, y3;
584 y0 = (BN_ULONG)0 - (constant_time_eq_int(i,0)&1);
585 y1 = (BN_ULONG)
[all...]
H A Dbn_mont.c181 BN_ULONG *ap, *np, *rp, n0, v, carry;
204 memset(&(rp[r->top]), 0, (max - r->top) * sizeof(BN_ULONG));
225 v = bn_mul_add_words(rp, np, nl, (BN_ULONG)t1);
247 BN_ULONG *nrp;
257 (BN_ULONG *)(((PTR_SIZE_INT) rp & ~m) | ((PTR_SIZE_INT) ap & m));
260 BN_ULONG t1, t2, t3, t4;
280 memcpy(rp, ap, nl * sizeof(BN_ULONG));
387 BN_ULONG buf[2];
423 if (bn_expand(Ri, (int)sizeof(BN_ULONG) * 2) == NULL)
H A Dbn_prime.c193 /* if (BN_mod_word(ret,(BN_ULONG)3) == 1) goto loop; */
382 BN_ULONG delta, maxdelta;
389 mods[i] = (prime_t) BN_mod_word(rnd, (BN_ULONG)primes[i]);
442 if (BN_mod_word(rnd, (BN_ULONG)primes[i]) <= 1) {
501 if ((BN_mod_word(p, (BN_ULONG)primes[i]) == 0) ||
502 (BN_mod_word(q, (BN_ULONG)primes[i]) == 0)) {
H A Dbn_kron.c60 #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])
/freebsd-10.1-release/crypto/openssl/crypto/
H A Dppccap.c18 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
19 const BN_ULONG *np, const BN_ULONG *n0, int num)
21 int bn_mul_mont_fpu64(BN_ULONG *rp, const BN_ULONG *ap,
22 const BN_ULONG *bp, const BN_ULONG *np,
23 const BN_ULONG *n
[all...]
H A Dsparcv9cap.c17 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
18 const BN_ULONG *np, const BN_ULONG *n0, int num)
20 int bn_mul_mont_fpu(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
21 const BN_ULONG *np, const BN_ULONG *n
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/bn/asm/
H A Dx86_64-gcc.c59 # define BN_ULONG unsigned long long macro
61 # define BN_ULONG unsigned long macro
74 register BN_ULONG high,low; \
91 register BN_ULONG high,low; \
109 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num,
110 BN_ULONG w)
112 BN_ULONG c1 = 0;
140 BN_ULONG bn_mul_word
[all...]
H A Dpa-risc2.s80 ;BN_ULONG bn_mul_add_words(BN_ULONG *r_ptr, BN_ULONG *a_ptr,
81 ; int num, BN_ULONG w)
293 ;BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
452 ;void bn_sqr_words(BN_ULONG *rp, BN_ULONG *a
[all...]
/freebsd-10.1-release/games/factor/
H A Dfactor.c90 typedef u_long BN_ULONG; typedef
101 static BN_ULONG BN_div_word(BIGNUM *, BN_ULONG);
203 if (BN_mod_word(val, (BN_ULONG)*fact) == 0)
231 BN_div_word(val, (BN_ULONG)*fact);
232 } while (BN_mod_word(val, (BN_ULONG)*fact) == 0);
363 static BN_ULONG
364 BN_div_word(BIGNUM *a, BN_ULONG b)
366 BN_ULONG mod;
/freebsd-10.1-release/crypto/openssl/engines/
H A De_sureware.c717 bn_expand2(rsatmp->e, el / sizeof(BN_ULONG));
718 bn_expand2(rsatmp->n, el / sizeof(BN_ULONG));
719 if (rsatmp->e->dmax != (int)(el / sizeof(BN_ULONG)) ||
720 rsatmp->n->dmax != (int)(el / sizeof(BN_ULONG)))
732 rsatmp->e->top = el / sizeof(BN_ULONG);
734 rsatmp->n->top = el / sizeof(BN_ULONG);
759 bn_expand2(dsatmp->pub_key, el / sizeof(BN_ULONG));
760 bn_expand2(dsatmp->p, el / sizeof(BN_ULONG));
761 bn_expand2(dsatmp->q, 20 / sizeof(BN_ULONG));
762 bn_expand2(dsatmp->g, el / sizeof(BN_ULONG));
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/rsa/
H A Drsa_lib.c299 BN_ULONG *ul;
310 off = k / sizeof(BN_ULONG) + 1;
314 if ((p = OPENSSL_malloc_locked((off + j) * sizeof(BN_ULONG))) == NULL) {
319 ul = (BN_ULONG *)&(p[off]);
326 memcpy((char *)ul, b->d, sizeof(BN_ULONG) * b->top);
/freebsd-10.1-release/crypto/openssl/crypto/srp/
H A Dsrp_grps.h3 static BN_ULONG bn_group_1024_value[] = {
24 (sizeof bn_group_1024_value) / sizeof(BN_ULONG),
25 (sizeof bn_group_1024_value) / sizeof(BN_ULONG),
30 static BN_ULONG bn_group_1536_value[] = {
59 (sizeof bn_group_1536_value) / sizeof(BN_ULONG),
60 (sizeof bn_group_1536_value) / sizeof(BN_ULONG),
65 static BN_ULONG bn_group_2048_value[] = {
102 (sizeof bn_group_2048_value) / sizeof(BN_ULONG),
103 (sizeof bn_group_2048_value) / sizeof(BN_ULONG),
108 static BN_ULONG bn_group_3072_valu
[all...]
/freebsd-10.1-release/crypto/openssl/crypto/dh/
H A Ddh_check.c78 BN_ULONG l;

Completed in 232 milliseconds

12