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

12 3 4 5 6 7 8 91011>>

  /external/openssl/include/openssl/
ec.h 219 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
229 * \param order BIGNUM to which the order is copied
233 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);
237 * \param cofactor BIGNUM to which the cofactor is copied
241 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
267 * \param p BIGNUM with the prime number
268 * \param a BIGNUM with parameter a of the equation
269 * \param b BIGNUM with parameter b of the equation
273 int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
    [all...]
dh.h 102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
104 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
121 BIGNUM *p;
122 BIGNUM *g;
124 BIGNUM *pub_key; /* g^x */
125 BIGNUM *priv_key; /* x */
130 BIGNUM *q
    [all...]
ecdsa.h 80 BIGNUM *r;
81 BIGNUM *s;
124 * \param kinv BIGNUM with a pre-computed inverse k (optional)
125 * \param rp BIGNUM with a pre-computed rp value (optioanl),
131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
173 * \param kinv BIGNUM pointer for the inverse of k
174 * \param rp BIGNUM pointer for x coordinate of k * generator
177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
178 BIGNUM **rp)
    [all...]
  /external/openssl/crypto/jpake/
jpake.h 29 BIGNUM *gr; /* g^r (r random) */
30 BIGNUM *b; /* b = r - x*h, h=hash(g, g^r, g^x, name) */
35 BIGNUM *gx; /* g^x in step 1, g^(xa + xc + xd) * xb * s in step 2 */
59 const BIGNUM *p, const BIGNUM *g, const BIGNUM *q,
60 const BIGNUM *secret);
100 const BIGNUM *JPAKE_get_shared_key(JPAKE_CTX *ctx);
  /external/openssl/crypto/asn1/
x_bignum.c 64 /* Custom primitive type for BIGNUM handling. This reads in an ASN1_INTEGER as a
65 * BIGNUM directly. Currently it ignores the sign which isn't a problem since all
87 ASN1_ITEM_start(BIGNUM)
88 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM"
89 ASN1_ITEM_end(BIGNUM)
92 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, BN_SENSITIVE, "BIGNUM"
105 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval);
106 else BN_free((BIGNUM *)*pval);
112 BIGNUM *bn;
115 bn = (BIGNUM *)*pval
    [all...]
  /external/openssl/crypto/dh/
dh_key.c 66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
67 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
68 const BIGNUM *a, const BIGNUM *p,
69 const BIGNUM *m, BN_CTX *ctx,
79 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
108 BIGNUM *pub_key=NULL,*priv_key=NULL;
146 BIGNUM local_prk;
147 BIGNUM *prk;
174 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh
    [all...]
dh.h 102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
104 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
121 BIGNUM *p;
122 BIGNUM *g;
124 BIGNUM *pub_key; /* g^x */
125 BIGNUM *priv_key; /* x */
130 BIGNUM *q
    [all...]
  /external/openssl/crypto/bn/
bn_lib.c 134 const BIGNUM *BN_value_one(void)
137 static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};
248 int BN_num_bits(const BIGNUM *a)
257 void BN_clear_free(BIGNUM *a)
270 OPENSSL_cleanse(a,sizeof(BIGNUM));
275 void BN_free(BIGNUM *a)
292 void BN_init(BIGNUM *a)
294 memset(a,0,sizeof(BIGNUM));
298 BIGNUM *BN_new(void)
300 BIGNUM *ret
    [all...]
bn_recp.c 94 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
103 int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
107 BIGNUM *a;
108 const BIGNUM *ca;
130 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
134 BIGNUM *a,*b,*d,*r
    [all...]
bn_gf2m.c 224 int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
227 const BIGNUM *at, *bt;
262 int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
360 int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p)
385 int BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], BN_CTX *ctx
    [all...]
bn_blind.c 120 BIGNUM *A;
121 BIGNUM *Ai;
122 BIGNUM *e;
123 BIGNUM *mod; /* just a reference */
132 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
133 const BIGNUM *m, BN_CTX *ctx,
137 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod
    [all...]
