/external/openssl/crypto/rsa/ |
H A D | rsa_null.c | 81 static int RSA_null_mod_exp(const BIGNUM *r0, const BIGNUM *i, RSA *rsa); 136 static int RSA_null_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
|
/external/chromium_org/third_party/boringssl/src/crypto/bn/ |
H A D | 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 *ou [all...] |
H A D | convert.c | 68 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { 71 BIGNUM *bn = NULL; 113 size_t BN_bn2bin(const BIGNUM *in, uint8_t *out) { 145 static BN_ULONG read_word_padded(const BIGNUM *in, size_t i) { 154 int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in) { 193 char *BN_bn2hex(const BIGNUM *bn) { 230 static void decode_hex(BIGNUM *bn, const char *in, int i) { 266 static void decode_dec(BIGNUM *bn, const char *in, int i) { 288 typedef void (*decode_func) (BIGNUM *b [all...] |
H A D | random.c | 116 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { 177 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) { 181 int BN_rand_range(BIGNUM *r, const BIGNUM *range) { 240 int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range) { 244 int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range, const BIGNUM *priv,
|
H A D | shift.c | 61 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n) { 94 int BN_lshift1(BIGNUM *r, const BIGNUM *a) { 125 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n) { 173 int BN_rshift1(BIGNUM *r, const BIGNUM *a) { 206 int BN_set_bit(BIGNUM *a, int n) { 230 int BN_clear_bit(BIGNUM * [all...] |
H A D | montgomery.c | 170 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { 172 BIGNUM *Ri, *R; 173 BIGNUM tmod; 294 const BIGNUM *mod, BN_CTX *ctx) { 333 int BN_to_montgomery(BIGNUM *ret, const BIGNUM *a, const BN_MONT_CTX *mont, 339 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, 341 const BIGNUM *n; 427 static int BN_from_montgomery_word(BIGNUM *re [all...] |
H A D | exponentiation.c | 127 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { 129 BIGNUM *v, *rr; 188 BIGNUM N; /* the divisor */ 189 BIGNUM Nr; /* the reciprocal */ 211 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { 226 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { 228 BIGNUM * [all...] |
/external/openssl/crypto/bn/ |
H A D | bn_add.c | 64 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) 66 const BIGNUM *tmp; 105 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) 109 const BIGNUM *tmp; 166 int BN_usub(BIGNUM *r, const BIGNUM * [all...] |
H A D | bn_rand.c | 119 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) 212 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) 217 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) 223 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) 231 static int bn_rand_range(int pseudo, BIGNUM *r, const BIGNUM *range) 233 int (*bn_rand)(BIGNUM *, int, int, int) = pseudo ? BN_pseudo_rand : BN_rand; 298 int BN_rand_range(BIGNUM *r, const BIGNUM *range) 303 int BN_pseudo_rand_range(BIGNUM * [all...] |
H A D | bn_gf2m.c | 229 int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) 232 const BIGNUM *at, *bt; 267 int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[]) 365 int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p) 386 int BN_GF2m_mod_mul_arr(BIGNUM * [all...] |
H A D | bn_shift.c | 63 int BN_lshift1(BIGNUM *r, const BIGNUM *a) 99 int BN_rshift1(BIGNUM *r, const BIGNUM *a) 135 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n) 171 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
|
H A D | bn_mpi.c | 63 int BN_bn2mpi(const BIGNUM *a, unsigned char *d) 91 BIGNUM *BN_mpi2bn(const unsigned char *d, int n, BIGNUM *a)
|
H A D | divtest.c | 11 static void bug(char *m, BIGNUM *a, BIGNUM *b) 23 BIGNUM *a=BN_new(), *b=BN_new(), *c=BN_new(), *d=BN_new(),
|
H A D | bnspeed.c | 168 void do_mul(BIGNUM *r,BIGNUM *a,BIGNUM *b,BN_CTX *ctx); 173 BIGNUM a,b,c; 183 void do_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
|
/external/openssl/crypto/dh/ |
H A D | dh_key.c | 66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 67 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, 68 const BIGNUM *a, const BIGNUM *p, 69 const BIGNUM *m, BN_CTX *ctx, 87 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) 124 BIGNUM *pub_key=NULL,*priv_key=NULL; 175 BIGNUM local_prk; 176 BIGNUM *prk; 203 static int compute_key(unsigned char *key, const BIGNUM *pub_ke [all...] |
H A D | dh_asn1.c | 83 ASN1_SIMPLE(DH, p, BIGNUM), 84 ASN1_SIMPLE(DH, g, BIGNUM),
|
/external/openssl/crypto/ec/ |
H A D | ecp_nist.c | 130 int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, 131 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 135 BIGNUM *tmp_bn; 169 int ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 170 const BIGNUM *b, BN_CTX *ctx) 195 int ec_GFp_nist_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
|
H A D | ecp_mont.c | 205 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 209 BIGNUM *one = NULL; 265 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 277 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx) 289 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM * [all...] |
H A D | ec2_mult.c | 84 static int gf2m_Mdouble(const EC_GROUP *group, BIGNUM *x, BIGNUM *z, BN_CTX *ctx) 86 BIGNUM *t1; 115 static int gf2m_Madd(const EC_GROUP *group, const BIGNUM *x, BIGNUM *x1, BIGNUM *z1, 116 const BIGNUM *x2, const BIGNUM *z2, BN_CTX *ctx) 118 BIGNUM *t1, *t2; 152 static int gf2m_Mxy(const EC_GROUP *group, const BIGNUM * [all...] |
H A D | ec2_smpl.c | 199 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 231 int ec_GF2m_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) 270 BIGNUM *b; 360 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) 387 BIGNUM * [all...] |
H A D | ecp_smpl.c | 177 const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) 181 BIGNUM *tmp_a; 231 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) 291 BIGNUM *a,*b,*order,*tmp_1,*tmp_2; 292 const BIGNUM *p = &group->field; 403 const BIGNUM * [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/ec/ |
H A D | ec_montgomery.c | 189 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, 190 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { 193 BIGNUM *one = NULL; 246 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 247 const BIGNUM *b, BN_CTX *ctx) { 256 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 266 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM * [all...] |
H A D | simple.c | 164 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p, 165 const BIGNUM *a, const BIGNUM *b, 169 BIGNUM *tmp_a; 223 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, 224 BIGNUM *b, BN_CTX *ctx) { 274 BIGNUM *a, *b, *order, *tmp_1, *tmp_2; 275 const BIGNUM *p = &group->field; 385 const EC_GROUP *group, EC_POINT *point, const BIGNUM * [all...] |
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
H A D | ec.h | 128 OPENSSL_EXPORT int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, 134 BIGNUM *cofactor, BN_CTX *ctx); 141 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p, 142 BIGNUM *out_a, BIGNUM *out_b, 228 BIGNUM *x, BIGNUM *y, 235 const BIGNUM *x, 236 const BIGNUM *y, 259 const EC_GROUP *group, EC_POINT *point, const BIGNUM * [all...] |
/external/openssl/crypto/engine/ |
H A D | eng_cryptodev.c | 105 static int bn2crparam(const BIGNUM *a, struct crparam *crp); 106 static int crparam2bn(struct crparam *crp, BIGNUM *a); 108 static int cryptodev_asym(struct crypt_kop *kop, int rlen, BIGNUM *r, 109 int slen, BIGNUM *s); 111 static int cryptodev_bn_mod_exp(BIGNUM *r, const BIGNUM *a, 112 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 113 static int cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM * [all...] |