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.h98 const BIGNUM *b, BN_CTX *);
100 BN_CTX *);
106 int (*group_check_discriminant)(const EC_GROUP *, BN_CTX *);
124 const BIGNUM *z, BN_CTX *);
127 BIGNUM *y, BIGNUM *z, BN_CTX *);
130 BN_CTX *);
132 BIGNUM *x, BIGNUM *y, BN_CTX *);
134 const BIGNUM *x, int y_bit, BN_CTX *);
139 size_t len, BN_CTX *);
141 size_t len, BN_CTX *);
[all …]
Dsimple.c168 BN_CTX *ctx) { in ec_GFp_simple_group_set_curve()
170 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve()
234 BIGNUM *b, BN_CTX *ctx) { in ec_GFp_simple_group_get_curve()
236 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve()
277 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) { in ec_GFp_simple_group_check_discriminant()
281 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_check_discriminant()
390 const BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_set_Jprojective_coordinates_GFp()
391 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
450 BIGNUM *z, BN_CTX *ctx) { in ec_GFp_simple_get_Jprojective_coordinates_GFp()
451 BN_CTX *new_ctx = NULL; in ec_GFp_simple_get_Jprojective_coordinates_GFp()
[all …]
Dec.c269 const BIGNUM *b, BN_CTX *ctx) { in EC_GROUP_new_curve_GFp()
331 BN_CTX *ctx = NULL; in ec_group_new_from_data()
527 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored) { in EC_GROUP_cmp()
537 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) { in EC_GROUP_get_order()
546 BN_CTX *ctx) { in EC_GROUP_get_cofactor()
555 BIGNUM *out_b, BN_CTX *ctx) { in EC_GROUP_get_curve_GFp()
575 int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx) { in EC_GROUP_precompute_mult()
718 BN_CTX *ctx) { in EC_POINT_is_on_curve()
732 BN_CTX *ctx) { in EC_POINT_cmp()
744 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) { in EC_POINT_make_affine()
[all …]
Dec_montgomery.c180 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_group_set_curve()
181 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve()
233 const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_field_mul()
243 BN_CTX *ctx) { in ec_GFp_mont_field_sqr()
253 BN_CTX *ctx) { in ec_GFp_mont_field_encode()
263 BN_CTX *ctx) { in ec_GFp_mont_field_decode()
273 BN_CTX *ctx) { in ec_GFp_mont_field_set_to_one()
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()
181 BN_CTX *ctx) { in ec_GFp_simple_oct2point()
184 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point()
279 const uint8_t *buf, size_t len, BN_CTX *ctx) { in EC_POINT_oct2point()
299 size_t len, BN_CTX *ctx) { in EC_POINT_point2oct()
319 int y_bit, BN_CTX *ctx) { in ec_GFp_simple_set_compressed_coordinates()
320 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_compressed_coordinates()
459 int y_bit, BN_CTX *ctx) { in EC_POINT_set_compressed_coordinates_GFp()
Dec_key.c289 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx) { in EC_KEY_precompute_mult()
298 BN_CTX *ctx = NULL; in EC_KEY_check_key()
368 BN_CTX *ctx = NULL; in EC_KEY_set_public_key_affine_coordinates()
420 BN_CTX *ctx = NULL; in EC_KEY_generate_key()
Dwnaf.c292 BN_CTX *ctx) { in ec_wNAF_mul()
293 BN_CTX *new_ctx = NULL; in ec_wNAF_mul()
682 int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx) { in ec_wNAF_precompute_mult()
685 BN_CTX *new_ctx = NULL; in ec_wNAF_precompute_mult()
/external/boringssl/src/include/openssl/
Dbn.h333 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void);
337 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx);
341 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx);
346 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx);
350 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx);
383 BN_CTX *ctx);
392 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
401 BN_CTX *ctx);
411 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx);
492 const BIGNUM *divisor, BN_CTX *ctx);
[all …]
Dec.h117 BN_CTX *ignored);
126 BN_CTX *ctx);
131 BIGNUM *cofactor, BN_CTX *ctx);
140 BN_CTX *ctx);
152 OPENSSL_EXPORT int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
194 const EC_POINT *point, BN_CTX *ctx);
199 const EC_POINT *b, BN_CTX *ctx);
204 BN_CTX *ctx);
210 EC_POINT *points[], BN_CTX *ctx);
221 BN_CTX *ctx);
[all …]
Drsa.h396 OPENSSL_EXPORT int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
444 BN_CTX *ctx); /* Can be null */
446 const BIGNUM *m, BN_CTX *ctx,
Ddsa.h291 OPENSSL_EXPORT int DSA_sign_setup(const DSA *dsa, BN_CTX *ctx,
325 int (*sign_setup)(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp,
/external/boringssl/src/crypto/rsa/
Dinternal.h79 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);
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,
89 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx),
91 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx);
Dblinding.c132 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
189 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_update()
225 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_convert()
229 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_convert_ex()
257 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) { in BN_BLINDING_invert()
262 BN_CTX *ctx) { in BN_BLINDING_invert_ex()
285 BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param()
287 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), in BN_BLINDING_create_param()
368 const BIGNUM *q, BN_CTX *ctx) { in rsa_get_public_exp()
400 BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx) { in rsa_setup_blinding()
[all …]
Drsa_impl.c93 BN_CTX *ctx = NULL; in encrypt()
211 BN_CTX *ctx) { in rsa_blinding_get()
421 BN_CTX *ctx = NULL; in verify_raw()
524 BN_CTX *ctx = NULL; in private_transform()
614 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) { in mod_exp()
774 BN_CTX *ctx = NULL; in keygen()
/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()
604 const BIGNUM *a1_odd, int k, BN_CTX *ctx, in witness()
722 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.cc100 static bool test_lshift(FILE *fp, BN_CTX *ctx, ScopedBIGNUM a);
102 static bool test_rshift(FILE *fp, BN_CTX *ctx);
103 static bool test_sqr(FILE *fp, BN_CTX *ctx);
105 static bool test_div(FILE *fp, BN_CTX *ctx);
109 static bool test_mont(FILE *fp, BN_CTX *ctx);
110 static bool test_mod(FILE *fp, BN_CTX *ctx);
111 static bool test_mod_mul(FILE *fp, BN_CTX *ctx);
112 static bool test_mod_exp(FILE *fp, BN_CTX *ctx);
113 static bool test_mod_exp_mont_consttime(FILE *fp, BN_CTX *ctx);
114 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()
Dmontgomery.c173 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
297 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
329 BN_CTX *ctx) { in BN_to_montgomery()
500 BN_CTX *ctx) { in BN_from_montgomery()
519 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_mul_montgomery()
Dexponentiation.c128 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp()
213 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set()
228 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal()
254 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_div_recp()
357 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_mod_mul_reciprocal()
420 const BIGNUM *m, BN_CTX *ctx) { in mod_exp_recp()
562 BN_CTX *ctx) { in BN_mod_exp()
605 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) { in BN_mod_exp_mont()
853 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_consttime()
1205 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) { in BN_mod_exp_mont_word()
[all …]
Dgcd.c184 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { in BN_gcd()
227 const BIGNUM *n, BN_CTX *ctx);
230 BN_CTX *ctx) { in BN_mod_inverse()
541 const BIGNUM *n, BN_CTX *ctx) { in BN_mod_inverse_no_branch()
/external/boringssl/src/crypto/dh/
Ddh_impl.c98 BN_CTX *ctx = NULL; in generate_parameters()
182 BN_CTX *ctx; in generate_key()
259 BN_CTX *ctx = NULL; in compute_key()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c79 static int sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, in sign_setup()
81 BN_CTX *ctx; in sign_setup()
192 BN_CTX *ctx = NULL; in sign()
286 BN_CTX *ctx; in verify()
396 BN_CTX *ctx = NULL; in keygen()
464 BN_CTX *ctx = NULL; in paramgen()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c141 BN_CTX *ctx; in ECDSA_do_verify()
234 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ecdsa_sign_setup()
237 BN_CTX *ctx = NULL; in ecdsa_sign_setup()
352 int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp) { in ECDSA_sign_setup()
362 BN_CTX *ctx = NULL; in ECDSA_do_sign_ex()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c384 BN_CTX *ctx; in crypto_mod_exp()
987 BN_CTX *bnctx; in crypto_bignum_mod()
1006 BN_CTX *bnctx; in crypto_bignum_exptmod()
1024 BN_CTX *bnctx; in crypto_bignum_inverse()
1052 BN_CTX *bnctx; in crypto_bignum_div()
1072 BN_CTX *bnctx; in crypto_bignum_mulmod()
1113 BN_CTX *bnctx; in crypto_bignum_legendre()
1150 BN_CTX *bnctx;

123