/freebsd/crypto/openssl/crypto/ec/ |
H A D | ec_local.h | 58 const BIGNUM *b, BN_CTX *); 60 BN_CTX *); 65 int (*group_check_discriminant) (const EC_GROUP *, BN_CTX *); 85 BN_CTX *); 87 BIGNUM *x, BIGNUM *y, BN_CTX *); 90 BN_CTX *); 94 size_t len, BN_CTX *); 96 size_t len, BN_CTX *); 99 const EC_POINT *b, BN_CTX *); 100 int (*dbl) (const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); [all …]
|
H A D | ec2_smpl.c | 103 const BIGNUM *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_group_set_curve() 142 BIGNUM *a, BIGNUM *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_group_get_curve() 181 BN_CTX *ctx) in ossl_ec_GF2m_simple_group_check_discriminant() 186 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_group_check_discriminant() 292 BN_CTX *ctx) in ossl_ec_GF2m_simple_point_set_affine_coordinates() 323 BN_CTX *ctx) in ossl_ec_GF2m_simple_point_get_affine_coordinates() 357 const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_add() 362 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_add() 478 const EC_POINT *a, BN_CTX *ctx) in ossl_ec_GF2m_simple_dbl() 484 BN_CTX *ctx) in ossl_ec_GF2m_simple_invert() [all …]
|
H A D | ec_lib.c | 318 BN_CTX *ctx = NULL; in ec_guess_cofactor() 444 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) in EC_GROUP_get_order() 465 BN_CTX *ctx) in EC_GROUP_get_cofactor() 557 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve() 567 BN_CTX *ctx) in EC_GROUP_get_curve() 578 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GFp() 584 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GFp() 591 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GF2m() 597 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GF2m() 613 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) in EC_GROUP_check_discriminant() [all …]
|
H A D | ecp_mont.c | 144 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 D | ecp_nist.c | 94 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 D | ec_oct.c | 25 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() 110 const unsigned char *buf, size_t len, BN_CTX *ctx) in EC_POINT_oct2point() 139 unsigned char **pbuf, BN_CTX *ctx) in EC_POINT_point2buf()
|
H A D | ecp_smpl.c | 143 const BIGNUM *b, BN_CTX *ctx) in ossl_ec_GFp_simple_group_set_curve() 146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_set_curve() 201 BIGNUM *a, BIGNUM *b, BN_CTX *ctx) in ossl_ec_GFp_simple_group_get_curve() 204 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_get_curve() 251 BN_CTX *ctx) in ossl_ec_GFp_simple_group_check_discriminant() 256 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_group_check_discriminant() 380 BN_CTX *ctx) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() 382 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() 438 BIGNUM *z, BN_CTX *ctx) in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp() 440 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp() [all …]
|
H A D | ec_check.c | 20 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()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | bn.h | 209 BN_CTX *BN_CTX_new_ex(OSSL_LIB_CTX *ctx); 210 BN_CTX *BN_CTX_new(void); 211 BN_CTX *BN_CTX_secure_new_ex(OSSL_LIB_CTX *ctx); 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); 218 unsigned int strength, BN_CTX *ctx); 221 unsigned int strength, BN_CTX *ctx); [all …]
|
H A D | ec.h | 239 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx); 260 BN_CTX *ctx); 314 const BIGNUM *b, BN_CTX *ctx); 327 BN_CTX *ctx); 343 BN_CTX *ctx); 357 BN_CTX *ctx); 373 BN_CTX *ctx); 387 BN_CTX *ctx); 402 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx); 409 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx); [all …]
|
H A D | dsa.h | 134 OSSL_DEPRECATEDIN_3_0 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, 234 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **); 236 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)); 243 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *); 246 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, 250 BN_CTX *, BN_MONT_CTX *); 253 const BIGNUM *, BN_CTX *, BN_MONT_CTX *));
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | bn.h | 75 BN_MONT_CTX *mont, BN_CTX *ctx); 77 const BIGNUM *m, BN_CTX *ctx, 80 BN_CTX *ctx); 82 BN_CTX *ctx); 87 int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 88 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); 92 const BIGNUM *d, BN_CTX *ctx); 96 unsigned int strength, BN_CTX *ctx); 100 size_t message_len, BN_CTX *ctx); 107 int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx, [all …]
|
H A D | ec.h | 51 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);
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | BN_CTX_new.pod | 6 - 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); 22 A B<BN_CTX> is a structure that holds B<BIGNUM> temporary variables used by 25 calls, the B<BN_CTX> structure is used. 27 BN_CTX_new_ex() allocates and initializes a B<BN_CTX> structure for the given 32 BN_CTX_secure_new_ex() allocates and initializes a B<BN_CTX> structure [all …]
|
H A D | BN_add.pod | 17 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 19 int BN_sqr(BIGNUM *r, const 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, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); 39 BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); [all …]
|
H A D | EC_POINT_new.pod | 44 BN_CTX *ctx); 46 BIGNUM *x, BIGNUM *y, BN_CTX *ctx); 49 BN_CTX *ctx); 52 unsigned char *buf, size_t len, BN_CTX *ctx); 55 unsigned char **pbuf, BN_CTX *ctx); 57 const unsigned char *buf, size_t len, BN_CTX *ctx); 59 point_conversion_form_t form, BN_CTX *ctx); 61 EC_POINT *p, BN_CTX *ctx); 71 const BIGNUM *z, BN_CTX *ctx); 75 BN_CTX *ctx); [all …]
|
H A D | EC_POINT_add.pod | 12 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);
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_ctx.c | 82 static void ctxdbg(BIO *channel, const char *text, BN_CTX *ctx) in ctxdbg() 110 OSSL_TRACE_BEGIN(BN_CTX) { \ 112 } OSSL_TRACE_END(BN_CTX) 118 BN_CTX *BN_CTX_new_ex(OSSL_LIB_CTX *ctx) in BN_CTX_new_ex() 120 BN_CTX *ret; in BN_CTX_new_ex() 134 BN_CTX *BN_CTX_new(void) in BN_CTX_new() 140 BN_CTX *BN_CTX_secure_new_ex(OSSL_LIB_CTX *ctx) in BN_CTX_secure_new_ex() 142 BN_CTX *ret = BN_CTX_new_ex(ctx); in BN_CTX_secure_new_ex() 150 BN_CTX *BN_CTX_secure_new(void) in BN_CTX_secure_new() 156 void BN_CTX_free(BN_CTX *ctx) in BN_CTX_free() [all …]
|
H A D | bn_prime.c | 23 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() 216 BN_CTX *ctx = BN_CTX_new(); in BN_generate_prime_ex() 230 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, in BN_is_prime_ex() 236 int BN_is_prime_fasttest_ex(const BIGNUM *w, int checks, BN_CTX *ctx, in BN_is_prime_fasttest_ex() 244 int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_prime() 255 int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb) in BN_check_prime() 266 static int bn_is_prime_int(const BIGNUM *w, int checks, BN_CTX *ctx, in bn_is_prime_int() [all …]
|
H A D | bn_blind.c | 26 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 93 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_update() 129 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert() 134 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert_ex() 162 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_invert() 168 BN_CTX *ctx) in BN_BLINDING_invert_ex() 235 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param() 240 BN_CTX *ctx, in BN_BLINDING_create_param()
|
H A D | bn_rand.c | 24 unsigned int strength, BN_CTX *ctx) in bnrand() 103 unsigned int strength, BN_CTX *ctx) in BN_rand_ex() 120 unsigned int strength, BN_CTX *ctx) in BN_priv_rand_ex() 134 unsigned int strength, BN_CTX *ctx) in bnrand_range() 206 BN_CTX *ctx) in BN_rand_range_ex() 219 BN_CTX *ctx) in BN_priv_rand_range_ex() 244 unsigned int strength, BN_CTX *ctx) 299 size_t message_len, BN_CTX *ctx) in BN_generate_dsa_nonce() 401 size_t message_len, BN_CTX *ctx)
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_local.h | 114 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); 168 int ossl_rsa_get_lcm(BN_CTX *ctx, const BIGNUM *p, const BIGNUM *q, 173 int ossl_rsa_check_private_exponent(const RSA *rsa, int nbits, BN_CTX *ctx); 174 int ossl_rsa_check_prime_factor(BIGNUM *p, BIGNUM *e, int nbits, BN_CTX *ctx); 175 int ossl_rsa_check_prime_factor_range(const BIGNUM *p, int nbits, BN_CTX *ctx); 176 int ossl_rsa_check_crt_components(const RSA *rsa, BN_CTX *ctx); 178 int ossl_rsa_sp800_56b_pairwise_test(RSA *rsa, BN_CTX *ctx); 187 const BIGNUM *e, BN_CTX *ctx); 189 int nbits, const BIGNUM *e, BN_CTX *ctx,
|
/freebsd/lib/libmp/ |
H A D | mpasbn.c | 99 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() 232 BN_CTX *c) in _mdiv() 252 BN_CTX *c; in mp_mdiv() 370 BN_CTX *c; in mp_msqrt() 490 _mult(const char *msg, const MINT *mp1, const MINT *mp2, MINT *rmp, BN_CTX *c) in _mult() 505 BN_CTX *c; in mp_mult() 522 BN_CTX *c; in mp_pow() [all …]
|
/freebsd/crypto/openssl/crypto/dsa/ |
H A D | dsa_meth.c | 121 (DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup() 127 int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup() argument 148 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *) in DSA_meth_get_mod_exp() 155 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_set_mod_exp() argument 163 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp() 171 const BIGNUM *, BN_CTX *, BN_MONT_CTX *)) in DSA_meth_set_bn_mod_exp() argument
|
H A D | dsa_ossl.c | 28 static int dsa_sign_setup_no_digest(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 30 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 37 BN_CTX *ctx); 77 BN_CTX *ctx = NULL; in ossl_dsa_do_sign_int() 203 static int dsa_sign_setup_no_digest(DSA *dsa, BN_CTX *ctx_in, in dsa_sign_setup_no_digest() 209 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, in dsa_sign_setup() 213 BN_CTX *ctx = NULL; in dsa_sign_setup() 337 BN_CTX *ctx; in dsa_do_verify() 463 BN_CTX *ctx) in dsa_mod_inverse_fermat()
|