HomeSort by relevance Sort by last modified time
    Searched full:bignum (Results 51 - 75 of 277) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/openssl/crypto/jpake/
jpaketest.c 18 static void showbn(const char *name, const BIGNUM *bn)
117 BIGNUM *p = NULL;
118 BIGNUM *g = NULL;
119 BIGNUM *q = NULL;
120 BIGNUM *secret = BN_new();
  /external/openssl/crypto/ecdsa/
ecs_ossl.c 65 const BIGNUM *, const BIGNUM *, EC_KEY *eckey);
66 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
67 BIGNUM **rp);
89 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
90 BIGNUM **rp)
93 BIGNUM *k = NULL, *r = NULL, *order = NULL, *X = NULL;
221 const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey)
224 BIGNUM *kinv=NULL, *s, *m=NULL,*tmp=NULL,*order=NULL
    [all...]
ecs_sign.c 68 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey)
83 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r,
99 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
100 BIGNUM **rp)
  /external/openssl/crypto/bn/
bn_depr.c 68 BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
69 const BIGNUM *add, const BIGNUM *rem,
73 BIGNUM *rnd=NULL;
94 int BN_is_prime(const BIGNUM *a, int checks, void (*callback)(int,int,void *),
102 int BN_is_prime_fasttest(const BIGNUM *a, int checks,
bn_rand.c 118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
216 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
222 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
230 static int bn_rand_range(int pseudo, BIGNUM *r, const BIGNUM *range)
232 int (*bn_rand)(BIGNUM *, int, int, int) = pseudo ? BN_pseudo_rand : BN_rand;
297 int BN_rand_range(BIGNUM *r, const BIGNUM *range)
302 int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range
    [all...]
bn_shift.c 63 int BN_lshift1(BIGNUM *r, const BIGNUM *a)
99 int BN_rshift1(BIGNUM *r, const BIGNUM *a)
132 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
168 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
bn_ctx.c 71 * 1. Check a bunch of "(words+1)" type hacks in various bignum functions and
77 * prevent piddly little reallocations. OTOH, profiling bignum expansions in
93 /* The bignum values */
94 BIGNUM vals[BN_CTX_POOL_SIZE];
111 static BIGNUM * BN_POOL_get(BN_POOL *);
121 /* Array of indexes into the bignum stack */
141 /* The bignum bundles */
288 BIGNUM *BN_CTX_get(BN_CTX *ctx)
290 BIGNUM *ret;
301 /* OK, make sure the returned bignum is "zero" *
    [all...]
bn_nist.c 217 static const BIGNUM _bignum_nist_p_192 =
226 static const BIGNUM _bignum_nist_p_224 =
235 static const BIGNUM _bignum_nist_p_256 =
244 static const BIGNUM _bignum_nist_p_384 =
253 static const BIGNUM _bignum_nist_p_521 =
263 const BIGNUM *BN_get0_nist_prime_192(void)
268 const BIGNUM *BN_get0_nist_prime_224(void)
273 const BIGNUM *BN_get0_nist_prime_256(void)
278 const BIGNUM *BN_get0_nist_prime_384(void)
283 const BIGNUM *BN_get0_nist_prime_521(void
    [all...]
bn_print.c 68 char *BN_bn2hex(const BIGNUM *a)
103 char *BN_bn2dec(const BIGNUM *a)
108 BIGNUM *t=NULL;
172 int BN_hex2bn(BIGNUM **bn, const char *a)
174 BIGNUM *ret=NULL;
239 int BN_dec2bn(BIGNUM **bn, const char *a)
241 BIGNUM *ret=NULL;
297 int BN_asc2bn(BIGNUM **bn, const char *a)
320 int BN_print_fp(FILE *fp, const BIGNUM *a)
334 int BN_print(BIO *bp, const BIGNUM *a
    [all...]
bnspeed.c 168 void do_mul(BIGNUM *r,BIGNUM *a,BIGNUM *b,BN_CTX *ctx);
173 BIGNUM a,b,c;
183 void do_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
bn_exp2.c 118 int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
119 const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,
124 BIGNUM *d,*r;
125 const BIGNUM *a_mod_m;
127 BIGNUM *val1[TABLE_SIZE], *val2[TABLE_SIZE];
expspeed.c 200 void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx);
205 BIGNUM *a,*b,*c,*r;
226 void do_mul_exp(BIGNUM *r, BIGNUM *a, BIGNUM *b, BIGNUM *c, BN_CTX *ctx)
bn_div.c 67 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
72 BIGNUM *D;
179 static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
180 const BIGNUM *divisor, BN_CTX *ctx);
181 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor
    [all...]
bn_mont.c 126 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont);
129 int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
132 BIGNUM *tmp;
177 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
179 BIGNUM *n;
338 int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont
    [all...]
bntest.c 97 int test_lshift(BIO *bp,BN_CTX *ctx,BIGNUM *a_);
319 BIGNUM a,b,c;
363 BIGNUM a,b,c;
414 BIGNUM a,b,c,d,e;
494 BIGNUM a,b;
550 BIGNUM a,b,c,d,e;
623 BIGNUM a,b,c,d,e;
679 BIGNUM a,c,d,e;
721 BIGNUM a,b,c,d,A,B;
722 BIGNUM n
    [all...]
  /external/wpa_supplicant/
rsa.c 20 #include "bignum.h"
26 struct bignum *n; /* modulus (p * q) */
27 struct bignum *e; /* public exponent */
29 struct bignum *d; /* private exponent */
30 struct bignum *p; /* prime p (factor of n) */
31 struct bignum *q; /* prime q (factor of n) */
32 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
33 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
34 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
39 struct bignum *num
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/tls/
rsa.c 20 #include "bignum.h"
26 struct bignum *n; /* modulus (p * q) */
27 struct bignum *e; /* public exponent */
29 struct bignum *d; /* private exponent */
30 struct bignum *p; /* prime p (factor of n) */
31 struct bignum *q; /* prime q (factor of n) */
32 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
33 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
34 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
40 struct bignum *num
    [all...]
  /external/wpa_supplicant_8/src/tls/
rsa.c 19 #include "bignum.h"
25 struct bignum *n; /* modulus (p * q) */
26 struct bignum *e; /* public exponent */
28 struct bignum *d; /* private exponent */
29 struct bignum *p; /* prime p (factor of n) */
30 struct bignum *q; /* prime q (factor of n) */
31 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
32 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
33 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
38 struct bignum *num
    [all...]
Makefile 17 bignum.o \
  /external/openssl/crypto/rsa/
rsa.h 100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
101 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
102 const BIGNUM *m, BN_CTX *ctx,
126 int (*rsa_keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
138 BIGNUM *n;
139 BIGNUM *e;
140 BIGNUM *d
    [all...]
rsa_eay.c 128 static int RSA_eay_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);
156 BIGNUM *f,*ret;
317 static int rsa_blinding_convert(BN_BLINDING *b, int local, BIGNUM *f,
318 BIGNUM *r, BN_CTX *ctx)
332 static int rsa_blinding_invert(BN_BLINDING *b, int local, BIGNUM *f,
333 BIGNUM *r, BN_CTX *ctx)
351 BIGNUM *f, *ret, *br, *res;
423 BIGNUM local_d;
424 BIGNUM *d = NULL
    [all...]
rsa_gen.c 71 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb);
78 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
85 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb)
87 BIGNUM *r0=NULL,*r1=NULL,*r2=NULL,*r3=NULL,*tmp;
88 BIGNUM local_r0,local_d,local_p;
89 BIGNUM *pr0,*d,*p;
  /external/openssl/include/openssl/
rsa.h 100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
101 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
102 const BIGNUM *m, BN_CTX *ctx,
126 int (*rsa_keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
138 BIGNUM *n;
139 BIGNUM *e;
140 BIGNUM *d
    [all...]
  /external/openssl/crypto/ec/
ec2_smpl.c 189 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
221 int ec_GF2m_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
260 BIGNUM *b;
350 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
377 BIGNUM *x, BIGNUM *y, BN_CTX *ctx
    [all...]
ec_cvt.c 76 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
126 EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)

Completed in 1082 milliseconds

1 23 4 5 6 7 8 91011>>