Searched refs:BIGNUM (Results 26 - 50 of 232) sorted by relevance

12345678910

/external/openssl/crypto/ecdsa/
H A Decs_sign.c69 const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey)
84 *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r,
100 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp,
101 BIGNUM **rp)
/external/openssl/crypto/bn/
H A Dbn_blind.c120 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 *A
[all...]
H A Dbn_recp.c94 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 *
[all...]
H A Dbn_gcd.c115 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 *
[all...]
H A Dbn_lib.c134 const BIGNUM *BN_value_one(void)
137 static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};
229 int BN_num_bits(const BIGNUM *a)
238 void BN_clear_free(BIGNUM *a)
251 OPENSSL_cleanse(a,sizeof(BIGNUM));
256 void BN_free(BIGNUM *a)
273 void BN_init(BIGNUM *a)
275 memset(a,0,sizeof(BIGNUM));
279 BIGNUM *BN_new(void)
281 BIGNUM *re
[all...]
/external/openssl/crypto/dsa/
H A Ddsa.h129 BIGNUM *r;
130 BIGNUM *s;
138 BIGNUM **kinvp, BIGNUM **rp,
142 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
143 BIGNUM *a2, BIGNUM *p2, BIGNUM *
[all...]
H A Ddsa_asn1.c111 ASN1_SIMPLE(DSA, p, BIGNUM),
112 ASN1_SIMPLE(DSA, q, BIGNUM),
113 ASN1_SIMPLE(DSA, g, BIGNUM),
114 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
115 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
121 ASN1_SIMPLE(DSA, p, BIGNUM),
122 ASN1_SIMPLE(DSA, q, BIGNUM),
123 ASN1_SIMPLE(DSA, g, BIGNUM),
135 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
136 ASN1_SIMPLE(DSA, p, BIGNUM),
[all...]
/external/openssl/include/openssl/
H A Ddsa.h129 BIGNUM *r;
130 BIGNUM *s;
138 BIGNUM **kinvp, BIGNUM **rp,
142 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
143 BIGNUM *a2, BIGNUM *p2, BIGNUM *
[all...]
H A Ddh.h117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
119 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
136 BIGNUM *p;
137 BIGNUM *g;
139 BIGNUM *pub_key; /* g^x */
140 BIGNUM *priv_key; /* x */
145 BIGNUM *
[all...]
H A Dec.h238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
248 * \param order BIGNUM to which the order is copied
252 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
286 * \param p BIGNUM with the prime number
287 * \param a BIGNUM with parameter a of the equation
288 * \param b BIGNUM with parameter b of the equation
292 int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Dblinding.c120 BIGNUM *A;
121 BIGNUM *Ai;
122 BIGNUM *e;
123 BIGNUM *mod; /* just a reference */
128 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
129 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
132 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *A
[all...]
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Ddh.h130 OPENSSL_EXPORT int DH_compute_key(uint8_t *out, const BIGNUM *peers_key,
161 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
221 int (*compute_key)(DH *dh, uint8_t *out, const BIGNUM *pub_key);
227 BIGNUM *p;
228 BIGNUM *g;
229 BIGNUM *pub_key; /* g^x */
230 BIGNUM *priv_key; /* x */
238 BIGNUM *q;
239 BIGNUM *j;
242 BIGNUM *counte
[all...]
H A Ddsa.h135 BIGNUM *r, *s;
177 * encoded signatures as opposed to raw |BIGNUM|s. If you don't know what
291 BIGNUM **out_kinv, BIGNUM **out_r);
324 int (*sign_setup)(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp,
342 BIGNUM *p;
343 BIGNUM *q; /* == 20 */
344 BIGNUM *g;
346 BIGNUM *pub_ke
[all...]
H A Drsa.h99 OPENSSL_EXPORT int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
404 int (*mod_exp)(BIGNUM *r0, const BIGNUM *I, RSA *rsa,
406 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
407 const BIGNUM *m, BN_CTX *ctx,
412 int (*keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
425 BIGNUM *n;
426 BIGNUM *
[all...]
/external/openssl/crypto/dh/
H A Ddh.h117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
119 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
136 BIGNUM *p;
137 BIGNUM *g;
139 BIGNUM *pub_key; /* g^x */
140 BIGNUM *priv_key; /* x */
145 BIGNUM *
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/bn/
H A Dcmp.c62 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) {
84 int BN_cmp(const BIGNUM *a, const BIGNUM *b) {
175 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) {
186 int BN_is_zero(const BIGNUM *bn) {
190 int BN_is_one(const BIGNUM *bn) {
194 int BN_is_word(const BIGNUM *bn, BN_ULONG w) {
198 int BN_is_odd(const BIGNUM *bn) {
H A Dprime.c145 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
146 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
147 static int probable_prime(BIGNUM *rnd, int bits);
148 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add,
149 const BIGNUM *rem, BN_CTX *ctx);
150 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *ad
[all...]
H A Dadd.c65 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) {
66 const BIGNUM *tmp;
102 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) {
105 const BIGNUM *tmp;
160 int BN_add_word(BIGNUM *a, BN_ULONG w) {
202 int BN_sub(BIGNUM *
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_pwd_common.h24 BIGNUM *order;
25 BIGNUM *prime;
61 int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *,
/external/wpa_supplicant_8/src/eap_common/
H A Deap_pwd_common.h24 BIGNUM *order;
25 BIGNUM *prime;
61 int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *,
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_pwd_common.h24 BIGNUM *order;
25 BIGNUM *prime;
61 int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *,
/external/openssl/crypto/ec/
H A Dec.h238 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor);
248 * \param order BIGNUM to which the order is copied
252 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);
256 * \param cofactor BIGNUM to which the cofactor is copied
260 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx);
286 * \param p BIGNUM with the prime number
287 * \param a BIGNUM with parameter a of the equation
288 * \param b BIGNUM with parameter b of the equation
292 int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/dh/
H A Ddh_asn1.c81 ASN1_SIMPLE(DH, p, BIGNUM), ASN1_SIMPLE(DH, g, BIGNUM),
/external/openssl/crypto/jpake/
H A Djpake.c17 BIGNUM *p;
18 BIGNUM *g;
19 BIGNUM *q;
20 BIGNUM *gxc; /* Alice's g^{x3} or Bob's g^{x1} */
21 BIGNUM *gxd; /* Alice's g^{x4} or Bob's g^{x2} */
27 BIGNUM *secret; /* The shared secret */
29 BIGNUM *xa; /* Alice's x1 or Bob's x3 */
30 BIGNUM *xb; /* Alice's x2 or Bob's x4 */
31 BIGNUM *key; /* The calculated (shared) key */
75 const char *peer_name, const BIGNUM *
[all...]
/external/google-tv-pairing-protocol/cpp/src/polo/util/
H A Dpoloutil.cc25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL);
36 BIGNUM* bn = NULL;
48 BIGNUM* bn = BN_new();
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL);

Completed in 372 milliseconds

12345678910