Home
last modified time | relevance | path

Searched refs:BN_CTX (Results 1 – 25 of 54) sorted by relevance

123

/external/boringssl/src/crypto/ec/
Dinternal.h92 const BIGNUM *b, BN_CTX *);
96 BIGNUM *x, BIGNUM *y, BN_CTX *);
104 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
113 BN_CTX *ctx);
121 const BIGNUM *b, BN_CTX *);
122 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
125 BN_CTX *); /* e.g. to Montgomery */
127 BN_CTX *); /* e.g. from Montgomery */
128 int (*field_set_to_one)(const EC_GROUP *, BIGNUM *r, BN_CTX *);
178 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
[all …]
Dsimple.c124 BN_CTX *ctx) { in ec_GFp_simple_group_set_curve()
126 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve()
190 BIGNUM *b, BN_CTX *ctx) { in ec_GFp_simple_group_get_curve()
192 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve()
233 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) { in ec_GFp_simple_group_check_discriminant()
237 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_check_discriminant()
345 const BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_set_Jprojective_coordinates_GFp()
346 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
405 BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_get_Jprojective_coordinates_GFp()
406 BN_CTX *new_ctx = NULL; in ec_GFp_simple_get_Jprojective_coordinates_GFp()
[all …]
Dec.c281 BN_CTX *bn_ctx = BN_CTX_new(); in built_in_curve_scalar_field_monts_init()
354 const BIGNUM *b, BN_CTX *ctx) { in EC_GROUP_new_curve_GFp()
420 BN_CTX *ctx = BN_CTX_new(); in ec_group_new_from_data()
606 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored) { in EC_GROUP_cmp()
621 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) { in EC_GROUP_get_order()
629 BN_CTX *ctx) { in EC_GROUP_get_cofactor()
638 BIGNUM *out_b, BN_CTX *ctx) { in EC_GROUP_get_curve_GFp()
743 BN_CTX *ctx) { in EC_POINT_is_on_curve()
752 BN_CTX *ctx) { in EC_POINT_cmp()
760 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) { in EC_POINT_make_affine()
[all …]
Dec_montgomery.c137 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_group_set_curve()
138 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve()
190 const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_field_mul()
200 BN_CTX *ctx) { in ec_GFp_mont_field_sqr()
210 BN_CTX *ctx) { in ec_GFp_mont_field_encode()
220 BN_CTX *ctx) { in ec_GFp_mont_field_decode()
230 BN_CTX *ctx) { in ec_GFp_mont_field_set_to_one()
244 BN_CTX *ctx) { in ec_GFp_mont_check_pub_key_order()
Doct.c79 uint8_t *buf, size_t len, BN_CTX *ctx) { in ec_GFp_simple_point2oct()
81 BN_CTX *new_ctx = NULL; in ec_GFp_simple_point2oct()
173 BN_CTX *ctx) { in ec_GFp_simple_oct2point()
176 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point()
253 const uint8_t *buf, size_t len, BN_CTX *ctx) { in EC_POINT_oct2point()
263 size_t len, BN_CTX *ctx) { in EC_POINT_point2oct()
273 int y_bit, BN_CTX *ctx) { in ec_GFp_simple_set_compressed_coordinates()
274 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_compressed_coordinates()
410 int y_bit, BN_CTX *ctx) { in EC_POINT_set_compressed_coordinates_GFp()
Dp256-x86_64.c238 BN_CTX *ctx) { in ecp_nistz256_windowed_mul()
253 BN_CTX *new_ctx = NULL; in ecp_nistz256_windowed_mul()
387 const EC_POINT *p_, const BIGNUM *p_scalar, BN_CTX *ctx) { in ecp_nistz256_points_mul()
399 BN_CTX *new_ctx = NULL; in ecp_nistz256_points_mul()
527 BIGNUM *x, BIGNUM *y, BN_CTX *ctx) { in ecp_nistz256_get_affine()
/external/boringssl/src/include/openssl/
Dbn.h352 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void);
356 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx);
360 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx);
365 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx);
369 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx);
402 BN_CTX *ctx);
411 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
420 BN_CTX *ctx);
430 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx);
511 const BIGNUM *divisor, BN_CTX *ctx);
[all …]
Dec.h117 BN_CTX *ignored);
130 BIGNUM *cofactor, BN_CTX *ctx);
139 BN_CTX *ctx);
184 const EC_POINT *point, BN_CTX *ctx);
189 const EC_POINT *b, BN_CTX *ctx);
194 BN_CTX *ctx);
200 EC_POINT *points[], BN_CTX *ctx);
211 BN_CTX *ctx);
221 BN_CTX *ctx);
230 uint8_t *buf, size_t len, BN_CTX *ctx);
[all …]
Drsa.h433 OPENSSL_EXPORT int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
525 BN_CTX *ctx); /* Can be null */
527 const BIGNUM *m, BN_CTX *ctx,
/external/boringssl/src/crypto/rsa/
Dinternal.h99 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);
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 *);
107 BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
109 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont),
111 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx);
Dblinding.c134 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont);
191 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_update()
227 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_convert()
231 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_convert_ex()
259 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_invert()
264 BN_CTX *ctx) { in BN_BLINDING_invert_ex()
287 BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param()
289 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont), in BN_BLINDING_create_param()
370 const BIGNUM *q, BN_CTX *ctx) { in rsa_get_public_exp()
402 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx) { in rsa_setup_blinding()
[all …]
/external/boringssl/src/crypto/bn/
Dprime.c333 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
336 const BIGNUM *rem, BN_CTX *ctx);
338 const BIGNUM *rem, BN_CTX *ctx);
360 BN_CTX *ctx; in BN_generate_prime_ex()
455 int checks, BN_CTX *ctx, int do_trial_division, in BN_primality_test()
470 int BN_is_prime_ex(const BIGNUM *candidate, int checks, BN_CTX *ctx, BN_GENCB *cb) { in BN_is_prime_ex()
474 int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_fasttest_ex()
478 BN_CTX *ctx = NULL; in BN_is_prime_fasttest_ex()
603 const BIGNUM *a1_odd, int k, BN_CTX *ctx, in witness()
721 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh()
[all …]
Dctx.c124 BN_CTX *BN_CTX_new(void) { in BN_CTX_new()
125 BN_CTX *ret = OPENSSL_malloc(sizeof(BN_CTX)); in BN_CTX_new()
140 void BN_CTX_free(BN_CTX *ctx) { in BN_CTX_free()
150 void BN_CTX_start(BN_CTX *ctx) { in BN_CTX_start()
161 BIGNUM *BN_CTX_get(BN_CTX *ctx) { in BN_CTX_get()
182 void BN_CTX_end(BN_CTX *ctx) { in BN_CTX_end()
Dbn_test.cc103 static bool test_lshift(FILE *fp, BN_CTX *ctx, ScopedBIGNUM a);
105 static bool test_rshift(FILE *fp, BN_CTX *ctx);
106 static bool test_sqr(FILE *fp, BN_CTX *ctx);
108 static bool test_div(FILE *fp, BN_CTX *ctx);
112 static bool test_mont(FILE *fp, BN_CTX *ctx);
113 static bool test_mod(FILE *fp, BN_CTX *ctx);
114 static bool test_mod_mul(FILE *fp, BN_CTX *ctx);
115 static bool test_mod_exp(FILE *fp, BN_CTX *ctx);
116 static bool test_mod_exp_mont_consttime(FILE *fp, BN_CTX *ctx);
117 static bool test_exp(FILE *fp, BN_CTX *ctx);
[all …]
Ddiv.c116 BN_CTX *ctx) { in BN_div()
383 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod()
396 BN_CTX *ctx) { in BN_mod_add()
415 BN_CTX *ctx) { in BN_mod_sub()
436 BN_CTX *ctx) { in BN_mod_mul()
467 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_sqr()
477 BN_CTX *ctx) { in BN_mod_lshift()
545 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_lshift1()
Dgcd.c184 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { in BN_gcd()
228 BN_CTX *ctx);
231 const BIGNUM *n, BN_CTX *ctx) { in BN_mod_inverse_ex()
543 BN_CTX *ctx) { in BN_mod_inverse()
552 BN_CTX *ctx) { in BN_mod_inverse_no_branch()
Dmontgomery.c165 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
293 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
325 BN_CTX *ctx) { in BN_to_montgomery()
496 BN_CTX *ctx) { in BN_from_montgomery()
515 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_mul_montgomery()
Dexponentiation.c139 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp()
224 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set()
239 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal()
265 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_div_recp()
368 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_mod_mul_reciprocal()
431 const BIGNUM *m, BN_CTX *ctx) { in mod_exp_recp()
577 BN_CTX *ctx) { in BN_mod_exp()
620 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) { in BN_mod_exp_mont()
865 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_consttime()
1206 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_word()
[all …]
/external/tpm2/
DCpriECC.c107 BN_CTX *context // IN: working context in Point2B()
143 BN_CTX *groupContext // IN: the context in which the group is to be in EccCurveInit()
150 BN_CTX *context; in EccCurveInit()
212 BN_CTX *context // IN: the BIGNUM context in PointFrom2B()
244 BN_CTX *context // IN: the BIGNUM context in EccInitPoint2B()
273 BN_CTX *context // IN: working context in PointMul()
351 BN_CTX *context; in _cpri__EccPointMultiply()
473 BN_CTX *context; in _cpri__EccCommitCompute()
592 BN_CTX *context; in _cpri__EccIsPointOnCurve()
683 BN_CTX *context; // the context for the BIGNUM values in _cpri__GenerateKeyEcc()
[all …]
DMathFunctions.c219 BN_CTX *context; in _math__Mul()
287 BN_CTX *context; in _math__Div()
448 BN_CTX *context; in _math__ModExp()
DRSAKeySieve.c233 BN_CTX *context in MillerRabin()
566 BN_CTX *context // IN: the big number context to play in in PrimeSelectWithSieve()
682 BN_CTX *ctx in GenerateRandomPrime()
690 BN_CTX *context; in GenerateRandomPrime()
806 BN_CTX *context; in _cpri__GenerateKeyRSA()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c145 BN_CTX *ctx; in ECDSA_do_verify()
233 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ecdsa_sign_setup()
236 BN_CTX *ctx = NULL; in ecdsa_sign_setup()
360 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp) { in ECDSA_sign_setup()
370 BN_CTX *ctx = NULL; in ECDSA_do_sign_ex()
/external/boringssl/src/crypto/dsa/
Ddsa.c148 BN_CTX *ctx = NULL; in DSA_generate_parameters_ex()
398 BN_CTX *ctx = NULL; in DSA_generate_key()
477 BN_CTX *ctx = NULL; in DSA_do_sign()
580 BN_CTX *ctx; in DSA_do_check_signature()
764 int DSA_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv, in DSA_sign_setup()
766 BN_CTX *ctx; in DSA_sign_setup()
/external/boringssl/src/crypto/dh/
Ddh.c148 BN_CTX *ctx = NULL; in DH_generate_parameters_ex()
238 BN_CTX *ctx = NULL; in DH_generate_key()
320 BN_CTX *ctx = NULL; in DH_compute_key()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c453 BN_CTX *ctx; in crypto_mod_exp()
1068 BN_CTX *bnctx; in crypto_bignum_mod()
1087 BN_CTX *bnctx; in crypto_bignum_exptmod()
1108 BN_CTX *bnctx; in crypto_bignum_inverse()
1140 BN_CTX *bnctx; in crypto_bignum_div()
1163 BN_CTX *bnctx; in crypto_bignum_mulmod()
1207 BN_CTX *bnctx; in crypto_bignum_legendre()
1247 BN_CTX *bnctx;

123