bn_gcd.c 115 static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);
117 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx)
119 BIGNUM *a,*b,*t;
147 static BIGNUM *euclid(BIGNUM *a, BIGNUM *b
    [all...]
bn_add.c 64 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
66 const BIGNUM *tmp;
105 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
109 const BIGNUM *tmp;
166 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b
    [all...]
bn_exp.c 120 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
123 BIGNUM *v,*rr;
164 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
239 int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p
    [all...]
  /external/openssl/crypto/engine/
eng_cryptodev.c 107 static int bn2crparam(const BIGNUM *a, struct crparam *crp);
108 static int crparam2bn(struct crparam *crp, BIGNUM *a);
110 static int cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r,
111 int slen, BIGNUM *s);
113 static int cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a,
114 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
115 static int cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I
    [all...]
  /external/openssl/crypto/ec/
ecp_mont.c 197 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
201 BIGNUM *one = NULL;
257 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
269 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
281 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx
    [all...]
ec_lib.c 284 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
319 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
328 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
407 int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
418 int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx
    [all...]
ecp_nist.c 122 int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
123 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
127 BIGNUM *tmp_bn;
161 int ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
162 const BIGNUM *b, BN_CTX *ctx)
187 int ec_GFp_nist_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
ecp_smpl.c 169 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
173 BIGNUM *tmp_a;
223 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
283 BIGNUM *a,*b,*order,*tmp_1,*tmp_2;
284 const BIGNUM *p = &group->field;
395 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx
    [all...]
ec2_mult.c 82 static int gf2m_Mdouble(const EC_GROUP *group, BIGNUM *x, BIGNUM *z, BN_CTX *ctx)
84 BIGNUM *t1;
113 static int gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1,
114 const BIGNUM *x2, const BIGNUM *z2, BN_CTX *ctx)
116 BIGNUM *t1, *t2;
150 static int gf2m_Mxy(const EC_GROUP *group, const BIGNUM *x, const BIGNUM *y, BIGNUM *x1,
    [all...]
  /external/v8/src/
bignum.cc 30 #include "bignum.h"
36 Bignum::Bignum()
50 void Bignum::AssignUInt16(uint16_t value) {
61 void Bignum::AssignUInt64(uint64_t value) {
78 void Bignum::AssignBignum(const Bignum& other) {
104 void Bignum::AssignDecimalString(Vector<const char> value) {
134 void Bignum::AssignHexString(Vector<const char> value) {
164 void Bignum::AddUInt64(uint64_t operand)
    [all...]
  /external/openssl/crypto/rsa/
rsa_asn1.c 83 ASN1_SIMPLE(RSA, n, BIGNUM),
84 ASN1_SIMPLE(RSA, e, BIGNUM),
85 ASN1_SIMPLE(RSA, d, BIGNUM),
86 ASN1_SIMPLE(RSA, p, BIGNUM),
87 ASN1_SIMPLE(RSA, q, BIGNUM),
88 ASN1_SIMPLE(RSA, dmp1, BIGNUM),
89 ASN1_SIMPLE(RSA, dmq1, BIGNUM),
90 ASN1_SIMPLE(RSA, iqmp, BIGNUM)
95 ASN1_SIMPLE(RSA, n, BIGNUM),
96 ASN1_SIMPLE(RSA, e, BIGNUM),
    [all...]
  /external/v8/test/mjsunit/
toint32.js 117 // bignum is (2^53 - 1) * 2^31 - highest number with bit 31 set.
118 var bignum = Math.pow(2, 84) - Math.pow(2, 31); variable
119 assertEquals(-Math.pow(2,31), toInt32(bignum));
120 assertEquals(-Math.pow(2,31), toInt32(-bignum));
121 assertEquals(0, toInt32(2 * bignum));
122 assertEquals(0, toInt32(-(2 * bignum)));
123 assertEquals(0, toInt32(bignum - Math.pow(2,31)));
124 assertEquals(0, toInt32(-(bignum - Math.pow(2,31))));
  /external/wpa_supplicant_8/src/crypto/
crypto_internal-modexp.c 18 #include "tls/bignum.h"
27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result;
  /external/openssl/crypto/ecdsa/
ecdsa.h 80 BIGNUM *r;
81 BIGNUM *s;
124 * \param kinv BIGNUM with a pre-computed inverse k (optional)
125 * \param rp BIGNUM with a pre-computed rp value (optioanl),
131 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);
173 * \param kinv BIGNUM pointer for the inverse of k
174 * \param rp BIGNUM pointer for x coordinate of k * generator
177 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv,
178 BIGNUM **rp)
    [all...]

Completed in 3219 milliseconds

12 3 4 5 6 7 8 91011>>