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

1 2 3 4 5 6 7 8

  /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 33 #include "src/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 22 // BIGNUM *BN_new(void);
25 // void BN_free(BIGNUM *a);
28 // int BN_cmp(const BIGNUM *a, const BIGNUM *b);
31 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
37 // int BN_dec2bn(BIGNUM **a, const char *str);
40 // int BN_hex2bn(BIGNUM **a, const char *str);
43 // BIGNUM * BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
    [all...]
BigInt.java 27 transient long 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;
50 if (this.bignum == 0) {
51 this.bignum = NativeBN.BN_new();
57 bi.bignum = NativeBN.BN_new();
63 return NativeBN.BN_cmp(a.bignum, b.bignum);
    [all...]
  /external/v8/src/
bignum.h 11 class Bignum {
14 // This bignum can encode much bigger numbers, since it contains an
18 Bignum();
21 void AssignBignum(const Bignum& other);
30 void AddBignum(const Bignum& other);
32 void SubtractBignum(const Bignum& other);
44 uint16_t DivideModuloIntBignum(const Bignum& other);
48 static int Compare(const Bignum& a, const Bignum& b);
49 static bool Equal(const Bignum& a, const Bignum& b)
    [all...]
bignum-dtoa.cc 11 #include "src/bignum-dtoa.h"
13 #include "src/bignum.h"
37 Bignum* numerator,
38 Bignum* denominator,
39 Bignum* delta_minus,
40 Bignum* delta_plus);
48 Bignum* numerator, Bignum* denominator,
49 Bignum* delta_minus, Bignum* delta_plus)
    [all...]
bignum.cc 7 #include "src/bignum.h"
13 Bignum::Bignum()
28 void Bignum::AssignUInt16(uint16_t value) {
39 void Bignum::AssignUInt64(uint64_t value) {
56 void Bignum::AssignBignum(const Bignum& other) {
82 void Bignum::AssignDecimalString(Vector<const char> value) {
112 void Bignum::AssignHexString(Vector<const char> value) {
142 void Bignum::AddUInt64(uint64_t operand)
    [all...]
  /external/boringssl/src/crypto/ec/
internal.h 97 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
98 const BIGNUM *b, BN_CTX *);
99 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b,
123 const BIGNUM *x, const BIGNUM *y,
124 const BIGNUM *z, BN_CTX *);
126 const EC_POINT *, BIGNUM *x
    [all...]
ec_montgomery.c 179 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p,
180 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) {
183 BIGNUM *one = NULL;
232 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
233 const BIGNUM *b, BN_CTX *ctx) {
242 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
252 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a
    [all...]
  /external/boringssl/src/include/openssl/
bn.h 167 /* BN_new creates a new, allocated BIGNUM and initialises it. */
168 OPENSSL_EXPORT BIGNUM *BN_new(void);
170 /* BN_init initialises a stack allocated |BIGNUM|. */
171 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
175 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
181 /* BN_dup allocates a new BIGNUM and sets it equal to |src|. It returns the
182 * allocated BIGNUM on success or NULL otherwise. */
183 OPENSSL_EXPORT BIGNUM *BN_dup(const BIGNUM *src)
    [all...]
  /external/openssh/
rsa.h 22 int rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
bufbn.c 33 buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value)
45 buffer_put_bignum(Buffer *buffer, const BIGNUM *value)
52 buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value)
64 buffer_get_bignum(Buffer *buffer, BIGNUM *value)
72 buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value)
84 buffer_put_bignum2(Buffer *buffer, const BIGNUM *value)
91 buffer_get_bignum2_ret(Buffer *buffer, BIGNUM *value)
103 buffer_get_bignum2(Buffer *buffer, BIGNUM *value)
buffer.h 52 void buffer_put_bignum(Buffer *, const BIGNUM *);
53 void buffer_put_bignum2(Buffer *, const BIGNUM *);
54 void buffer_get_bignum(Buffer *, BIGNUM *);
55 void buffer_get_bignum2(Buffer *, BIGNUM *);
78 int buffer_put_bignum_ret(Buffer *, const BIGNUM *);
79 int buffer_get_bignum_ret(Buffer *, BIGNUM *);
80 int buffer_put_bignum2_ret(Buffer *, const BIGNUM *);
81 int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
kex.h 175 int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *);
189 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *);
194 const BIGNUM *, const BIGNUM *, const BIGNUM *,
195 const BIGNUM *, const BIGNUM *,
200 const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *)
    [all...]
