Home
last modified time | relevance | path

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

123456

/freebsd-9-stable/crypto/openssl/crypto/ec/
Dec_lcl.h103 const BIGNUM *b, BN_CTX *);
105 BN_CTX *);
109 int (*group_check_discriminant) (const EC_GROUP *, BN_CTX *);
130 const BIGNUM *z, BN_CTX *);
134 BN_CTX *);
137 BN_CTX *);
139 BIGNUM *x, BIGNUM *y, BN_CTX *);
142 BN_CTX *);
146 size_t len, BN_CTX *);
148 size_t len, BN_CTX *);
[all …]
Dec.h146 int EC_GROUP_get_order(const EC_GROUP *, BIGNUM *order, BN_CTX *);
147 int EC_GROUP_get_cofactor(const EC_GROUP *, BIGNUM *cofactor, BN_CTX *);
163 const BIGNUM *b, BN_CTX *);
165 BN_CTX *);
167 const BIGNUM *b, BN_CTX *);
169 BN_CTX *);
175 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx);
180 int EC_GROUP_check_discriminant(const EC_GROUP *, BN_CTX *);
183 int EC_GROUP_cmp(const EC_GROUP *, const EC_GROUP *, BN_CTX *);
190 const BIGNUM *b, BN_CTX *);
[all …]
Dec2_smpl.c198 const BIGNUM *b, BN_CTX *ctx) in ec_GF2m_simple_group_set_curve()
239 BIGNUM *a, BIGNUM *b, BN_CTX *ctx) in ec_GF2m_simple_group_get_curve()
278 BN_CTX *ctx) in ec_GF2m_simple_group_check_discriminant()
282 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_group_check_discriminant()
379 const BIGNUM *y, BN_CTX *ctx) in ec_GF2m_simple_point_set_affine_coordinates()
411 BN_CTX *ctx) in ec_GF2m_simple_point_get_affine_coordinates()
455 unsigned char *buf, size_t len, BN_CTX *ctx) in ec_GF2m_simple_point2oct()
458 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_point2oct()
589 BN_CTX *ctx) in ec_GF2m_simple_oct2point()
593 BN_CTX *new_ctx = NULL; in ec_GF2m_simple_oct2point()
[all …]
Dec_lib.c306 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) in EC_GROUP_get_order()
315 BN_CTX *ctx) in EC_GROUP_get_cofactor()
385 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GFp()
395 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GFp()
405 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GF2m()
416 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GF2m()
435 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) in EC_GROUP_check_discriminant()
445 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx) in EC_GROUP_cmp()
449 BN_CTX *ctx_new = NULL; in EC_GROUP_cmp()
772 BN_CTX *ctx) in EC_POINT_set_Jprojective_coordinates_GFp()
[all …]
Decp_smpl.c170 const BIGNUM *b, BN_CTX *ctx) in ec_GFp_simple_group_set_curve()
173 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_set_curve()
229 BIGNUM *b, BN_CTX *ctx) in ec_GFp_simple_group_get_curve()
232 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_get_curve()
279 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) in ec_GFp_simple_group_check_discriminant()
284 BN_CTX *new_ctx = NULL; in ec_GFp_simple_group_check_discriminant()
404 BN_CTX *ctx) in ec_GFp_simple_set_Jprojective_coordinates_GFp()
406 BN_CTX *new_ctx = NULL; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
463 BIGNUM *z, BN_CTX *ctx) in ec_GFp_simple_get_Jprojective_coordinates_GFp()
465 BN_CTX *new_ctx = NULL; in ec_GFp_simple_get_Jprojective_coordinates_GFp()
[all …]
Decp_nist.c128 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) in ec_GFp_nist_group_set_curve()
131 BN_CTX *new_ctx = NULL; in ec_GFp_nist_group_set_curve()
186 const BIGNUM *b, BN_CTX *ctx) in ec_GFp_nist_field_mul()
189 BN_CTX *ctx_new = NULL; in ec_GFp_nist_field_mul()
212 BN_CTX *ctx) in ec_GFp_nist_field_sqr()
215 BN_CTX *ctx_new = NULL; in ec_GFp_nist_field_sqr()
Decp_mont.c188 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) in ec_GFp_mont_group_set_curve()
190 BN_CTX *new_ctx = NULL; in ec_GFp_mont_group_set_curve()
246 const BIGNUM *b, BN_CTX *ctx) in ec_GFp_mont_field_mul()
257 BN_CTX *ctx) in ec_GFp_mont_field_sqr()
268 const BIGNUM *a, BN_CTX *ctx) in ec_GFp_mont_field_encode()
279 const BIGNUM *a, BN_CTX *ctx) in ec_GFp_mont_field_decode()
290 BN_CTX *ctx) in ec_GFp_mont_field_set_to_one()
Dec_print.c62 BIGNUM *ret, BN_CTX *ctx) in EC_POINT_point2bn()
87 const BIGNUM *bn, EC_POINT *point, BN_CTX *ctx) in EC_POINT_bn2point()
128 point_conversion_form_t form, BN_CTX *ctx) in EC_POINT_point2hex()
166 const char *buf, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point()
/freebsd-9-stable/crypto/openssl/crypto/bn/
Dbn.h294 typedef struct bignum_ctx BN_CTX;
414 BN_CTX *BN_CTX_new(void);
416 void BN_CTX_init(BN_CTX *c);
418 void BN_CTX_free(BN_CTX *c);
419 void BN_CTX_start(BN_CTX *ctx);
420 BIGNUM *BN_CTX_get(BN_CTX *ctx);
421 void BN_CTX_end(BN_CTX *ctx);
441 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
442 int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
455 BN_CTX *ctx);
[all …]
Dbn_mod.c120 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod()
143 BN_CTX *ctx) in BN_mod_add()
165 BN_CTX *ctx) in BN_mod_sub()
188 BN_CTX *ctx) in BN_mod_mul()
216 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_sqr()
224 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_lshift1()
247 BN_CTX *ctx) in BN_mod_lshift()
Dbntest.c99 int test_lshift(BIO *bp, BN_CTX *ctx, BIGNUM *a_);
101 int test_rshift(BIO *bp, BN_CTX *ctx);
102 int test_div(BIO *bp, BN_CTX *ctx);
104 int test_div_recp(BIO *bp, BN_CTX *ctx);
106 int test_sqr(BIO *bp, BN_CTX *ctx);
107 int test_mont(BIO *bp, BN_CTX *ctx);
108 int test_mod(BIO *bp, BN_CTX *ctx);
109 int test_mod_mul(BIO *bp, BN_CTX *ctx);
110 int test_mod_exp(BIO *bp, BN_CTX *ctx);
111 int test_mod_exp_mont_consttime(BIO *bp, BN_CTX *ctx);
[all …]
Dbn_prime.c132 const BIGNUM *a1_odd, int k, BN_CTX *ctx,
137 BN_CTX *ctx);
139 const BIGNUM *rem, BN_CTX *ctx);
169 BN_CTX *ctx; in BN_generate_prime_ex()
241 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_ex()
247 int BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_fasttest_ex()
252 BN_CTX *ctx = NULL; in BN_is_prime_fasttest_ex()
352 const BIGNUM *a1_odd, int k, BN_CTX *ctx, in witness()
412 BN_CTX *ctx) in probable_prime_dh()
456 const BIGNUM *rem, BN_CTX *ctx) in probable_prime_dh_safe()
Dbn_ctx.c153 static void ctxdbg(BN_CTX *ctx) in ctxdbg()
198 void BN_CTX_init(BN_CTX *ctx) in BN_CTX_init()
214 BN_CTX *BN_CTX_new(void) in BN_CTX_new()
216 BN_CTX *ret = OPENSSL_malloc(sizeof(BN_CTX)); in BN_CTX_new()
230 void BN_CTX_free(BN_CTX *ctx) in BN_CTX_free()
254 void BN_CTX_start(BN_CTX *ctx) in BN_CTX_start()
268 void BN_CTX_end(BN_CTX *ctx) in BN_CTX_end()
285 BIGNUM *BN_CTX_get(BN_CTX *ctx) in BN_CTX_get()
Dbn_blind.c129 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
187 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_update()
218 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert()
223 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert_ex()
251 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_invert()
257 BN_CTX *ctx) in BN_BLINDING_invert_ex()
298 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param()
303 BN_CTX *ctx, in BN_BLINDING_create_param()
/freebsd-9-stable/crypto/openssl/doc/crypto/
DBN_CTX_new.pod5 BN_CTX_new, BN_CTX_init, BN_CTX_free - allocate and free BN_CTX structures
11 BN_CTX *BN_CTX_new(void);
13 void BN_CTX_init(BN_CTX *c);
15 void BN_CTX_free(BN_CTX *c);
19 A B<BN_CTX> is a structure that holds B<BIGNUM> temporary variables used by
22 calls, the B<BN_CTX> structure is used.
24 BN_CTX_new() allocates and initializes a B<BN_CTX>
26 B<BN_CTX>.
28 BN_CTX_free() frees the components of the B<BN_CTX>, and if it was
30 If L<BN_CTX_start(3)|BN_CTX_start(3)> has been used on the B<BN_CTX>,
[all …]
Dbn.pod17 BN_CTX *BN_CTX_new(void);
18 void BN_CTX_init(BN_CTX *c);
19 void BN_CTX_free(BN_CTX *c);
35 int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx);
36 int BN_sqr(BIGNUM *r, BIGNUM *a, BN_CTX *ctx);
38 BN_CTX *ctx);
39 int BN_mod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
40 int BN_nnmod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
42 BN_CTX *ctx);
44 BN_CTX *ctx);
[all …]
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);
26 int BN_nnmod(BIGNUM *r, 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);
39 int BN_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p, BN_CTX *ctx);
[all …]
DBN_BLINDING_new.pod18 int BN_BLINDING_update(BN_BLINDING *b,BN_CTX *ctx);
19 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
20 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
22 BN_CTX *ctx);
24 BN_CTX *ctx);
30 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,
32 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx),
/freebsd-9-stable/lib/libmp/
Dmpasbn.c99 BN_CTX *);
106 static void _mult(const char *, const MINT *, const MINT *, MINT *, BN_CTX *);
107 static void _sdiv(const char *, const MINT *, short, MINT *, short *, BN_CTX *);
146 BN_CTX *c; in mp_gcd()
228 BN_CTX *c) in _mdiv()
244 BN_CTX *c; in mp_mdiv()
362 BN_CTX *c; in mp_msqrt()
480 _mult(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp, BN_CTX *c) in _mult()
493 BN_CTX *c; in mp_mult()
510 BN_CTX *c; in mp_pow()
[all …]
/freebsd-9-stable/crypto/openssl/engines/
De_atalla.c96 const BIGNUM *m, BN_CTX *ctx);
101 BN_CTX *ctx);
104 const BIGNUM *m, BN_CTX *ctx,
112 BN_CTX *ctx, BN_MONT_CTX *in_mont);
114 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
123 const BIGNUM *m, BN_CTX *ctx,
459 const BIGNUM *m, BN_CTX *ctx) in atalla_mod_exp()
528 BN_CTX *ctx) in atalla_rsa_mod_exp()
559 BN_CTX *ctx, BN_MONT_CTX *in_mont) in atalla_dsa_mod_exp()
581 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, in atalla_mod_exp_dsa()
[all …]
De_aep.c114 const BIGNUM *m, BN_CTX *ctx);
119 BN_CTX *ctx);
125 BN_CTX *ctx);
131 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
138 BN_CTX *ctx, BN_MONT_CTX *in_mont);
141 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
149 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
600 const BIGNUM *m, BN_CTX *ctx) in aep_mod_exp()
655 BN_CTX *ctx) in aep_mod_exp_crt()
770 static int aep_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) in aep_rsa_mod_exp()
[all …]
De_nuron.c190 const BIGNUM *m, BN_CTX *ctx) in nuron_mod_exp()
201 BN_CTX *ctx) in nuron_rsa_mod_exp()
219 BN_CTX *ctx, BN_MONT_CTX *in_mont) in nuron_dsa_mod_exp()
241 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, in nuron_mod_exp_dsa()
251 const BIGNUM *m, BN_CTX *ctx, in nuron_mod_exp_mont()
262 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in nuron_mod_exp_dh()
/freebsd-9-stable/crypto/openssl/demos/engines/ibmca/
Dhw_ibmca.c94 const BIGNUM *m, BN_CTX *ctx);
99 BN_CTX *ctx);
108 const BIGNUM *m, BN_CTX *ctx,
115 BN_CTX *ctx, BN_MONT_CTX *in_mont);
117 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx,
126 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
465 const BIGNUM *m, BN_CTX *ctx) in ibmca_mod_exp()
584 BN_CTX *ctx; in ibmca_rsa_mod_exp()
611 BN_CTX *ctx) in ibmca_mod_exp_crt()
809 BN_CTX *ctx, BN_MONT_CTX *in_mont) in ibmca_dsa_mod_exp()
[all …]
/freebsd-9-stable/crypto/openssl/fips/dsa/
Dfips_dsa_ossl.c76 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
83 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx,
86 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
128 BN_CTX *ctx = NULL; in dsa_do_sign()
202 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, in dsa_sign_setup()
205 BN_CTX *ctx; in dsa_sign_setup()
303 BN_CTX *ctx; in dsa_do_verify()
436 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, in dsa_mod_exp()
443 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in dsa_bn_mod_exp()
/freebsd-9-stable/crypto/openssl/demos/engines/cluster_labs/
Dhw_cluster_labs.c90 BN_CTX *ctx, BN_MONT_CTX *m_ctx);
115 BIGNUM *m, BN_CTX *ctx,
119 BN_CTX *ctx, BN_MONT_CTX *m_ctx);
127 BN_CTX *ctx, BN_MONT_CTX *m_ctx);
439 const BIGNUM *m, BN_CTX *ctx) in cluster_labs_mod_exp()
458 BN_CTX *ctx) in cluster_labs_mod_exp_crt()
527 BIGNUM *m, BN_CTX *ctx, in cluster_labs_dsa_mod_exp()
553 BN_CTX *ctx, BN_MONT_CTX *m_ctx) in cluster_labs_mod_exp_dsa()
561 BN_CTX *ctx, BN_MONT_CTX *m_ctx) in cluster_labs_mod_exp_mont()
569 BN_CTX *ctx, BN_MONT_CTX *m_ctx) in cluster_labs_mod_exp_dh()

123456