/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...] |
/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/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/crypto/ec/ |
internal.h | 86 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, 87 const BIGNUM *b, BN_CTX *); 89 BIGNUM *x, BIGNUM *y, BN_CTX *); 96 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, 97 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx); 102 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, 103 const BIGNUM *b, BN_CTX *) [all...] |
/external/boringssl/src/include/openssl/ |
bn.h | 169 /* BN_new creates a new, allocated BIGNUM and initialises it. */ 170 OPENSSL_EXPORT BIGNUM *BN_new(void); 172 /* BN_init initialises a stack allocated |BIGNUM|. */ 173 OPENSSL_EXPORT void BN_init(BIGNUM *bn); 177 OPENSSL_EXPORT void BN_free(BIGNUM *bn); 181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn); 183 /* BN_dup allocates a new BIGNUM and sets it equal to |src|. It returns the 184 * allocated BIGNUM on success or NULL otherwise. */ 185 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 | 178 int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *); 192 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); 197 const BIGNUM *, const BIGNUM *, const BIGNUM *, 198 const BIGNUM *, const BIGNUM *, 203 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 *); 43 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 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); 82 void BN_init(BIGNUM *bn) { 83 OPENSSL_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 | 192 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, 195 BIGNUM *tmp, wnum, *snum, *sdiv, *res; 389 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { 401 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m [all...] |
bn_test.cc | 99 static int HexToBIGNUM(bssl::UniquePtr<BIGNUM> *out, const char *in) { 100 BIGNUM *raw = NULL; 106 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attribute) { 112 bssl::UniquePtr<BIGNUM> ret; 121 bssl::UniquePtr<BIGNUM> ret = GetBIGNUM(t, attribute); 136 const BIGNUM *expected, const BIGNUM *actual) { 155 bssl::UniquePtr<BIGNUM> a = GetBIGNUM(t, "A"); 156 bssl::UniquePtr<BIGNUM> b = GetBIGNUM(t, "B"); 157 bssl::UniquePtr<BIGNUM> sum = GetBIGNUM(t, "Sum") [all...] |
cmp.c | 64 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) { 86 int BN_cmp(const BIGNUM *a, const BIGNUM *b) { 177 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { 188 int BN_cmp_word(const BIGNUM *a, BN_ULONG b) { 189 BIGNUM b_bn; 199 int BN_is_zero(const BIGNUM *bn) { 203 int BN_is_one(const BIGNUM *bn) { 207 int BN_is_word(const BIGNUM *bn, BN_ULONG w) [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/ecdsa/ |
ecdsa_sign_test.cc | 53 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *key) { 59 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); 64 bssl::UniquePtr<BIGNUM> priv_key = GetBIGNUM(t, "Private"); 65 bssl::UniquePtr<BIGNUM> x = GetBIGNUM(t, "X"); 66 bssl::UniquePtr<BIGNUM> y = GetBIGNUM(t, "Y"); 67 bssl::UniquePtr<BIGNUM> k = GetBIGNUM(t, "K"); 68 bssl::UniquePtr<BIGNUM> r = GetBIGNUM(t, "R"); 69 bssl::UniquePtr<BIGNUM> s = GetBIGNUM(t, "S");
|
/external/boringssl/src/crypto/ecdh/ |
ecdh_test.cc | 53 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *key) { 59 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); 64 bssl::UniquePtr<BIGNUM> priv_key = GetBIGNUM(t, "Private"); 65 bssl::UniquePtr<BIGNUM> x = GetBIGNUM(t, "X"); 66 bssl::UniquePtr<BIGNUM> y = GetBIGNUM(t, "Y"); 67 bssl::UniquePtr<BIGNUM> peer_x = GetBIGNUM(t, "PeerX"); 68 bssl::UniquePtr<BIGNUM> peer_y = GetBIGNUM(t, "PeerY");
|