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

1 2 3 4 5 6 7 8 91011>>

  /external/wpa_supplicant/
bignum.h 18 struct bignum;
20 struct bignum * bignum_init(void);
21 void bignum_deinit(struct bignum *n);
22 size_t bignum_get_unsigned_bin_len(struct bignum *n);
23 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len);
24 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len);
25 int bignum_cmp(const struct bignum *a, const struct bignum *b);
26 int bignum_cmp_d(const struct bignum *a, unsigned long b);
27 int bignum_add(const struct bignum *a, const struct bignum *b
    [all...]
bignum.c 18 #include "bignum.h"
29 * struct bignum is just typecast to mp_int.
33 * bignum_init - Allocate memory for bignum
34 * Returns: Pointer to allocated bignum or %NULL on failure
36 struct bignum * bignum_init(void)
38 struct bignum *n = os_zalloc(sizeof(mp_int));
50 * bignum_deinit - Free bignum
51 * @n: Bignum from bignum_init()
53 void bignum_deinit(struct bignum *n)
63 * bignum_get_unsigned_bin - Get length of bignum as an unsigned binary buffe
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/tls/
bignum.h 18 struct bignum;
20 struct bignum * bignum_init(void);
21 void bignum_deinit(struct bignum *n);
22 size_t bignum_get_unsigned_bin_len(struct bignum *n);
23 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len);
24 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len);
25 int bignum_cmp(const struct bignum *a, const struct bignum *b);
26 int bignum_cmp_d(const struct bignum *a, unsigned long b);
27 int bignum_add(const struct bignum *a, const struct bignum *b
    [all...]
bignum.c 18 #include "bignum.h"
29 * struct bignum is just typecast to mp_int.
33 * bignum_init - Allocate memory for bignum
34 * Returns: Pointer to allocated bignum or %NULL on failure
36 struct bignum * bignum_init(void)
38 struct bignum *n = os_zalloc(sizeof(mp_int));
50 * bignum_deinit - Free bignum
51 * @n: Bignum from bignum_init()
53 void bignum_deinit(struct bignum *n)
63 * bignum_get_unsigned_bin - Get length of bignum as an unsigned binary buffe
    [all...]
  /external/wpa_supplicant_8/src/tls/
bignum.h 18 struct bignum;
20 struct bignum * bignum_init(void);
21 void bignum_deinit(struct bignum *n);
22 size_t bignum_get_unsigned_bin_len(struct bignum *n);
23 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len);
24 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len);
25 int bignum_cmp(const struct bignum *a, const struct bignum *b);
26 int bignum_cmp_d(const struct bignum *a, unsigned long b);
27 int bignum_add(const struct bignum *a, const struct bignum *b
    [all...]
bignum.c 18 #include "bignum.h"
29 * struct bignum is just typecast to mp_int.
33 * bignum_init - Allocate memory for bignum
34 * Returns: Pointer to allocated bignum or %NULL on failure
36 struct bignum * bignum_init(void)
38 struct bignum *n = os_zalloc(sizeof(mp_int));
50 * bignum_deinit - Free bignum
51 * @n: Bignum from bignum_init()
53 void bignum_deinit(struct bignum *n)
63 * bignum_get_unsigned_bin - Get length of bignum as an unsigned binary buffe
    [all...]
  /external/v8/test/cctest/
test-bignum.cc 34 #include "bignum.h"
41 static void AssignHexString(Bignum* bignum, const char* str) {
42 bignum->AssignHexString(Vector<const char>(str, StrLength(str)));
46 static void AssignDecimalString(Bignum* bignum, const char* str) {
47 bignum->AssignDecimalString(Vector<const char>(str, StrLength(str)));
53 Bignum bignum; local
54 Bignum bignum2
122 Bignum bignum; local
160 Bignum bignum; local
259 Bignum bignum; local
349 Bignum bignum; local
449 Bignum bignum; local
550 Bignum bignum; local
651 Bignum bignum; local
981 Bignum bignum; local
1360 Bignum bignum; local
1391 Bignum bignum; local
    [all...]
  /libcore/luni/src/main/java/java/math/
NativeBN.java 28 // BIGNUM *BN_new(void);
31 // void BN_free(BIGNUM *a);
34 // int BN_cmp(const BIGNUM *a, const BIGNUM *b);
37 // Returns boolean success AND NOT result BIGNUM handle!
38 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
40 // BIGNUM *BN_dup(const BIGNUM *a)
    [all...]
BigInt.java 27 transient int bignum = 0; field in class:BigInt
31 if (this.bignum != 0) {
32 NativeBN.BN_free(this.bignum);
33 this.bignum = 0;
46 return this.bignum;
82 if (this.bignum == 0) {
83 this.bignum = NativeBN.BN_new();
84 Check(this.bignum != 0);
90 bi.bignum = NativeBN.BN_new();
91 Check(bi.bignum != 0)
    [all...]
  /external/openssl/crypto/bn/
bn.h 139 /* These preprocessor symbols control various aspects of the bignum headers and
144 * BN_DEBUG - turn on various debugging alterations to the bignum code
146 * mismanagement of bignum internals. You must also define BN_DEBUG.
296 /* get a clone of a BIGNUM with changed flags, for *temporary* use only
309 typedef struct bignum_st BIGNUM;
332 BIGNUM RR; /* used to convert to montgomery form */
333 BIGNUM N; /* The modulus */
334 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
335 * (Ni is only stored for bignum algorithm) */
346 BIGNUM N; /* the divisor *
    [all...]
bn_mod.c 119 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
141 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx
    [all...]
divtest.c 11 static void bug(char *m, BIGNUM *a, BIGNUM *b)
23 BIGNUM *a=BN_new(), *b=BN_new(), *c=BN_new(), *d=BN_new(),
bn_prime.c 129 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1,
130 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
131 static int probable_prime(BIGNUM *rnd, int bits);
132 static int probable_prime_dh(BIGNUM *rnd, int bits,
133 const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
134 static int probable_prime_dh_safe(BIGNUM *rnd, int bits,
135 const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx)
    [all...]
  /external/openssl/include/openssl/
bn.h 139 /* These preprocessor symbols control various aspects of the bignum headers and
144 * BN_DEBUG - turn on various debugging alterations to the bignum code
146 * mismanagement of bignum internals. You must also define BN_DEBUG.
296 /* get a clone of a BIGNUM with changed flags, for *temporary* use only
309 typedef struct bignum_st BIGNUM;
332 BIGNUM RR; /* used to convert to montgomery form */
333 BIGNUM N; /* The modulus */
334 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
335 * (Ni is only stored for bignum algorithm) */
346 BIGNUM N; /* the divisor *
    [all...]
dsa.h 110 BIGNUM *r;
111 BIGNUM *s;
118 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
119 BIGNUM **rp);
122 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
123 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx
    [all...]
  /prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/lib/gcc/i686-unknown-linux-gnu/4.2.1/include/openssl/
bn.h 94 /* These preprocessor symbols control various aspects of the bignum headers and
99 * BN_DEBUG - turn on various debugging alterations to the bignum code
101 * mismanagement of bignum internals. You must also define BN_DEBUG.
265 /* get a clone of a BIGNUM with changed flags, for *temporary* use only
278 typedef struct bignum_st BIGNUM;
301 BIGNUM RR; /* used to convert to montgomery form */
302 BIGNUM N; /* The modulus */
303 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
304 * (Ni is only stored for bignum algorithm) */
314 BIGNUM N; /* the divisor *
    [all...]
  /external/openssl/crypto/ec/
ec_lcl.h 100 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
101 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
124 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *);
126 BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *)
    [all...]
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...]
  /external/v8/src/
bignum.h 34 class Bignum {
37 // This bignum can encode much bigger numbers, since it contains an
41 Bignum();
44 void AssignBignum(const Bignum& other);
53 void AddBignum(const Bignum& other);
55 void SubtractBignum(const Bignum& other);
67 uint16_t DivideModuloIntBignum(const Bignum& other);
71 static int Compare(const Bignum& a, const Bignum& b);
72 static bool Equal(const Bignum& a, const Bignum& b)
    [all...]
bignum-dtoa.cc 31 #include "bignum-dtoa.h"
33 #include "bignum.h"
57 Bignum* numerator,
58 Bignum* denominator,
59 Bignum* delta_minus,
60 Bignum* delta_plus);
68 Bignum* numerator, Bignum* denominator,
69 Bignum* delta_minus, Bignum* delta_plus)
    [all...]
  /libcore/luni/src/main/native/
java_math_NativeBN.cpp 82 static BIGNUM* NativeBN_BN_new(JNIEnv*, jclass) {
86 static void NativeBN_BN_free(JNIEnv* env, jclass, BIGNUM* a) {
91 static int NativeBN_BN_cmp(JNIEnv* env, jclass, BIGNUM* a, BIGNUM* b) {
96 static jboolean NativeBN_BN_copy(JNIEnv* env, jclass, BIGNUM* to, BIGNUM* from) {
101 static jboolean NativeBN_putULongInt(JNIEnv* env, jclass, BIGNUM* a, unsigned long long dw, jboolean neg) {
119 static jboolean NativeBN_putLongInt(JNIEnv* env, jclass cls, BIGNUM* a, long long dw) {
124 static int NativeBN_BN_dec2bn(JNIEnv* env, jclass, BIGNUM* a, jstring str) {
133 static int NativeBN_BN_hex2bn(JNIEnv* env, jclass, BIGNUM* a, jstring str)
    [all...]
  /external/openssl/crypto/jpake/
jpake.c 17 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 *p
    [all...]
  /external/wpa_supplicant_8/src/eap_common/
eap_pwd_common.h 32 BIGNUM *order;
33 BIGNUM *prime;
73 int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *,
  /external/openssl/crypto/dsa/
dsa_asn1.c 110 ASN1_SIMPLE(DSA, p, BIGNUM),
111 ASN1_SIMPLE(DSA, q, BIGNUM),
112 ASN1_SIMPLE(DSA, g, BIGNUM),
113 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
114 ASN1_SIMPLE(DSA, priv_key, BIGNUM)
120 ASN1_SIMPLE(DSA, p, BIGNUM),
121 ASN1_SIMPLE(DSA, q, BIGNUM),
122 ASN1_SIMPLE(DSA, g, BIGNUM),
134 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
135 ASN1_SIMPLE(DSA, p, BIGNUM),
    [all...]
dsa.h 110 BIGNUM *r;
111 BIGNUM *s;
118 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
119 BIGNUM **rp);
122 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
123 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx
    [all...]

Completed in 1990 milliseconds

1 2 3 4 5 6 7 8 91011>>