Home
last modified time | relevance | path

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

123

/external/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h107 const BIGNUM *b, BN_CTX *);
109 BIGNUM *x, BIGNUM *y, BN_CTX *);
117 const EC_POINT *p, const EC_SCALAR *p_scalar, BN_CTX *ctx);
123 const EC_SCALAR *p_scalar, BN_CTX *ctx);
129 const BIGNUM *b, BN_CTX *);
130 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
133 BN_CTX *); // e.g. to Montgomery
135 BN_CTX *); // e.g. from Montgomery
202 const EC_SCALAR *p_scalar, BN_CTX *ctx);
209 const EC_SCALAR *p_scalar, BN_CTX *ctx);
[all …]
Dsimple.c109 BN_CTX *ctx) { in ec_GFp_simple_group_set_curve()
111 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve()
183 BIGNUM *b, BN_CTX *ctx) { in ec_GFp_simple_group_get_curve()
185 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve()
257 const BIGNUM *in, BN_CTX *ctx) { in set_Jprojective_coordinate_GFp()
274 const BIGNUM *y, BN_CTX *ctx) { in ec_GFp_simple_point_set_affine_coordinates()
280 BN_CTX *new_ctx = NULL; in ec_GFp_simple_point_set_affine_coordinates()
304 const EC_POINT *b, BN_CTX *ctx) { in ec_GFp_simple_add()
306 BN_CTX *); in ec_GFp_simple_add()
307 int (*field_sqr)(const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *); in ec_GFp_simple_add()
[all …]
Dec_montgomery.c94 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_group_set_curve()
95 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve()
127 const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_field_mul()
137 BN_CTX *ctx) { in ec_GFp_mont_field_sqr()
147 BN_CTX *ctx) { in ec_GFp_mont_field_encode()
157 BN_CTX *ctx) { in ec_GFp_mont_field_decode()
169 BN_CTX *ctx) { in ec_GFp_mont_point_get_affine_coordinates()
175 BN_CTX *new_ctx = NULL; in ec_GFp_mont_point_get_affine_coordinates()
Dec.c318 const BIGNUM *b, BN_CTX *ctx) { in EC_GROUP_new_curve_GFp()
407 BN_CTX *ctx = BN_CTX_new(); in ec_group_new_from_data()
563 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored) { in EC_GROUP_cmp()
598 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) { in EC_GROUP_get_order()
606 BN_CTX *ctx) { in EC_GROUP_get_cofactor()
612 BIGNUM *out_b, BN_CTX *ctx) { in EC_GROUP_get_curve_GFp()
706 BN_CTX *ctx) { in EC_POINT_is_on_curve()
715 BN_CTX *ctx) { in EC_POINT_cmp()
724 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx) { in EC_POINT_make_affine()
733 BN_CTX *ctx) { in EC_POINTs_make_affine()
[all …]
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()
168 BN_CTX *ctx) { in ec_GFp_simple_oct2point()
169 BN_CTX *new_ctx = NULL; in ec_GFp_simple_oct2point()
251 const uint8_t *buf, size_t len, BN_CTX *ctx) { in EC_POINT_oct2point()
261 size_t len, BN_CTX *ctx) { in EC_POINT_point2oct()
271 int y_bit, BN_CTX *ctx) { in EC_POINT_set_compressed_coordinates_GFp()
282 BN_CTX *new_ctx = NULL; in EC_POINT_set_compressed_coordinates_GFp()
Dwnaf.c200 const EC_POINT *p, size_t len, BN_CTX *ctx) { in compute_precomp()
230 EC_POINT *const *precomp, int digit, BN_CTX *ctx) { in lookup_precomp()
241 const EC_POINT *p, const EC_SCALAR *p_scalar, BN_CTX *ctx) { in ec_wNAF_mul()
242 BN_CTX *new_ctx = NULL; in ec_wNAF_mul()
/external/boringssl/src/include/openssl/
Dbn.h342 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void);
346 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx);
350 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx);
355 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx);
359 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx);
392 BN_CTX *ctx);
401 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
410 BN_CTX *ctx);
420 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx);
525 const BIGNUM *divisor, BN_CTX *ctx);
[all …]
Dec.h124 BN_CTX *ignored);
137 BIGNUM *cofactor, BN_CTX *ctx);
146 BN_CTX *ctx);
188 const EC_POINT *point, BN_CTX *ctx);
193 const EC_POINT *b, BN_CTX *ctx);
198 BN_CTX *ctx);
204 EC_POINT *points[], BN_CTX *ctx);
215 BN_CTX *ctx);
225 BN_CTX *ctx);
234 uint8_t *buf, size_t len, BN_CTX *ctx);
[all …]
/external/boringssl/src/crypto/fipsmodule/bn/
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()
Dprime.c346 const BIGNUM *rem, BN_CTX *ctx);
348 const BIGNUM *rem, BN_CTX *ctx);
370 BN_CTX *ctx; in BN_generate_prime_ex()
465 int checks, BN_CTX *ctx, int do_trial_division, in BN_primality_test()
480 int BN_is_prime_ex(const BIGNUM *candidate, int checks, BN_CTX *ctx, BN_GENCB *cb) { in BN_is_prime_ex()
484 int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx, in BN_is_prime_fasttest_ex()
518 BN_CTX *ctx_allocated = NULL; in BN_is_prime_fasttest_ex()
541 BN_CTX *ctx, BN_GENCB *cb) { in BN_enhanced_miller_rabin_primality_test()
761 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh()
816 const BIGNUM *rem, BN_CTX *ctx) { in probable_prime_dh_safe()
Dgcd.c186 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()
400 BN_CTX *ctx) { in BN_mod_inverse()
445 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_inverse_blinded()
479 BN_CTX *ctx) { in bn_mod_inverse_general()
606 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_prime()
618 BN_CTX *ctx, const BN_MONT_CTX *mont_p) { in bn_mod_inverse_secret_prime()
Dmontgomery.c173 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
226 BN_MONT_CTX *BN_MONT_CTX_new_for_modulus(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_for_modulus()
237 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
256 BN_CTX *ctx) { in BN_to_montgomery()
333 BN_CTX *ctx) { in BN_from_montgomery()
352 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_one_to_montgomery()
378 BN_CTX *ctx) { in bn_mod_mul_montgomery_fallback()
410 const BN_MONT_CTX *mont, BN_CTX *ctx) { in BN_mod_mul_montgomery()
Ddiv.c198 const BIGNUM *divisor, BN_CTX *ctx) { in BN_div()
397 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod()
410 BN_CTX *ctx) { in BN_mod_add()
429 BN_CTX *ctx) { in BN_mod_sub()
450 BN_CTX *ctx) { in BN_mod_mul()
481 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_sqr()
491 BN_CTX *ctx) { in BN_mod_lshift()
559 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_lshift1()
Dinternal.h333 BN_CTX *ctx, const BN_MONT_CTX *mont_p); in OPENSSL_MSVC_PRAGMA()
339 BN_CTX *ctx, const BN_MONT_CTX *mont_p); in OPENSSL_MSVC_PRAGMA()
343 int bn_jacobi(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
352 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx); in OPENSSL_MSVC_PRAGMA()
Dexponentiation.c139 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp()
216 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set()
231 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal()
257 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_div_recp()
360 BN_RECP_CTX *recp, BN_CTX *ctx) { in BN_mod_mul_reciprocal()
447 const BIGNUM *m, BN_CTX *ctx) { in mod_exp_recp()
587 BN_CTX *ctx) { in BN_mod_exp()
596 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) { in BN_mod_exp_mont()
982 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_consttime()
1301 const BIGNUM *m, BN_CTX *ctx, in BN_mod_exp_mont_word()
[all …]
Dbn_test.cc163 static void TestSum(FileTest *t, BN_CTX *ctx) { in TestSum()
265 static void TestLShift1(FileTest *t, BN_CTX *ctx) { in TestLShift1()
311 static void TestLShift(FileTest *t, BN_CTX *ctx) { in TestLShift()
328 static void TestRShift(FileTest *t, BN_CTX *ctx) { in TestRShift()
342 static void TestSquare(FileTest *t, BN_CTX *ctx) { in TestSquare()
415 static void TestProduct(FileTest *t, BN_CTX *ctx) { in TestProduct()
478 static void TestQuotient(FileTest *t, BN_CTX *ctx) { in TestQuotient()
526 static void TestModMul(FileTest *t, BN_CTX *ctx) { in TestModMul()
584 static void TestModSquare(FileTest *t, BN_CTX *ctx) { in TestModSquare()
661 static void TestModExp(FileTest *t, BN_CTX *ctx) { in TestModExp()
[all …]
/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.c126 BN_CTX *ctx = NULL; in RSA_encrypt()
221 BN_CTX *ctx) { in rsa_blinding_get()
427 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
453 BN_CTX *ctx = BN_CTX_new(); in RSA_verify_raw()
535 BN_CTX *ctx = NULL; in rsa_default_private_transform()
648 BN_CTX *ctx) { in mod_montgomery()
672 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) { in mod_exp()
840 const BIGNUM *p, const BIGNUM *sqrt2, BN_CTX *ctx, in generate_prime()
947 BN_CTX *ctx = BN_CTX_new(); in RSA_generate_key_ex()
Dinternal.h87 const BN_MONT_CTX *mont_ctx, BN_CTX *ctx);
89 BN_CTX *ctx);
/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()
595 BN_CTX *context; in _cpri__EccIsPointOnCurve()
686 BN_CTX *context; // the context for the BIGNUM values in _cpri__GenerateKeyEcc()
[all …]
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()
DMathFunctions.c222 BN_CTX *context; in _math__Mul()
290 BN_CTX *context; in _math__Div()
453 BN_CTX *context; in _math__ModExp()
/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 BN_CTX *ctx = NULL; in DSA_do_sign()
638 BN_CTX *ctx; in DSA_do_check_signature()
835 static int dsa_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv, in dsa_sign_setup()
837 BN_CTX *ctx; 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()

123