/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...] |
ecdsa.h | 99 BIGNUM *r; 100 BIGNUM *s; 106 /* ECDSA_SIG_free frees |sig| its member |BIGNUM|s. */ 131 OPENSSL_EXPORT int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 132 BIGNUM **rp); 138 const BIGNUM *kinv, const BIGNUM *rp, 145 unsigned int *sig_len, const BIGNUM *kinv, 146 const BIGNUM *rp, EC_KEY *eckey);
|
dh.h | 131 OPENSSL_EXPORT int DH_compute_key(uint8_t *out, const BIGNUM *peers_key, 170 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, 230 int (*compute_key)(DH *dh, uint8_t *out, const BIGNUM *pub_key); 236 BIGNUM *p; 237 BIGNUM *g; 238 BIGNUM *pub_key; /* g^x */ 239 BIGNUM *priv_key; /* x */ 249 BIGNUM *q; 250 BIGNUM *j; 253 BIGNUM *counter [all...] |
ec.h | 125 OPENSSL_EXPORT int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, 131 BIGNUM *cofactor, BN_CTX *ctx); 138 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p, 139 BIGNUM *out_a, BIGNUM *out_b, 220 BIGNUM *x, BIGNUM *y, 227 const BIGNUM *x, 228 const BIGNUM *y, 251 const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit [all...] |
dsa.h | 136 BIGNUM *r, *s; 178 * encoded signatures as opposed to raw |BIGNUM|s. If you don't know what 292 BIGNUM **out_kinv, BIGNUM **out_r); 325 int (*sign_setup)(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, 343 BIGNUM *p; 344 BIGNUM *q; /* == 20 */ 345 BIGNUM *g; 347 BIGNUM *pub_key; /* y public key * [all...] |
/external/openssh/ |
rsa.h | 22 int rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); 23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
|
dh.h | 31 BIGNUM *g; 32 BIGNUM *p; 37 DH *dh_new_group(BIGNUM *, BIGNUM *); 42 int dh_pub_is_valid(DH *, BIGNUM *);
|
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)
|
kex.h | 175 int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *); 189 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); 194 const BIGNUM *, const BIGNUM *, const BIGNUM *, 195 const BIGNUM *, const BIGNUM *, 200 const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *) [all...] |
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 *);
|
/external/boringssl/src/crypto/ec/ |
internal.h | 97 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, 98 const BIGNUM *b, BN_CTX *); 99 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, 123 const BIGNUM *x, const BIGNUM *y, 124 const BIGNUM *z, BN_CTX *); 126 const EC_POINT *, BIGNUM *x [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...] |
cmp.c | 62 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) { 84 int BN_cmp(const BIGNUM *a, const BIGNUM *b) { 175 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { 186 int BN_is_zero(const BIGNUM *bn) { 190 int BN_is_one(const BIGNUM *bn) { 194 int BN_is_word(const BIGNUM *bn, BN_ULONG w) { 198 int BN_is_odd(const BIGNUM *bn) {
|
prime.c | 332 static int witness(BIGNUM *w, const BIGNUM *a, const BIGNUM *a1, 333 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); 334 static int probable_prime(BIGNUM *rnd, int bits); 335 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, 336 const BIGNUM *rem, BN_CTX *ctx); 337 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add [all...] |
add.c | 65 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 66 const BIGNUM *tmp; 102 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 105 const BIGNUM *tmp; 160 int BN_add_word(BIGNUM *a, BN_ULONG w) { 202 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) [all...] |
gcd.c | 115 static BIGNUM *euclid(BIGNUM *a, BIGNUM *b) { 116 BIGNUM *t; 184 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { 185 BIGNUM *a, *b, *t; 226 static BIGNUM *BN_mod_inverse_no_branch(BIGNUM *out, const BIGNUM *a [all...] |
/external/boringssl/src/crypto/rsa/ |
internal.h | 77 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod); 80 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); 81 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); 82 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); 83 int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); 87 BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx [all...] |
rsa_asn1.c | 83 ASN1_SIMPLE(RSA, n, BIGNUM), 84 ASN1_SIMPLE(RSA, e, BIGNUM), 85 ASN1_SIMPLE(RSA, d, BIGNUM), 86 ASN1_SIMPLE(RSA, p, BIGNUM), 87 ASN1_SIMPLE(RSA, q, BIGNUM), 88 ASN1_SIMPLE(RSA, dmp1, BIGNUM), 89 ASN1_SIMPLE(RSA, dmq1, BIGNUM), 90 ASN1_SIMPLE(RSA, iqmp, BIGNUM), 94 ASN1_SIMPLE(RSA, n, BIGNUM), 95 ASN1_SIMPLE(RSA, e, BIGNUM), [all...] |
blinding.c | 124 BIGNUM *A; 125 BIGNUM *Ai; 126 BIGNUM *e; 127 BIGNUM *mod; /* just a reference */ 131 int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 132 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 135 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod) [all...] |
/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 86 ASN1_ITEM_start(BIGNUM) 87 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" 88 ASN1_ITEM_end(BIGNUM) 91 ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, BN_SENSITIVE, "BIGNUM" 104 if(it->size & BN_SENSITIVE) BN_clear_free((BIGNUM *)*pval); 105 else BN_free((BIGNUM *)*pval); 111 BIGNUM *bn; 114 bn = (BIGNUM *)*pval [all...] |
/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/dh/ |
dh_asn1.c | 81 ASN1_SIMPLE(DH, p, BIGNUM), ASN1_SIMPLE(DH, g, BIGNUM),
|
/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);
|