Home
last modified time | relevance | path

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

/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.cc378 Bignum bignum; in CompareBignumToDiyFp() local
379 bignum.AssignBignum(bignum_digits); in CompareBignumToDiyFp()
383 bignum.MultiplyByPowerOfTen(bignum_exponent); in CompareBignumToDiyFp()
390 bignum.ShiftLeft(-diy_fp.e()); in CompareBignumToDiyFp()
392 return Bignum::Compare(bignum, other); in CompareBignumToDiyFp()
Dcctest.gyp98 'test-bignum.cc',
99 'test-bignum-dtoa.cc',
/external/wpa_supplicant_8/src/tls/
Dbignum.h12 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,
22 struct bignum *c);
[all …]
Dbignum.c30 struct bignum * bignum_init(void) in bignum_init()
32 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
47 void bignum_deinit(struct bignum *n) in bignum_deinit()
61 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
75 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
99 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
115 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
127 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
140 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
141 struct bignum *c) in bignum_add()
[all …]
Drsa.c19 struct bignum *n; /* modulus (p * q) */
20 struct bignum *e; /* public exponent */
22 struct bignum *d; /* private exponent */
23 struct bignum *p; /* prime p (factor of n) */
24 struct bignum *q; /* prime q (factor of n) */
25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */
26 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */
27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */
32 struct bignum *num) in crypto_rsa_parse_integer()
152 struct bignum *zero; in crypto_rsa_import_private_key()
[all …]
DMakefile19 bignum.o \
Dpkcs8.c23 struct bignum *zero; in pkcs8_key_import()
/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.c21 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp()
/external/openssh/
DPROTOCOL.agent36 The "mpint1" type represents an arbitrary precision integer (bignum).
40 byte[(bits + 7) / 8] bignum
42 "bignum" contains an unsigned arbitrary precision integer encoded as
DChangeLog1823 Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm
4077 add a canonical 6.6 + curve25519 bignum fix fake version that I can
4493 1 bignum value; found by Ben Hawkes; ok deraadt@
5321 a string using the bignum encoding rules. Will make it easier to
/external/v8/
DAndroid.v8common.mk27 src/bignum-dtoa.cc \
28 src/bignum.cc \
DBUILD.gn443 "src/bignum-dtoa.cc",
444 "src/bignum-dtoa.h",
445 "src/bignum.cc",
446 "src/bignum.h",
/external/v8/tools/gyp/
Dv8.gyp354 '../../src/bignum-dtoa.cc',
355 '../../src/bignum-dtoa.h',
356 '../../src/bignum.cc',
357 '../../src/bignum.h',
/external/wpa_supplicant_8/hostapd/
DMakefile594 OBJS += ../src/tls/bignum.o
DChangeLog606 needed X.509/ASN.1/RSA/bignum processing (this can be enabled by
/external/wpa_supplicant_8/wpa_supplicant/
DREADME104 - bignum
106 TLSv1/X.509/ASN.1/RSA/bignum parts are about 25 kB on x86)
DMakefile1066 OBJS += ../src/tls/bignum.o
DChangeLog1124 needed X.509/ASN.1/RSA/bignum processing (this can be enabled by
/external/libopus/
Dconfigure11569 static long long int bignum = -9223372036854775807LL;
11667 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
/external/bison/
Dconfigure5413 static long long int bignum = -9223372036854775807LL;
5511 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'