| /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 | ec_lib.c | 324 BN_CTX *ctx = NULL; in ec_guess_cofactor() 450 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx) in EC_GROUP_get_order() 471 BN_CTX *ctx) in EC_GROUP_get_cofactor() 560 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve() 570 BN_CTX *ctx) in EC_GROUP_get_curve() 581 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GFp() 587 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GFp() 594 const BIGNUM *b, BN_CTX *ctx) in EC_GROUP_set_curve_GF2m() 600 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve_GF2m() 616 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) in EC_GROUP_check_discriminant() [all …]
|
| H A D | ec2_smpl.c | 101 const BIGNUM *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_group_set_curve() 140 BIGNUM *a, BIGNUM *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_group_get_curve() 179 BN_CTX *ctx) in ossl_ec_GF2m_simple_group_check_discriminant() 184 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_group_check_discriminant() 290 BN_CTX *ctx) in ossl_ec_GF2m_simple_point_set_affine_coordinates() 321 BN_CTX *ctx) in ossl_ec_GF2m_simple_point_get_affine_coordinates() 355 const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx) in ossl_ec_GF2m_simple_add() 360 BN_CTX *new_ctx = NULL; in ossl_ec_GF2m_simple_add() 476 const EC_POINT *a, BN_CTX *ctx) in ossl_ec_GF2m_simple_dbl() 482 BN_CTX *ctx) in ossl_ec_GF2m_simple_invert() [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() 437 BIGNUM *z, BN_CTX *ctx) in ossl_ec_GFp_simple_get_Jprojective_coordinates_GFp() 439 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 | 208 BN_CTX *BN_CTX_new_ex(OSSL_LIB_CTX *ctx); 209 BN_CTX *BN_CTX_new(void); 210 BN_CTX *BN_CTX_secure_new_ex(OSSL_LIB_CTX *ctx); 211 BN_CTX *BN_CTX_secure_new(void); 212 void BN_CTX_free(BN_CTX *c); 213 void BN_CTX_start(BN_CTX *ctx); 214 BIGNUM *BN_CTX_get(BN_CTX *ctx); 215 void BN_CTX_end(BN_CTX *ctx); 217 unsigned int strength, BN_CTX *ctx); 220 unsigned int strength, BN_CTX *ctx); [all …]
|
| H A D | ec.h | 242 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx); 263 BN_CTX *ctx); 317 const BIGNUM *b, BN_CTX *ctx); 330 BN_CTX *ctx); 346 BN_CTX *ctx); 360 BN_CTX *ctx); 376 BN_CTX *ctx); 390 BN_CTX *ctx); 405 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx); 412 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx); [all …]
|
| H A D | dsa.h | 138 OSSL_DEPRECATEDIN_3_0 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, 236 OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))(DSA *, BN_CTX *, BIGNU… 238 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 *, 249 BN_CTX *, BN_MONT_CTX *); 252 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);
|
| H A D | BN_mod_mul_montgomery.pod | 16 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
|
| /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) \ 114 OSSL_TRACE_END(BN_CTX) 122 BN_CTX *BN_CTX_new_ex(OSSL_LIB_CTX *ctx) in BN_CTX_new_ex() 124 BN_CTX *ret; in BN_CTX_new_ex() 136 BN_CTX *BN_CTX_new(void) in BN_CTX_new() 142 BN_CTX *BN_CTX_secure_new_ex(OSSL_LIB_CTX *ctx) in BN_CTX_secure_new_ex() 144 BN_CTX *ret = BN_CTX_new_ex(ctx); in BN_CTX_secure_new_ex() 152 BN_CTX *BN_CTX_secure_new(void) in BN_CTX_secure_new() 158 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() 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() 234 int BN_is_prime_fasttest_ex(const BIGNUM *w, int checks, BN_CTX *ctx, in BN_is_prime_fasttest_ex() 242 int ossl_bn_check_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_prime() 258 int ossl_bn_check_generated_prime(const BIGNUM *w, int checks, BN_CTX *ctx, in ossl_bn_check_generated_prime() 264 int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb) in BN_check_prime() [all …]
|
| H A D | bn_rand.c | 26 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() 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() 296 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 D | bn_blind.c | 26 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() 126 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert() 131 int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert_ex() 159 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_invert() 165 BN_CTX *ctx) in BN_BLINDING_invert_ex() 232 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param() 237 BN_CTX *ctx, in BN_BLINDING_create_param()
|
| /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); 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,
|
| /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 | 115 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))(DSA *, BN_CTX *, BIGNUM **, BIGNUM **) in DSA_meth_get_sign_setup() 121 int (*sign_setup)(DSA *, BN_CTX *, BIGNUM **, BIGNUM **)) in DSA_meth_set_sign_setup() argument 140 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *) in DSA_meth_get_mod_exp() 147 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_set_mod_exp() argument 154 …const DSA_METHOD *dsam))(DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp() 162 const BIGNUM *, BN_CTX *, BN_MONT_CTX *)) in DSA_meth_set_bn_mod_exp() argument
|