Home
last modified time | relevance | path

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

123

/external/boringssl/src/include/openssl/
Dbn.h345 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void);
349 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx);
353 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx);
358 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx);
362 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx);
395 BN_CTX *ctx);
404 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
413 BN_CTX *ctx);
423 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx);
534 const BIGNUM *divisor, BN_CTX *ctx);
[all …]
Dec.h126 BN_CTX *ignored);
142 BIGNUM *cofactor, BN_CTX *ctx);
151 BN_CTX *ctx);
203 const EC_POINT *point, BN_CTX *ctx);
208 const EC_POINT *b, BN_CTX *ctx);
222 BN_CTX *ctx);
232 BN_CTX *ctx);
241 uint8_t *buf, size_t len, BN_CTX *ctx);
248 BN_CTX *ctx);
255 BN_CTX *ctx);
[all …]
/external/boringssl/src/crypto/fipsmodule/bn/
Dinternal.h405 BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
417 int bn_jacobi(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
426 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
451 unsigned n, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
489 const BIGNUM *b, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
494 int bn_mul_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
498 int bn_sqr_consttime(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
508 const BIGNUM *divisor, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
515 BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
520 BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
[all …]
Dctx.c108 BN_CTX *BN_CTX_new(void) { in BN_CTX_new()
109 BN_CTX *ret = OPENSSL_malloc(sizeof(BN_CTX)); in BN_CTX_new()
124 void BN_CTX_free(BN_CTX *ctx) { in BN_CTX_free()
134 void BN_CTX_start(BN_CTX *ctx) { in BN_CTX_start()
148 BIGNUM *BN_CTX_get(BN_CTX *ctx) { in BN_CTX_get()
184 void BN_CTX_end(BN_CTX *ctx) { in BN_CTX_end()
Ddiv.c196 const BIGNUM *divisor, BN_CTX *ctx) { in BN_div()
403 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod()
461 BN_CTX *ctx) { in bn_div_consttime()
532 static BIGNUM *bn_scratch_space_from_ctx(size_t width, BN_CTX *ctx) { in bn_scratch_space_from_ctx()
549 BN_CTX *ctx) { in bn_resized_from_ctx()
565 BN_CTX *ctx) { in BN_mod_add()
574 BN_CTX *ctx = BN_CTX_new(); in BN_mod_add_quick()
582 const BIGNUM *m, BN_CTX *ctx) { in bn_mod_add_consttime()
599 BN_CTX *ctx) { in BN_mod_sub()
607 const BIGNUM *m, BN_CTX *ctx) { in bn_mod_sub_consttime()
[all …]
Dmontgomery.c208 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
213 BN_CTX *new_ctx = NULL; in BN_MONT_CTX_set()
236 BN_MONT_CTX *BN_MONT_CTX_new_for_modulus(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_for_modulus()
246 BN_MONT_CTX *BN_MONT_CTX_new_consttime(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_consttime()
265 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
284 BN_CTX *ctx) { in BN_to_montgomery()
344 BN_CTX *ctx) { in BN_from_montgomery()
363 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_one_to_montgomery()
386 BN_CTX *ctx) { in bn_mod_mul_montgomery_fallback()
418 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_mul_montgomery()
Dprime.c463 const BIGNUM *rem, BN_CTX *ctx);
465 const BIGNUM *rem, BN_CTX *ctx);
487 BN_CTX *ctx; in BN_generate_prime_ex()
598 int iterations, BN_CTX *ctx, int do_trial_division, in BN_primality_test()
638 BN_CTX *new_ctx = NULL; in BN_primality_test()
796 int BN_is_prime_ex(const BIGNUM *candidate, int checks, BN_CTX *ctx, in BN_is_prime_ex()
801 int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx, in BN_is_prime_fasttest_ex()
813 BN_CTX *ctx, BN_GENCB *cb) { in BN_enhanced_miller_rabin_primality_test()
1029 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh()
1081 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh_safe()
Dgcd.c117 const BIGNUM *n, BN_CTX *ctx) { in BN_mod_inverse_odd()
284 BN_CTX *ctx) { in BN_mod_inverse()
329 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_inverse_blinded()
357 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_prime()
369 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_secret_prime()
Dexponentiation.c123 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp()
200 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set()
215 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal()
241 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_div_recp()
344 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_mod_mul_reciprocal()
431 const BIGNUM *m, BN_CTX *ctx) { in mod_exp_recp()
568 BN_CTX *ctx) { in BN_mod_exp()
588 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) { in BN_mod_exp_mont()
902 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_consttime()
1226 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_word()
[all …]
Dgcd_extra.c50 const BIGNUM *y, BN_CTX *ctx) { in bn_gcd_consttime()
122 int BN_gcd(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) { in BN_gcd()
129 const BIGNUM *y, BN_CTX *ctx) { in bn_is_relatively_prime()
156 int bn_lcm_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in bn_lcm_consttime()
170 const BIGNUM *n, BN_CTX *ctx) { in bn_mod_inverse_consttime()
Dmul.c311 BN_CTX *ctx) { in bn_abs_sub_consttime()
549 BN_CTX *ctx) { in bn_mul_impl()
640 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in BN_mul()
650 int bn_mul_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in bn_mul_consttime()
793 int bn_sqr_consttime(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx) { in bn_sqr_consttime()
851 int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx) { in BN_sqr()
Dbn_test.cc184 static void TestSum(BIGNUMFileTest *t, BN_CTX *ctx) { in TestSum()
295 static void TestLShift1(BIGNUMFileTest *t, BN_CTX *ctx) { in TestLShift1()
354 static void TestLShift(BIGNUMFileTest *t, BN_CTX *ctx) { in TestLShift()
378 static void TestRShift(BIGNUMFileTest *t, BN_CTX *ctx) { in TestRShift()
404 static void TestSquare(BIGNUMFileTest *t, BN_CTX *ctx) { in TestSquare()
477 static void TestProduct(BIGNUMFileTest *t, BN_CTX *ctx) { in TestProduct()
540 static void TestQuotient(BIGNUMFileTest *t, BN_CTX *ctx) { in TestQuotient()
606 static void TestModMul(BIGNUMFileTest *t, BN_CTX *ctx) { in TestModMul()
670 static void TestModSquare(BIGNUMFileTest *t, BN_CTX *ctx) { in TestModSquare()
743 static void TestModExp(BIGNUMFileTest *t, BN_CTX *ctx) { in TestModExp()
[all …]
Djacobi.c63 int bn_jacobi(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in bn_jacobi()
Dsqrt.c62 BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_mod_sqrt()
427 int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx) { in BN_sqrt()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dblinding.c130 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()
210 BN_CTX *ctx) { in BN_BLINDING_invert()
217 const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_blinding_create_param()
Drsa_impl.c132 static int freeze_private_key(RSA *rsa, BN_CTX *ctx) { in freeze_private_key()
263 BN_CTX *ctx = NULL; in RSA_encrypt()
358 BN_CTX *ctx) { in rsa_blinding_get()
568 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
594 BN_CTX *ctx = BN_CTX_new(); in RSA_verify_raw()
676 BN_CTX *ctx = NULL; in rsa_default_private_transform()
801 BN_CTX *ctx) { in mod_montgomery()
828 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) { in mod_exp()
955 const BIGNUM *pow2_bits_100, BN_CTX *ctx, in generate_prime()
1112 BN_CTX *ctx = BN_CTX_new(); in rsa_generate_key_impl()
Dinternal.h87 const BN_MONT_CTX *mont_ctx, BN_CTX *ctx);
89 BN_CTX *ctx);
Drsa.c642 const BIGNUM *m, int check_reduced, BN_CTX *ctx) { in check_mod_inverse()
660 BN_CTX *ctx; in RSA_check_key()
800 BN_CTX *ctx = BN_CTX_new(); in RSA_check_fips()
877 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx) { in RSA_blinding_on()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec.c318 const BIGNUM *b, BN_CTX *ctx) { in EC_GROUP_new_curve_GFp()
421 BN_CTX *ctx = BN_CTX_new(); in ec_group_new_from_data()
585 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()
633 BN_CTX *ctx) { in EC_GROUP_get_cofactor()
639 BIGNUM *out_b, BN_CTX *ctx) { in EC_GROUP_get_curve_GFp()
757 BN_CTX *ctx) { in EC_POINT_is_on_curve()
766 BN_CTX *ctx) { in EC_POINT_cmp()
777 BIGNUM *y, BN_CTX *ctx) { in EC_POINT_get_affine_coordinates_GFp()
799 BN_CTX *ctx) { in EC_POINT_set_affine_coordinates_GFp()
[all …]
Doct.c131 BN_CTX *ctx) { in ec_GFp_simple_oct2point()
132 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point()
214 const uint8_t *buf, size_t len, BN_CTX *ctx) { in EC_POINT_oct2point()
224 size_t len, BN_CTX *ctx) { in EC_POINT_point2oct()
234 int y_bit, BN_CTX *ctx) { in EC_POINT_set_compressed_coordinates_GFp()
245 BN_CTX *new_ctx = NULL; in EC_POINT_set_compressed_coordinates_GFp()
Dinternal.h126 const BIGNUM *b, BN_CTX *);
395 const BIGNUM *b, BN_CTX *);
424 const BIGNUM *b, BN_CTX *);
/external/boringssl/src/crypto/dsa/
Ddsa.c85 static int dsa_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv,
211 BN_CTX *ctx = NULL; in DSA_generate_parameters_ex()
472 BN_CTX *ctx = NULL; in DSA_generate_key()
548 const BN_MONT_CTX *mont, BN_CTX *ctx) { in mod_mul_consttime()
564 BN_CTX *ctx = NULL; in DSA_do_sign()
666 BN_CTX *ctx; in DSA_do_check_signature()
863 static int dsa_sign_setup(const DSA *dsa, BN_CTX *ctx, BIGNUM **out_kinv, in dsa_sign_setup()
/external/boringssl/src/crypto/dh/
Dcheck.c65 BN_CTX *ctx = BN_CTX_new(); in DH_check_pub_key()
121 BN_CTX *ctx = NULL; in DH_check()
Ddh.c206 BN_CTX *ctx = NULL; in DH_generate_parameters_ex()
295 BN_CTX *ctx = NULL; in DH_generate_key()
380 BN_CTX *ctx = NULL; in DH_compute_key()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c562 BN_CTX *ctx; in crypto_dh_derive_secret()
596 BN_CTX *ctx; in crypto_mod_exp()
1343 BN_CTX *bnctx; in crypto_bignum_mod()
1362 BN_CTX *bnctx; in crypto_bignum_exptmod()
1384 BN_CTX *bnctx; in crypto_bignum_inverse()
1421 BN_CTX *bnctx; in crypto_bignum_div()
1447 BN_CTX *bnctx; in crypto_bignum_mulmod()
1506 BN_CTX *bnctx; in crypto_bignum_legendre()
1549 BN_CTX *bnctx;

123