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

1 2 3 4 5 6 7 8 91011>>

  /external/wpa_supplicant_8/src/tls/
bignum.h 12 struct bignum;
14 struct bignum * bignum_init(void);
15 void bignum_deinit(struct bignum *n);
16 size_t bignum_get_unsigned_bin_len(struct bignum *n);
17 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len);
18 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len);
19 int bignum_cmp(const struct bignum *a, const struct bignum *b);
20 int bignum_cmp_d(const struct bignum *a, unsigned long b);
21 int bignum_add(const struct bignum *a, const struct bignum *b
    [all...]
bignum.c 12 #include "bignum.h"
23 * struct bignum is just typecast to mp_int.
27 * bignum_init - Allocate memory for bignum
28 * Returns: Pointer to allocated bignum or %NULL on failure
30 struct bignum * bignum_init(void)
32 struct bignum *n = os_zalloc(sizeof(mp_int));
44 * bignum_deinit - Free bignum
45 * @n: Bignum from bignum_init()
47 void bignum_deinit(struct bignum *n)
57 * 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/openssh/
schnorr.h 26 BIGNUM *p, *q, *g;
29 BIGNUM *bn_rand_range_gt_one(const BIGNUM *high);
31 void debug3_bn(const BIGNUM *, const char *, ...)
42 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
43 const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,
44 const u_char *id, u_int idlen, BIGNUM **r_p, BIGNUM **e_p)
    [all...]
jpake.h 43 BIGNUM *s; /* Secret (salted, crypted password) */
44 BIGNUM *k; /* Derived key */
47 BIGNUM *x1; /* random in Zq */
48 BIGNUM *x2; /* random in Z*q */
51 BIGNUM *x3; /* random in Zq */
52 BIGNUM *x4; /* random in Z*q */
57 BIGNUM *g_x1; /* g^x1 */
58 BIGNUM *g_x2; /* g^x2 */
63 BIGNUM *g_x3; /* g^x3 */
64 BIGNUM *g_x4; /* g^x4 *
    [all...]
monitor_wrap.h 53 int mm_auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **);
54 int mm_auth_rsa_verify_response(Key *, BIGNUM *, u_char *);
55 BIGNUM *mm_auth_rsa_generate_challenge(Key *);
87 int mm_ssh1_session_key(BIGNUM *);
107 void mm_auth2_jpake_get_pwdata(struct Authctxt *, BIGNUM **, char **, char **);
109 BIGNUM **, BIGNUM **, BIGNUM **, BIGNUM **,
111 void mm_jpake_step2(struct modp_group *, BIGNUM *,
    [all...]
rsa.h 22 void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
kex.h 148 void kex_derive_keys(Kex *, u_char *, u_int, BIGNUM *);
161 BIGNUM *, BIGNUM *, BIGNUM *, u_char **, u_int *);
164 int, u_char *, int, int, int, int, BIGNUM *, BIGNUM *, BIGNUM *,
165 BIGNUM *, BIGNUM *, u_char **, u_int *);
170 const BIGNUM *, u_char **, u_int *)
    [all...]
buffer.h 51 void buffer_put_bignum(Buffer *, const BIGNUM *);
52 void buffer_put_bignum2(Buffer *, const BIGNUM *);
53 void buffer_get_bignum(Buffer *, BIGNUM *);
54 void buffer_get_bignum2(Buffer *, BIGNUM *);
77 int buffer_put_bignum_ret(Buffer *, const BIGNUM *);
78 int buffer_get_bignum_ret(Buffer *, BIGNUM *);
79 int buffer_put_bignum2_ret(Buffer *, const BIGNUM *);
80 int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
  /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(),
  /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...]
srp.h 78 BIGNUM *bn;
87 BIGNUM *s;
88 BIGNUM *v;
89 const BIGNUM *g;
90 const BIGNUM *N;
102 BIGNUM *default_g;
103 BIGNUM *default_N;
111 BIGNUM *g;
112 BIGNUM *N;
123 int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, BIGNUM *N, BIGNUM *g)
    [all...]
  /external/openssl/crypto/srp/
srp.h 78 BIGNUM *bn;
87 BIGNUM *s;
88 BIGNUM *v;
89 const BIGNUM *g;
90 const BIGNUM *N;
102 BIGNUM *default_g;
103 BIGNUM *default_N;
111 BIGNUM *g;
112 BIGNUM *N;
123 int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, BIGNUM *N, BIGNUM *g)
    [all...]
srp_lib.c 78 static BIGNUM *srp_Calc_k(BIGNUM *N, BIGNUM *g)
108 BIGNUM *SRP_Calc_u(BIGNUM *A, BIGNUM *B, BIGNUM *N)
112 BIGNUM *u;
143 BIGNUM *SRP_Calc_server_key(BIGNUM *A, BIGNUM *v, BIGNUM *u, BIGNUM *b, BIGNUM *N
    [all...]
  /external/openssl/crypto/ec/
ec_lcl.h 105 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
106 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
129 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *);
131 BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_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 34 #include "bignum-dtoa.h"
36 #include "bignum.h"
60 Bignum* numerator,
61 Bignum* denominator,
62 Bignum* delta_minus,
63 Bignum* delta_plus);
71 Bignum* numerator, Bignum* denominator,
72 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/wpa_supplicant_8/src/eap_common/
eap_pwd_common.h 24 BIGNUM *order;
25 BIGNUM *prime;
61 int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *,
  /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/openssl/crypto/dsa/
dsa_asn1.c 111 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...]

Completed in 5473 milliseconds

1 2 3 4 5 6 7 8 91011>>