/external/v8/test/cctest/ |
D | test-bignum.cc | 41 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 …]
|
D | test-strtod.cc | 352 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()
|
D | cctest.gyp | 73 'test-bignum.cc', 74 'test-bignum-dtoa.cc',
|
D | SConscript | 44 'test-bignum-dtoa.cc', 45 'test-bignum.cc',
|
/external/wpa_supplicant/ |
D | 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, 28 struct bignum *c); [all …]
|
D | bignum.c | 36 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 …]
|
D | rsa.c | 26 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 …]
|
D | Makefile | 580 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/ |
D | 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, 28 struct bignum *c); [all …]
|
D | bignum.c | 36 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 …]
|
D | rsa.c | 25 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 …]
|
D | Makefile | 17 bignum.o \
|
D | pkcs8.c | 29 struct bignum *zero; in pkcs8_key_import()
|
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
D | 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, 28 struct bignum *c); [all …]
|
D | bignum.c | 36 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 …]
|
D | rsa.c | 26 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/ |
D | toint32.js | 118 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/ |
D | crypto_internal-modexp.c | 27 struct bignum *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp()
|
/external/dropbear/ |
D | filelist.txt | 106 bignum.c Some bignum helper functions
|
D | Android.mk | 6 dss.c bignum.c \
|
D | Makefile.in | 20 dss.o bignum.o \ 46 dss.h bignum.h signkey.h rsa.h random.h service.h auth.h \
|
/external/v8/ |
D | Android.v8common.mk | 9 src/bignum.cc \ 10 src/bignum-dtoa.cc \
|
/external/v8/tools/v8.xcodeproj/ |
D | project.pbxproj | 47 …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/ |
D | v8.gyp | 300 '../../src/bignum.cc', 301 '../../src/bignum.h', 302 '../../src/bignum-dtoa.cc', 303 '../../src/bignum-dtoa.h',
|
/external/dropbear/libtomcrypt/notes/ |
D | tech0002.txt | 14 uses the MPI bignum library to perform the operation. The time it takes to compute y is controlled…
|