/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/bn/ |
H A D | bn_lcl.h | 240 # define BN_UMULT_HIGH(a,b) (BN_ULONG)asm("umulh %a0,%a1,%v0",(a),(b)) 243 register BN_ULONG ret; \ 252 register BN_ULONG ret; \ 262 register BN_ULONG ret,discard; \ 286 register BN_ULONG ret; \ 305 #define Lw(t) (((BN_ULONG)(t))&BN_MASK2) 306 #define Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2) 312 BN_ULONG *ftl = &(a)->d[(a)->top-1]; \ 344 BN_ULONG high,low,ret,tmp=(a); \ 356 BN_ULONG hig [all...] |
H A D | bn_asm.c | 71 BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) 73 BN_ULONG c1=0; 97 BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w) 99 BN_ULONG c [all...] |
H A D | bn_word.c | 63 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w) 66 BN_ULONG ret=0; 73 return (BN_ULONG)-1; 87 return((BN_ULONG)ret); 90 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w) 92 BN_ULONG ret = 0; 100 return (BN_ULONG)-1; 108 return (BN_ULONG) [all...] |
H A D | bn_sqr.c | 95 BN_ULONG t[8]; 104 BN_ULONG t[16]; 115 BN_ULONG t[BN_SQR_RECURSIVE_SIZE_NORMAL*2]; 122 j=BN_num_bits_word((BN_ULONG)al); 159 void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp) 162 const BN_ULONG *ap; 163 BN_ULONG *rp; 207 void bn_sqr_recursive(BN_ULONG * [all...] |
H A D | bn_lib.c | 136 static const BN_ULONG data_one=1L; 137 static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA}; 142 int BN_num_bits_word(BN_ULONG l) 299 static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words) 301 BN_ULONG *A,*a = NULL; 302 const BN_ULONG *B; 317 a=A=(BN_ULONG *)OPENSSL_malloc(sizeof(BN_ULONG)*words); 329 memset(a, 0, sizeof(BN_ULONG)*words); 348 BN_ULONG a [all...] |
H A D | bn_nist.c | 71 static const BN_ULONG _nist_p_192[][BN_NIST_192_TOP] = { 76 static const BN_ULONG _nist_p_192_sqr[] = { 80 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = { 86 static const BN_ULONG _nist_p_224_sqr[] = { 92 static const BN_ULONG _nist_p_256[][BN_NIST_256_TOP] = { 104 static const BN_ULONG _nist_p_256_sqr[] = { 110 static const BN_ULONG _nist_p_384[][BN_NIST_384_TOP] = { 122 static const BN_ULONG _nist_p_384_sqr[] = { 128 static const BN_ULONG _nist_p_521[] = 134 static const BN_ULONG _nist_p_521_sq [all...] |
H A D | bn_mul.c | 80 BN_ULONG bn_sub_part_words(BN_ULONG *r, 81 const BN_ULONG *a, const BN_ULONG *b, 84 BN_ULONG c, t; 207 BN_ULONG bn_add_part_words(BN_ULONG *r, 208 const BN_ULONG *a, const BN_ULONG *b, 211 BN_ULONG [all...] |
H A D | bn.h | 180 #define BN_ULONG unsigned long macro 208 #define BN_ULONG unsigned long long macro 237 #define BN_ULONG unsigned int macro 320 BN_ULONG *d; /* Pointer to an array of 'BN_BITS2' bit chunks. */ 336 BN_ULONG n0[2];/* least significant word(s) of Ni; 337 (type changed with 0.9.9, was "BN_ULONG n0;" before) */ 405 #define BN_abs_is_word(a,w) ((((a)->top == 1) && ((a)->d[0] == (BN_ULONG)(w))) || \ 440 int BN_num_bits_word(BN_ULONG); 483 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG [all...] |
H A D | bn_shift.c | 65 register BN_ULONG *ap,*rp,t,c; 101 BN_ULONG *ap,*rp,t,c; 138 BN_ULONG *t,*f; 139 BN_ULONG l; 174 BN_ULONG *t,*f; 175 BN_ULONG l,tmp;
|
H A D | bn_div.c | 186 BN_ULONG *resp,*wnump; 187 BN_ULONG d0,d1; 317 BN_ULONG q,l0; 319 * snum and sdiv to calculate a BN_ULONG q such that 322 BN_ULONG bn_div_3_words(BN_ULONG*,BN_ULONG,BN_ULONG); 325 BN_ULONG n0,n1,rem=0; 337 q=(BN_ULONG)(((((BN_ULLON [all...] |
H A D | bn_print.c | 109 BN_ULONG *bn_data=NULL,*lp; 118 bn_data=(BN_ULONG *)OPENSSL_malloc((num/BN_DEC_NUM+1)*sizeof(BN_ULONG)); 175 BN_ULONG l=0; 242 BN_ULONG l=0; 371 (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); 374 (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8);
|
H A D | bn_gf2m.c | 102 static const BN_ULONG SQR_tb[16] = 134 static void bn_GF2m_mul_1x1(BN_ULONG *r1, BN_ULONG *r0, const BN_ULONG a, const BN_ULONG b) 136 register BN_ULONG h, l, s; 137 BN_ULONG tab[8], top2b = a >> 30; 138 register BN_ULONG a1, a2, a4; 166 static void bn_GF2m_mul_1x1(BN_ULONG *r1, BN_ULONG *r [all...] |
H A D | bn_mont.c | 180 BN_ULONG *ap,*np,*rp,n0,v,carry; 199 memset(&(rp[r->top]),0,(max-r->top)*sizeof(BN_ULONG)); 221 v=bn_mul_add_words(rp,np,nl,(BN_ULONG) t1); 242 BN_ULONG *nrp; 250 nrp=(BN_ULONG *)(((PTR_SIZE_INT)rp&~m)|((PTR_SIZE_INT)ap&m)); 254 BN_ULONG t1,t2,t3,t4; 270 memcpy(rp,ap,nl*sizeof(BN_ULONG)); 371 BN_ULONG buf[2]; 402 if (bn_expand(Ri,(int)sizeof(BN_ULONG)*2) == NULL)
|
H A D | bn_prime.c | 192 /* if (BN_mod_word(ret,(BN_ULONG)3) == 1) goto loop; */ 381 BN_ULONG delta,maxdelta; 387 mods[i]=(prime_t)BN_mod_word(rnd,(BN_ULONG)primes[i]); 431 if (BN_mod_word(rnd,(BN_ULONG)primes[i]) <= 1) 481 if ( (BN_mod_word(p,(BN_ULONG)primes[i]) == 0) || 482 (BN_mod_word(q,(BN_ULONG)primes[i]) == 0))
|
H A D | bn_kron.c | 60 #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])
|
H A D | bn_exp.c | 235 BN_ULONG A = a->d[0]; 655 tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0])*top*numPowers); 689 void bn_mul_mont_gather5(BN_ULONG *rp,const BN_ULONG *ap, 690 const void *table,const BN_ULONG *np, 691 const BN_ULONG *n0,int num,int power); 692 void bn_scatter5(const BN_ULONG *inp,size_t num, 694 void bn_gather5(BN_ULONG *out,size_t num, 697 BN_ULONG *np=mont->N.d, *n0=mont->n0; 836 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/ |
H A D | ppccap.c | 18 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np, const BN_ULONG *n0, int num) 20 int bn_mul_mont_fpu64(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np, const BN_ULONG *n [all...] |
H A D | sparcv9cap.c | 17 int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num) 19 int bn_mul_mont_fpu(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/bn/asm/ |
H A D | x86_64-gcc.c | 59 #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, BN_ULONG w) 111 BN_ULONG c1=0; 133 BN_ULONG bn_mul_word [all...] |
/netbsd-6-1-5-RELEASE/games/factor/ |
H A D | factor.c | 80 typedef u_long BN_ULONG; typedef 115 static BN_ULONG BN_div_word(BIGNUM *, BN_ULONG); 214 if (BN_mod_word(val, (BN_ULONG)*fact) == 0) 225 BN_set_word(bnfact, (BN_ULONG)*(fact - 1)); 243 BN_div_word(val, (BN_ULONG)*fact); 244 } while (BN_mod_word(val, (BN_ULONG)*fact) == 0); 282 BN_ULONG a; 369 static BN_ULONG 370 BN_div_word(BIGNUM *a, BN_ULONG [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/engines/ |
H A D | e_sureware.c | 680 bn_expand2(rsatmp->e, el/sizeof(BN_ULONG)); 681 bn_expand2(rsatmp->n, el/sizeof(BN_ULONG)); 682 if (!rsatmp->e || rsatmp->e->dmax!=(int)(el/sizeof(BN_ULONG))|| 683 !rsatmp->n || rsatmp->n->dmax!=(int)(el/sizeof(BN_ULONG))) 695 rsatmp->e->top=el/sizeof(BN_ULONG); 697 rsatmp->n->top=el/sizeof(BN_ULONG); 717 bn_expand2(dsatmp->pub_key, el/sizeof(BN_ULONG)); 718 bn_expand2(dsatmp->p, el/sizeof(BN_ULONG)); 719 bn_expand2(dsatmp->q, 20/sizeof(BN_ULONG)); 720 bn_expand2(dsatmp->g, el/sizeof(BN_ULONG)); [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/rsa/ |
H A D | rsa_lib.c | 295 BN_ULONG *ul; 305 off=k/sizeof(BN_ULONG)+1; 309 if ((p=OPENSSL_malloc_locked((off+j)*sizeof(BN_ULONG))) == NULL) 315 ul=(BN_ULONG *)&(p[off]); 323 memcpy((char *)ul,b->d,sizeof(BN_ULONG)*b->top);
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/srp/ |
H A D | srp_grps.h | 3 static BN_ULONG bn_group_1024_value[] = { 23 (sizeof bn_group_1024_value)/sizeof(BN_ULONG), 24 (sizeof bn_group_1024_value)/sizeof(BN_ULONG), 29 static BN_ULONG bn_group_1536_value[] = { 57 (sizeof bn_group_1536_value)/sizeof(BN_ULONG), 58 (sizeof bn_group_1536_value)/sizeof(BN_ULONG), 63 static BN_ULONG bn_group_2048_value[] = { 99 (sizeof bn_group_2048_value)/sizeof(BN_ULONG), 100 (sizeof bn_group_2048_value)/sizeof(BN_ULONG), 105 static BN_ULONG bn_group_3072_valu [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/dh/ |
H A D | dh_check.c | 77 BN_ULONG l;
|
/netbsd-6-1-5-RELEASE/usr.bin/moduli/qsieve/ |
H A D | qsieve.c | 143 BN_ULONG r; 144 BN_ULONG u; 151 r = BN_mod_word(largebase, (BN_ULONG) s);
|