dh.h 31 BIGNUM *g;
32 BIGNUM *p;
37 DH *dh_new_group(BIGNUM *, BIGNUM *);
42 int dh_pub_is_valid(DH *, BIGNUM *);
  /external/boringssl/src/crypto/bn/
bn.c 68 BIGNUM *BN_new(void) {
69 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM));
76 memset(bn, 0, sizeof(BIGNUM));
82 void BN_init(BIGNUM *bn) {
83 memset(bn, 0, sizeof(BIGNUM));
86 void BN_free(BIGNUM *bn) {
102 void BN_clear_free(BIGNUM *bn) {
117 OPENSSL_cleanse(bn, sizeof(BIGNUM));
123 BIGNUM *BN_dup(const BIGNUM *src)
    [all...]
div.c 115 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
118 BIGNUM *tmp, wnum, *snum, *sdiv, *res;
383 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) {
395 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m
    [all...]
  /external/google-tv-pairing-protocol/cpp/src/polo/util/
poloutil.cc 24 // Use OpenSSL BigNum functions to perform the conversion.
25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL);
35 // Use OpenSSL BigNum functions to perform the conversion.
36 BIGNUM* bn = NULL;
47 // Use OpenSSL BigNum functions to perform the conversion.
48 BIGNUM* bn = BN_new();
65 // Use OpenSSL BigNum functions to perform the conversion.
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL);
  /external/wpa_supplicant_8/src/eap_common/
eap_pwd_common.h 24 BIGNUM *order;
25 BIGNUM *prime;
64 int compute_keys(EAP_PWD_group *grp, BN_CTX *bnctx, const BIGNUM *k,
65 const BIGNUM *peer_scalar, const BIGNUM *server_scalar,
  /external/boringssl/src/crypto/rsa/
internal.h 77 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);
80 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
81 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
82 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);
83 int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *);
87 BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx
    [all...]
blinding.c 124 BIGNUM *A;
125 BIGNUM *Ai;
126 BIGNUM *e;
127 BIGNUM *mod; /* just a reference */
131 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
132 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
135 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod)
    [all...]
  /external/boringssl/src/crypto/dsa/
dsa_asn1.c 114 ASN1_SIMPLE(DSA, p, BIGNUM),
115 ASN1_SIMPLE(DSA, q, BIGNUM),
116 ASN1_SIMPLE(DSA, g, BIGNUM),
117 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
118 ASN1_SIMPLE(DSA, priv_key, BIGNUM)} ASN1_SEQUENCE_END_cb(DSA,
124 ASN1_SIMPLE(DSA, p, BIGNUM), ASN1_SIMPLE(DSA, q, BIGNUM),
125 ASN1_SIMPLE(DSA, g, BIGNUM), } ASN1_SEQUENCE_END_cb(DSA, DSAparams);
135 ASN1_SIMPLE(DSA, pub_key, BIGNUM),
136 ASN1_SIMPLE(DSA, p, BIGNUM),
    [all...]
  /external/boringssl/src/crypto/asn1/
x_bignum.c 63 /* Custom primitive type for BIGNUM handling. This reads in an ASN1_INTEGER as a
64 * BIGNUM directly. Currently it ignores the sign which isn't a problem since all
86 ASN1_ITEM_start(BIGNUM)
87 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM"
88 ASN1_ITEM_end(BIGNUM)
91 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, BN_SENSITIVE, "BIGNUM"
104 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval);
105 else BN_free((BIGNUM *)*pval);
111 BIGNUM *bn;
114 bn = (BIGNUM *)*pval
    [all...]
  /external/wpa_supplicant_8/src/crypto/
crypto_openssl.c 34 static BIGNUM * get_group5_prime(void)
382 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result;
616 BIGNUM *pub_key;
936 BIGNUM *bn = BN_bin2bn(buf, len, NULL);
944 BN_clear_free((BIGNUM *) n);
946 BN_free((BIGNUM *) n);
958 num_bytes = BN_num_bytes((const BIGNUM *) a);
967 BN_bn2bin((const BIGNUM *) a, buf + offset);
977 return BN_add((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b)
    [all...]

Completed in 546 milliseconds

1 2 3 4 5 6 7 8