Home
last modified time | relevance | path

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

123456

/openssl/crypto/ec/
H A Dec_local.h60 BN_CTX *);
108 BN_CTX *);
112 BN_CTX *);
137 BN_CTX *);
161 BN_CTX *);
164 BN_CTX *);
258 BN_CTX *);
407 BN_CTX *);
498 BN_CTX *);
531 BN_CTX *);
[all …]
H A Dec_lib.c320 BN_CTX *ctx = NULL; in ec_guess_cofactor()
467 BN_CTX *ctx) in EC_GROUP_get_cofactor()
567 BN_CTX *ctx) in EC_GROUP_get_curve()
627 BN_CTX *ctx_new = NULL; in EC_GROUP_cmp()
956 BN_CTX *ctx) in EC_POINT_dbl()
1017 BN_CTX *ctx) in EC_POINT_cmp()
1077 BN_CTX *new_ctx = NULL; in EC_POINTs_mul()
1123 BN_CTX *new_ctx = NULL; in EC_POINT_mul()
1242 BN_CTX *new_ctx = NULL; in ec_field_inverse_mod_ord()
1554 BN_CTX *bnctx = NULL; in EC_GROUP_new_from_params()
[all …]
H A Decp_mont.c144 BN_CTX *ctx) in ossl_ec_GFp_mont_group_set_curve()
146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_group_set_curve()
197 const BIGNUM *b, BN_CTX *ctx) in ossl_ec_GFp_mont_field_mul()
208 BN_CTX *ctx) in ossl_ec_GFp_mont_field_sqr()
224 BN_CTX *ctx) in ossl_ec_GFp_mont_field_inv()
227 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_field_inv()
268 const BIGNUM *a, BN_CTX *ctx) in ossl_ec_GFp_mont_field_encode()
279 const BIGNUM *a, BN_CTX *ctx) in ossl_ec_GFp_mont_field_decode()
290 BN_CTX *ctx) in ossl_ec_GFp_mont_field_set_to_one()
H A Dec2_smpl.c186 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_group_check_discriminant()
362 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_add()
484 BN_CTX *ctx) in ossl_ec_GF2m_simple_invert()
509 BN_CTX *ctx) in ossl_ec_GF2m_simple_is_on_curve()
514 const BIGNUM *, BN_CTX *); in ossl_ec_GF2m_simple_is_on_curve()
517 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_is_on_curve()
587 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_cmp()
633 BN_CTX *ctx) in ossl_ec_GF2m_simple_make_affine()
638 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_make_affine()
724 EC_POINT *p, BN_CTX *ctx) in ec_GF2m_simple_ladder_pre()
[all …]
H A Decp_nist.c94 BN_CTX *ctx) in ossl_ec_GFp_nist_group_set_curve()
97 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_nist_group_set_curve()
129 const BIGNUM *b, BN_CTX *ctx) in ossl_ec_GFp_nist_field_mul()
132 BN_CTX *ctx_new = NULL; in ossl_ec_GFp_nist_field_mul()
154 BN_CTX *ctx) in ossl_ec_GFp_nist_field_sqr()
157 BN_CTX *ctx_new = NULL; in ossl_ec_GFp_nist_field_sqr()
H A Dec_oct.c25 const BIGNUM *x, int y_bit, BN_CTX *ctx) in EC_POINT_set_compressed_coordinates()
58 int y_bit, BN_CTX *ctx) in EC_POINT_set_compressed_coordinates_GFp()
66 int y_bit, BN_CTX *ctx) in EC_POINT_set_compressed_coordinates_GF2m()
75 size_t len, BN_CTX *ctx) in EC_POINT_point2oct()
106 const unsigned char *buf, size_t len, BN_CTX *ctx) in EC_POINT_oct2point()
135 unsigned char **pbuf, BN_CTX *ctx) in EC_POINT_point2buf()
H A Decp_smpl.c146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_set_curve()
204 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_get_curve()
256 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_check_discriminant()
382 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
440 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp()
506 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_point_get_affine_coordinates()
620 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_add()
805 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_dbl()
963 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_is_on_curve()
1072 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_cmp()
[all …]
H A Dec_check.c20 BN_CTX *ctx) in EC_GROUP_check_named_curve()
23 BN_CTX *new_ctx = NULL; in EC_GROUP_check_named_curve()
46 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx) in EC_GROUP_check()
57 BN_CTX *new_ctx = NULL; in EC_GROUP_check()
/openssl/include/openssl/
H A Dbn.h210 BN_CTX *BN_CTX_new(void);
212 BN_CTX *BN_CTX_secure_new(void);
213 void BN_CTX_free(BN_CTX *c);
214 void BN_CTX_start(BN_CTX *ctx);
215 BIGNUM *BN_CTX_get(BN_CTX *ctx);
216 void BN_CTX_end(BN_CTX *ctx);
276 BN_CTX *ctx);
280 BN_CTX *ctx);
284 BN_CTX *ctx);
288 BN_CTX *ctx);
[all …]
H A Dec.h263 BN_CTX *ctx);
317 const BIGNUM *b, BN_CTX *ctx);
330 BN_CTX *ctx);
553 BN_CTX *ctx);
616 BN_CTX *ctx);
642 BN_CTX *ctx);
801 EC_POINT *, BN_CTX *);
816 const EC_POINT *b, BN_CTX *ctx);
826 BN_CTX *ctx);
850 BN_CTX *ctx);
[all …]
H A Ddsa.h139 OSSL_DEPRECATEDIN_3_0 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in,
239 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **);
241 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **));
248 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *);
251 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,
255 BN_CTX *, BN_MONT_CTX *);
258 const BIGNUM *, BN_CTX *, BN_MONT_CTX *));
/openssl/include/crypto/
H A Dbn.h75 BN_MONT_CTX *mont, BN_CTX *ctx);
77 BN_CTX *ctx);
79 BN_CTX *ctx);
85 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
89 const BIGNUM *d, BN_CTX *ctx);
93 unsigned int strength, BN_CTX *ctx);
97 size_t message_len, BN_CTX *ctx);
106 int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx,
115 const BIGNUM *e, BN_CTX *ctx,
123 OSSL_LIB_CTX *ossl_bn_get_libctx(BN_CTX *ctx);
[all …]
H A Dec.h51 const BIGNUM *x, BN_CTX *ctx);
62 int ossl_ec_key_public_check(const EC_KEY *eckey, BN_CTX *ctx);
63 int ossl_ec_key_public_check_quick(const EC_KEY *eckey, BN_CTX *ctx);
65 int ossl_ec_key_pairwise_check(const EC_KEY *eckey, BN_CTX *ctx);
74 BN_CTX *bnctx, unsigned char **genbuf);
/openssl/doc/man3/
H A DBN_CTX_new.pod6 - allocate and free BN_CTX structures
12 BN_CTX *BN_CTX_new_ex(OSSL_LIB_CTX *ctx);
13 BN_CTX *BN_CTX_new(void);
15 BN_CTX *BN_CTX_secure_new_ex(OSSL_LIB_CTX *ctx);
16 BN_CTX *BN_CTX_secure_new(void);
18 void BN_CTX_free(BN_CTX *c);
25 calls, the B<BN_CTX> structure is used.
32 BN_CTX_secure_new_ex() allocates and initializes a B<BN_CTX> structure
41 B<BN_CTX>, in most cases BN_CTX_end() must be called before the B<BN_CTX> may
59 void BN_CTX_init(BN_CTX *c);
[all …]
H A DBN_add.pod17 int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
19 int BN_sqr(BIGNUM *r, BIGNUM *a, BN_CTX *ctx);
22 BN_CTX *ctx);
24 int BN_mod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
29 BN_CTX *ctx);
32 BN_CTX *ctx);
35 BN_CTX *ctx);
37 int BN_mod_sqr(BIGNUM *r, BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
41 int BN_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p, BN_CTX *ctx);
44 const BIGNUM *m, BN_CTX *ctx);
[all …]
H A DEC_POINT_new.pod44 BN_CTX *ctx);
49 BN_CTX *ctx);
55 unsigned char **pbuf, BN_CTX *ctx);
61 EC_POINT *p, BN_CTX *ctx);
75 BN_CTX *ctx);
78 BN_CTX *ctx);
85 BN_CTX *ctx);
88 BN_CTX *ctx);
95 BN_CTX *ctx);
98 BN_CTX *ctx);
[all …]
H A DEC_POINT_add.pod12 const EC_POINT *b, BN_CTX *ctx);
13 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx);
14 int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx);
16 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx);
17 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx);
19 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);
25 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);
27 EC_POINT *points[], BN_CTX *ctx);
29 const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx);
30 int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
H A DBN_mod_mul_montgomery.pod16 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *m, BN_CTX *ctx);
20 BN_MONT_CTX *mont, BN_CTX *ctx);
23 BN_CTX *ctx);
26 BN_CTX *ctx);
54 For all functions, I<ctx> is a previously allocated B<BN_CTX> used for
/openssl/crypto/bn/
H A Dbn_ctx.c110 OSSL_TRACE_BEGIN(BN_CTX) { \
112 } OSSL_TRACE_END(BN_CTX)
120 BN_CTX *ret; in BN_CTX_new_ex()
132 BN_CTX *BN_CTX_new(void) in BN_CTX_new()
148 BN_CTX *BN_CTX_secure_new(void) in BN_CTX_secure_new()
154 void BN_CTX_free(BN_CTX *ctx) in BN_CTX_free()
159 OSSL_TRACE_BEGIN(BN_CTX) { in BN_CTX_free()
172 } OSSL_TRACE_END(BN_CTX); in BN_CTX_free()
179 void BN_CTX_start(BN_CTX *ctx) in BN_CTX_start()
193 void BN_CTX_end(BN_CTX *ctx) in BN_CTX_end()
[all …]
H A Dbn_prime.c23 BN_CTX *ctx);
26 BN_CTX *ctx);
27 static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx,
125 BN_CTX *ctx) in BN_generate_prime_ex2()
214 BN_CTX *ctx = BN_CTX_new(); in BN_generate_prime_ex()
228 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_ex()
242 int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_prime()
264 int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb) in BN_check_prime()
280 BN_CTX *ctxlocal = NULL; in bn_is_prime_int()
488 BN_CTX *ctx) in probable_prime()
[all …]
H A Dbn_rand.c24 unsigned int strength, BN_CTX *ctx) in bnrand()
101 unsigned int strength, BN_CTX *ctx) in BN_rand_ex()
118 unsigned int strength, BN_CTX *ctx) in BN_priv_rand_ex()
132 unsigned int strength, BN_CTX *ctx) in bnrand_range()
204 BN_CTX *ctx) in BN_rand_range_ex()
217 BN_CTX *ctx) in BN_priv_rand_range_ex()
242 unsigned int strength, BN_CTX *ctx) in ossl_bn_priv_rand_range_fixed_top()
297 size_t message_len, BN_CTX *ctx) in ossl_bn_gen_dsa_nonce_fixed_top()
399 size_t message_len, BN_CTX *ctx) in BN_generate_dsa_nonce()
H A Dbn_blind.c26 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
91 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_update()
127 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert()
132 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert_ex()
160 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_invert()
166 BN_CTX *ctx) in BN_BLINDING_invert_ex()
233 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param()
238 BN_CTX *ctx, in BN_BLINDING_create_param()
/openssl/crypto/rsa/
H A Drsa_local.h114 int (*rsa_mod_exp) (BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
117 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
172 int ossl_rsa_get_lcm(BN_CTX *ctx, const BIGNUM *p, const BIGNUM *q,
177 int ossl_rsa_check_private_exponent(const RSA *rsa, int nbits, BN_CTX *ctx);
178 int ossl_rsa_check_prime_factor(BIGNUM *p, BIGNUM *e, int nbits, BN_CTX *ctx);
179 int ossl_rsa_check_prime_factor_range(const BIGNUM *p, int nbits, BN_CTX *ctx);
180 int ossl_rsa_check_crt_components(const RSA *rsa, BN_CTX *ctx);
182 int ossl_rsa_sp800_56b_pairwise_test(RSA *rsa, BN_CTX *ctx);
191 const BIGNUM *e, BN_CTX *ctx);
193 int nbits, const BIGNUM *e, BN_CTX *ctx,
/openssl/crypto/dsa/
H A Ddsa_meth.c117 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup()
123 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup() argument
144 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *) in DSA_meth_get_mod_exp()
151 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_set_mod_exp() argument
159 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp()
167 const BIGNUM *, BN_CTX *, BN_MONT_CTX *)) in DSA_meth_set_bn_mod_exp() argument
H A Ddsa_local.h49 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
55 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
58 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);

Completed in 92 milliseconds

123456