/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 1019 Bignum bignum; local 1398 Bignum bignum; local 1429 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 | 32 transient long bignum = 0; field in class:BigInt 40 return this.bignum; 44 if (this.bignum == 0) { 45 this.bignum = NativeBN.BN_new(); 46 registry.registerNativeAllocation(this, this.bignum); 52 bi.bignum = NativeBN.BN_new(); 53 registry.registerNativeAllocation(bi, bi.bignum); 59 return NativeBN.BN_cmp(a.bignum, b.bignum); 65 NativeBN.BN_copy(this.bignum, from.bignum) [all...] |
/external/v8/src/ |
bignum.h | 13 class Bignum { 16 // This bignum can encode much bigger numbers, since it contains an 20 Bignum(); 23 void AssignBignum(const Bignum& other); 32 void AddBignum(const Bignum& other); 34 void SubtractBignum(const Bignum& other); 46 uint16_t DivideModuloIntBignum(const Bignum& other); 50 static int Compare(const Bignum& a, const Bignum& b); 51 static bool Equal(const Bignum& a, const Bignum& b) [all...] |
bignum-dtoa.cc | 5 #include "src/bignum-dtoa.h" 10 #include "src/bignum.h" 35 Bignum* numerator, 36 Bignum* denominator, 37 Bignum* delta_minus, 38 Bignum* delta_plus); 46 Bignum* numerator, Bignum* denominator, 47 Bignum* delta_minus, Bignum* delta_plus) [all...] |
bignum.cc | 5 #include "src/bignum.h" 11 Bignum::Bignum() 26 void Bignum::AssignUInt16(uint16_t value) { 37 void Bignum::AssignUInt64(uint64_t value) { 54 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 | 91 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, 92 const BIGNUM *b, BN_CTX *); 96 BIGNUM *x, BIGNUM *y, BN_CTX *); 103 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, 104 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx); 120 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, 121 const BIGNUM *b, BN_CTX *) [all...] |
ec_montgomery.c | 136 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, 137 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { 140 BIGNUM *one = NULL; 189 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 190 const BIGNUM *b, BN_CTX *ctx) { 199 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 209 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a [all...] |
/external/tpm2/ |
CpriMisc_fp.h | 10 BIGNUM *BnFrom2B(BIGNUM *out, // OUT: The BIGNUM 14 BIGNUM *inVal, // IN: number to convert
|
CpriMisc.c | 15 // This function is used to convert a BigNum() to a byte array of the specified size. If the number is too large 27 BIGNUM *inVal, // IN: number to convert 69 // This function creates a BIGNUM from a TPM2B and fails if the conversion fails. 71 BIGNUM * 73 BIGNUM *out, // OUT: The BIGNUM
|
/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/boringssl/src/crypto/rsa/ |
internal.h | 86 BIGNUM *e_value, BN_GENCB *cb); 87 int rsa_default_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 97 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod); 100 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); 101 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); 102 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); 103 int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *) [all...] |
blinding.c | 124 BIGNUM *A; 125 BIGNUM *Ai; 126 BIGNUM *e; 127 BIGNUM *mod; /* just a reference */ 133 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 134 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont); 137 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod) [all...] |
/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...] |
add.c | 67 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 68 const BIGNUM *tmp; 104 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 107 const BIGNUM *tmp; 162 int BN_add_word(BIGNUM *a, BN_ULONG w) { 204 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) [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);
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/all/ |
octa.d | 2 #name: octa bignum
|
/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/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 87 ASN1_ITEM_start(BIGNUM) 88 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" 89 ASN1_ITEM_end(BIGNUM) 92 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, BN_SENSITIVE, "BIGNUM" 105 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval); 106 else BN_free((BIGNUM *)*pval); 112 BIGNUM *bn; 115 bn = (BIGNUM *)*pval [all...] |
/external/wpa_supplicant_8/src/crypto/ |
crypto_openssl.c | 73 static BIGNUM * get_group5_prime(void) 451 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; 689 BIGNUM *pub_key; 1009 BIGNUM *bn; 1022 BN_clear_free((BIGNUM *) n); 1024 BN_free((BIGNUM *) n); 1039 num_bytes = BN_num_bytes((const BIGNUM *) a); 1048 BN_bn2bin((const BIGNUM *) a, buf + offset); 1058 return BN_add((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b) [all...] |
crypto.h | 489 * struct crypto_bignum - bignum 491 * Internal data structure for bignum implementation. The contents is specific 497 * crypto_bignum_init - Allocate memory for bignum 498 * Returns: Pointer to allocated bignum or %NULL on failure 503 * crypto_bignum_init_set - Allocate memory for bignum and set the value 506 * Returns: Pointer to allocated bignum or %NULL on failure 511 * crypto_bignum_deinit - Free bignum 512 * @n: Bignum from crypto_bignum_init() or crypto_bignum_init_set() 518 * crypto_bignum_to_bin - Set binary buffer to unsigned bignum 519 * @a: Bignum [all...] |