/external/boringssl/src/crypto/ec/ |
D | internal.h | 87 const BIGNUM *b, BN_CTX *); 89 BIGNUM *x, BIGNUM *y, BN_CTX *); 97 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx); 103 const BIGNUM *b, BN_CTX *); 104 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); 107 BN_CTX *); /* e.g. to Montgomery */ 109 BN_CTX *); /* e.g. from Montgomery */ 156 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx); 163 const BIGNUM *b, BN_CTX *); 165 BIGNUM *b, BN_CTX *); [all …]
|
D | simple.c | 121 BN_CTX *ctx) { in ec_GFp_simple_group_set_curve() 123 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve() 195 BIGNUM *b, BN_CTX *ctx) { in ec_GFp_simple_group_get_curve() 197 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve() 275 const BIGNUM *in, BN_CTX *ctx) { in set_Jprojective_coordinate_GFp() 292 const BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_set_Jprojective_coordinates_GFp() 293 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_Jprojective_coordinates_GFp() 319 BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_get_Jprojective_coordinates_GFp() 320 BN_CTX *new_ctx = NULL; in ec_GFp_simple_get_Jprojective_coordinates_GFp() 361 const BIGNUM *y, BN_CTX *ctx) { in ec_GFp_simple_point_set_affine_coordinates() [all …]
|
D | ec.c | 295 BN_CTX *bn_ctx = BN_CTX_new(); in built_in_curve_scalar_field_monts_init() 367 const BIGNUM *b, BN_CTX *ctx) { in EC_GROUP_new_curve_GFp() 411 BN_CTX *ctx = BN_CTX_new(); in ec_group_new_from_data() 558 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored) { in EC_GROUP_cmp() 573 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) { in EC_GROUP_get_order() 581 BN_CTX *ctx) { in EC_GROUP_get_cofactor() 587 BIGNUM *out_b, BN_CTX *ctx) { in EC_GROUP_get_curve_GFp() 685 BN_CTX *ctx) { in EC_POINT_is_on_curve() 694 BN_CTX *ctx) { in EC_POINT_cmp() 702 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) { in EC_POINT_make_affine() [all …]
|
D | ec_montgomery.c | 119 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_group_set_curve() 120 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve() 160 const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_field_mul() 170 BN_CTX *ctx) { in ec_GFp_mont_field_sqr() 180 BN_CTX *ctx) { in ec_GFp_mont_field_encode() 190 BN_CTX *ctx) { in ec_GFp_mont_field_decode() 202 BN_CTX *ctx) { in ec_GFp_mont_point_get_affine_coordinates() 208 BN_CTX *new_ctx = NULL; in ec_GFp_mont_point_get_affine_coordinates()
|
D | oct.c | 80 uint8_t *buf, size_t len, BN_CTX *ctx) { in ec_GFp_simple_point2oct() 82 BN_CTX *new_ctx = NULL; in ec_GFp_simple_point2oct() 174 BN_CTX *ctx) { in ec_GFp_simple_oct2point() 177 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point() 254 const uint8_t *buf, size_t len, BN_CTX *ctx) { in EC_POINT_oct2point() 264 size_t len, BN_CTX *ctx) { in EC_POINT_point2oct() 273 point_conversion_form_t form, BN_CTX *ctx) { in EC_POINT_point2cbb() 285 int y_bit, BN_CTX *ctx) { in ec_GFp_simple_set_compressed_coordinates() 291 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()
|
D | p256-x86_64.c | 219 BN_CTX *ctx) { in ecp_nistz256_windowed_mul() 234 BN_CTX *new_ctx = NULL; in ecp_nistz256_windowed_mul() 368 const EC_POINT *p_, const BIGNUM *p_scalar, BN_CTX *ctx) { in ecp_nistz256_points_mul() 380 BN_CTX *new_ctx = NULL; in ecp_nistz256_points_mul() 498 BIGNUM *x, BIGNUM *y, BN_CTX *ctx) { in ecp_nistz256_get_affine()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 362 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void); 366 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx); 370 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx); 375 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx); 379 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx); 412 BN_CTX *ctx); 421 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); 430 BN_CTX *ctx); 440 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx); 540 const BIGNUM *divisor, BN_CTX *ctx); [all …]
|
D | ec.h | 124 BN_CTX *ignored); 137 BIGNUM *cofactor, BN_CTX *ctx); 146 BN_CTX *ctx); 192 const EC_POINT *point, BN_CTX *ctx); 197 const EC_POINT *b, BN_CTX *ctx); 202 BN_CTX *ctx); 208 EC_POINT *points[], BN_CTX *ctx); 219 BN_CTX *ctx); 229 BN_CTX *ctx); 238 uint8_t *buf, size_t len, BN_CTX *ctx); [all …]
|
/external/boringssl/src/crypto/bn/ |
D | ctx.c | 126 BN_CTX *BN_CTX_new(void) { in BN_CTX_new() 127 BN_CTX *ret = OPENSSL_malloc(sizeof(BN_CTX)); in BN_CTX_new() 142 void BN_CTX_free(BN_CTX *ctx) { in BN_CTX_free() 152 void BN_CTX_start(BN_CTX *ctx) { in BN_CTX_start() 163 BIGNUM *BN_CTX_get(BN_CTX *ctx) { in BN_CTX_get() 184 void BN_CTX_end(BN_CTX *ctx) { in BN_CTX_end()
|
D | prime.c | 333 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() 607 const BIGNUM *a1_odd, int k, BN_CTX *ctx, in witness() 729 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh() [all …]
|
D | gcd.c | 186 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { in BN_gcd() 230 BN_CTX *ctx); 233 const BIGNUM *n, BN_CTX *ctx) { in BN_mod_inverse_odd() 401 BN_CTX *ctx) { in BN_mod_inverse() 446 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_inverse_blinded() 480 BN_CTX *ctx) { in bn_mod_inverse_general() 614 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_prime() 626 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_secret_prime()
|
D | montgomery.c | 130 const BN_MONT_CTX *mont, BN_CTX *ctx); 176 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set() 227 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked() 259 BN_CTX *ctx) { in BN_to_montgomery() 348 BN_CTX *ctx) { in BN_from_montgomery() 368 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_mul_montgomery() 401 BN_CTX *ctx) { in bn_mod_mul_montgomery_fallback()
|
D | bn_test.cc | 154 static bool TestSum(FileTest *t, BN_CTX *ctx) { in TestSum() 253 static bool TestLShift1(FileTest *t, BN_CTX *ctx) { in TestLShift1() 294 static bool TestLShift(FileTest *t, BN_CTX *ctx) { in TestLShift() 314 static bool TestRShift(FileTest *t, BN_CTX *ctx) { in TestRShift() 332 static bool TestSquare(FileTest *t, BN_CTX *ctx) { in TestSquare() 388 static bool TestProduct(FileTest *t, BN_CTX *ctx) { in TestProduct() 415 static bool TestQuotient(FileTest *t, BN_CTX *ctx) { in TestQuotient() 480 static bool TestModMul(FileTest *t, BN_CTX *ctx) { in TestModMul() 518 static bool TestModSquare(FileTest *t, BN_CTX *ctx) { in TestModSquare() 566 static bool TestModExp(FileTest *t, BN_CTX *ctx) { in TestModExp() [all …]
|
D | div.c | 193 BN_CTX *ctx) { in BN_div() 389 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod() 402 BN_CTX *ctx) { in BN_mod_add() 421 BN_CTX *ctx) { in BN_mod_sub() 442 BN_CTX *ctx) { in BN_mod_mul() 473 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_sqr() 483 BN_CTX *ctx) { in BN_mod_lshift() 551 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_lshift1()
|
D | exponentiation.c | 139 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp() 219 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set() 234 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal() 260 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_div_recp() 363 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_mod_mul_reciprocal() 426 const BIGNUM *m, BN_CTX *ctx) { in mod_exp_recp() 566 BN_CTX *ctx) { in BN_mod_exp() 575 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) { in BN_mod_exp_mont() 852 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_consttime() 1183 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_word() [all …]
|
D | internal.h | 245 BN_CTX *ctx, const BN_MONT_CTX *mont_p); in OPENSSL_MSVC_PRAGMA() 251 BN_CTX *ctx, const BN_MONT_CTX *mont_p); in OPENSSL_MSVC_PRAGMA()
|
/external/boringssl/src/crypto/rsa/ |
D | blinding.c | 130 const BN_MONT_CTX *mont, BN_CTX *ctx); 171 const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_blinding_update() 198 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_BLINDING_convert() 211 BN_CTX *ctx) { in BN_BLINDING_invert() 219 const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_blinding_create_param()
|
D | internal.h | 93 const BN_MONT_CTX *mont_ctx, BN_CTX *ctx); 95 BN_CTX *ctx);
|
D | rsa_impl.c | 118 BN_CTX *ctx = NULL; in rsa_default_encrypt() 216 BN_CTX *ctx) { in rsa_blinding_get() 428 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx); 455 BN_CTX *ctx = BN_CTX_new(); in RSA_verify_raw() 532 BN_CTX *ctx = NULL; in rsa_default_private_transform() 641 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) { in mod_exp() 773 BN_CTX *ctx = NULL; in rsa_default_multi_prime_keygen()
|
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa.c | 144 BN_CTX *ctx; in ECDSA_do_verify() 228 static int ecdsa_sign_setup(const EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ecdsa_sign_setup() 231 BN_CTX *ctx = NULL; in ecdsa_sign_setup() 342 int ECDSA_sign_setup(const EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, in ECDSA_sign_setup() 353 BN_CTX *ctx = NULL; in ECDSA_do_sign_ex()
|
/external/tpm2/ |
D | CpriECC.c | 107 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() 595 BN_CTX *context; in _cpri__EccIsPointOnCurve() 686 BN_CTX *context; // the context for the BIGNUM values in _cpri__GenerateKeyEcc() [all …]
|
D | MathFunctions.c | 222 BN_CTX *context; in _math__Mul() 290 BN_CTX *context; in _math__Div() 453 BN_CTX *context; in _math__ModExp()
|
/external/boringssl/src/crypto/dh/ |
D | check.c | 65 BN_CTX *ctx = BN_CTX_new(); in DH_check_pub_key() 122 BN_CTX *ctx = NULL; in DH_check()
|
D | dh.c | 170 BN_CTX *ctx = NULL; in DH_generate_parameters_ex() 259 BN_CTX *ctx = NULL; in DH_generate_key() 344 BN_CTX *ctx = NULL; in DH_compute_key()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa.c | 170 BN_CTX *ctx = NULL; in DSA_generate_parameters_ex() 435 BN_CTX *ctx = NULL; in DSA_generate_key() 511 BN_CTX *ctx = NULL; in DSA_do_sign() 614 BN_CTX *ctx; in DSA_do_check_signature() 811 int DSA_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv, in DSA_sign_setup() 813 BN_CTX *ctx; in DSA_sign_setup()
|