/openssl/crypto/ec/ |
H A D | ec_local.h | 60 BN_CTX *); 108 BN_CTX *); 112 BN_CTX *); 137 BN_CTX *); 161 BN_CTX *); 164 BN_CTX *); 256 BN_CTX *); 403 BN_CTX *); 494 BN_CTX *); 527 BN_CTX *); [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 | ec2_smpl.c | 186 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 D | ec_lib.c | 317 BN_CTX *ctx = NULL; in ec_guess_cofactor() 464 BN_CTX *ctx) in EC_GROUP_get_cofactor() 566 BN_CTX *ctx) in EC_GROUP_get_curve() 626 BN_CTX *ctx_new = NULL; in EC_GROUP_cmp() 953 BN_CTX *ctx) in EC_POINT_dbl() 1000 BN_CTX *ctx) in EC_POINT_is_on_curve() 1014 BN_CTX *ctx) in EC_POINT_cmp() 1074 BN_CTX *new_ctx = NULL; in EC_POINTs_mul() 1120 BN_CTX *new_ctx = NULL; in EC_POINT_mul() 1239 BN_CTX *new_ctx = NULL; in ec_field_inverse_mod_ord() [all …]
|
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() 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 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()
|
H A D | ecp_smpl.c | 146 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 …]
|
/openssl/include/openssl/ |
H A D | bn.h | 210 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 D | ec.h | 263 BN_CTX *ctx); 317 const BIGNUM *b, BN_CTX *ctx); 330 BN_CTX *ctx); 537 BN_CTX *ctx); 600 BN_CTX *ctx); 626 BN_CTX *ctx); 785 EC_POINT *, BN_CTX *); 800 const EC_POINT *b, BN_CTX *ctx); 810 BN_CTX *ctx); 834 BN_CTX *ctx); [all …]
|
H A D | dsa.h | 139 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/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); 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 D | BN_add.pod | 17 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 D | EC_POINT_new.pod | 44 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 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
|
/openssl/include/crypto/ |
H A D | bn.h | 75 BN_MONT_CTX *mont, BN_CTX *ctx); 77 BN_CTX *ctx); 79 BN_CTX *ctx); 84 int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 85 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx); 89 const BIGNUM *d, BN_CTX *ctx); 96 int ossl_bn_miller_rabin_is_prime(const BIGNUM *w, int iterations, BN_CTX *ctx, 105 const BIGNUM *e, BN_CTX *ctx, 110 int nlen, const BIGNUM *e, BN_CTX *ctx, 113 OSSL_LIB_CTX *ossl_bn_get_libctx(BN_CTX *ctx);
|
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);
|
/openssl/crypto/bn/ |
H A D | bn_ctx.c | 110 OSSL_TRACE_BEGIN(BN_CTX) { \ 112 } OSSL_TRACE_END(BN_CTX) 120 BN_CTX *ret; in BN_CTX_new_ex() 134 BN_CTX *BN_CTX_new(void) in BN_CTX_new() 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() 161 OSSL_TRACE_BEGIN(BN_CTX) { in BN_CTX_free() 174 } OSSL_TRACE_END(BN_CTX); in BN_CTX_free() 181 void BN_CTX_start(BN_CTX *ctx) in BN_CTX_start() 195 void BN_CTX_end(BN_CTX *ctx) in BN_CTX_end() [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() 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() 271 BN_CTX *ctxlocal = NULL; in bn_is_prime_int() 478 BN_CTX *ctx) in probable_prime() [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() 234 const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, in BN_BLINDING_create_param() 239 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() 253 size_t message_len, BN_CTX *ctx) in BN_generate_dsa_nonce()
|
/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,
|
/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_local.h | 49 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);
|