Home
last modified time | relevance | path

Searched refs:bignum (Results 1 – 25 of 45) sorted by relevance

12

/external/v8/test/cctest/
Dtest-bignum.cc41 static void AssignHexString(Bignum* bignum, const char* str) { in AssignHexString() argument
42 bignum->AssignHexString(Vector<const char>(str, StrLength(str))); in AssignHexString()
46 static void AssignDecimalString(Bignum* bignum, const char* str) { in AssignDecimalString() argument
47 bignum->AssignDecimalString(Vector<const char>(str, StrLength(str))); in AssignDecimalString()
53 Bignum bignum; in TEST() local
55 bignum.AssignUInt16(0); in TEST()
56 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
58 bignum.AssignUInt16(0xA); in TEST()
59 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
61 bignum.AssignUInt16(0x20); in TEST()
[all …]
Dtest-strtod.cc352 Bignum bignum; in CompareBignumToDiyFp() local
353 bignum.AssignBignum(bignum_digits); in CompareBignumToDiyFp()
357 bignum.MultiplyByPowerOfTen(bignum_exponent); in CompareBignumToDiyFp()
364 bignum.ShiftLeft(-diy_fp.e()); in CompareBignumToDiyFp()
366 return Bignum::Compare(bignum, other); in CompareBignumToDiyFp()
Dcctest.gyp73 'test-bignum.cc',
74 'test-bignum-dtoa.cc',
DSConscript44 'test-bignum-dtoa.cc',
45 'test-bignum.cc',
/external/wpa_supplicant/
Dbignum.h18 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,
28 struct bignum *c);
[all …]
Dbignum.c36 struct bignum * bignum_init(void) in bignum_init()
38 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
53 void bignum_deinit(struct bignum *n) in bignum_deinit()
67 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
121 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
133 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
146 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
147 struct bignum *c) in bignum_add()
[all …]
Drsa.c26 struct bignum *n; /* modulus (p * q) */
27 struct bignum *e; /* public exponent */
29 struct bignum *d; /* private exponent */
30 struct bignum *p; /* prime p (factor of n) */
31 struct bignum *q; /* prime q (factor of n) */
32 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
33 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
34 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
39 struct bignum *num) in crypto_rsa_parse_integer()
136 struct bignum *zero; in crypto_rsa_import_private_key()
[all …]
DMakefile580 OBJS += crypto_internal.o rsa.o bignum.o
581 OBJS_p += crypto_internal.o rsa.o bignum.o
791 bignum.o rsa.o
800 bignum.o rsa.o
/external/wpa_supplicant_8/src/tls/
Dbignum.h18 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,
28 struct bignum *c);
[all …]
Dbignum.c36 struct bignum * bignum_init(void) in bignum_init()
38 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
53 void bignum_deinit(struct bignum *n) in bignum_deinit()
67 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
121 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
133 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
146 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
147 struct bignum *c) in bignum_add()
[all …]
Drsa.c25 struct bignum *n; /* modulus (p * q) */
26 struct bignum *e; /* public exponent */
28 struct bignum *d; /* private exponent */
29 struct bignum *p; /* prime p (factor of n) */
30 struct bignum *q; /* prime q (factor of n) */
31 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
32 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
33 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
38 struct bignum *num) in crypto_rsa_parse_integer()
135 struct bignum *zero; in crypto_rsa_import_private_key()
[all …]
DMakefile17 bignum.o \
Dpkcs8.c29 struct bignum *zero; in pkcs8_key_import()
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dbignum.h18 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,
28 struct bignum *c);
[all …]
Dbignum.c36 struct bignum * bignum_init(void) in bignum_init()
38 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
53 void bignum_deinit(struct bignum *n) in bignum_deinit()
67 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
121 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
133 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
146 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
147 struct bignum *c) in bignum_add()
[all …]
Drsa.c26 struct bignum *n; /* modulus (p * q) */
27 struct bignum *e; /* public exponent */
29 struct bignum *d; /* private exponent */
30 struct bignum *p; /* prime p (factor of n) */
31 struct bignum *q; /* prime q (factor of n) */
32 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
33 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
34 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
40 struct bignum *num) in crypto_rsa_parse_integer()
137 struct bignum *zero; in crypto_rsa_import_private_key()
[all …]
/external/v8/test/mjsunit/
Dtoint32.js118 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/
Dcrypto_internal-modexp.c27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp()
/external/dropbear/
Dfilelist.txt106 bignum.c Some bignum helper functions
DAndroid.mk6 dss.c bignum.c \
DMakefile.in20 dss.o bignum.o \
46 dss.h bignum.h signkey.h rsa.h random.h service.h auth.h \
/external/v8/
DAndroid.v8common.mk9 src/bignum.cc \
10 src/bignum-dtoa.cc \
/external/v8/tools/v8.xcodeproj/
Dproject.pbxproj47 …893E24A812B14B3D0083370F /* bignum-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E2486…
48 …893E24A912B14B3D0083370F /* bignum.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E248812B14…
61 …893E24B712B14B3D0083370F /* bignum-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E2486…
62 …893E24B812B14B3D0083370F /* bignum.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E248812B14…
178 …8956929212D4ED240072C313 /* bignum-dtoa.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E2486…
179 …8956929312D4ED240072C313 /* bignum.cc in Sources */ = {isa = PBXBuildFile; fileRef = 893E248812B14…
547 …B14B3D0083370F /* bignum-dtoa.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType…
548 …12B14B3D0083370F /* bignum-dtoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileTyp…
549 …812B14B3D0083370F /* bignum.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =…
550 …48912B14B3D0083370F /* bignum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
[all …]
/external/v8/tools/gyp/
Dv8.gyp300 '../../src/bignum.cc',
301 '../../src/bignum.h',
302 '../../src/bignum-dtoa.cc',
303 '../../src/bignum-dtoa.h',
/external/dropbear/libtomcrypt/notes/
Dtech0002.txt14 uses the MPI bignum library to perform the operation. The time it takes to compute y is controlled…

12