Home
last modified time | relevance | path

Searched refs:BIGNUM (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/freebsd/crypto/openssl/include/openssl/
H A Dbn.h76 void BN_set_flags(BIGNUM *b, int n);
77 int BN_get_flags(const BIGNUM *b, int n);
94 void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);
191 int BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);
192 int BN_is_zero(const BIGNUM *a);
193 int BN_is_one(const BIGNUM *a);
194 int BN_is_word(const BIGNUM *a, const BN_ULONG w);
195 int BN_is_odd(const BIGNUM *a);
199 void BN_zero_ex(BIGNUM *a);
207 const BIGNUM *BN_value_one(void);
[all …]
H A Dsrp.h.in46 BIGNUM *bn;
56 BIGNUM *s;
57 BIGNUM *v;
59 const BIGNUM *g;
60 const BIGNUM *N;
74 void SRP_user_pwd_set_gN(SRP_user_pwd *user_pwd, const BIGNUM *g,
75 const BIGNUM *N);
80 int SRP_user_pwd_set0_sv(SRP_user_pwd *user_pwd, BIGNUM *s, BIGNUM *v);
87 const BIGNUM *default_g;
88 const BIGNUM *default_N;
[all …]
H A Dsrp.h45 BIGNUM *bn;
79 BIGNUM *s;
80 BIGNUM *v;
82 const BIGNUM *g;
83 const BIGNUM *N;
121 void SRP_user_pwd_set_gN(SRP_user_pwd *user_pwd, const BIGNUM *g,
122 const BIGNUM *N);
127 int SRP_user_pwd_set0_sv(SRP_user_pwd *user_pwd, BIGNUM *s, BIGNUM *v);
134 const BIGNUM *default_g;
135 const BIGNUM *default_N;
[all …]
H A Ddsa.h65 void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
66 int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);
135 BIGNUM **kinvp, BIGNUM **rp);
201 OSSL_DEPRECATEDIN_3_0 void DSA_get0_pqg(const DSA *d, const BIGNUM **p,
202 const BIGNUM **q, const BIGNUM **g);
203 OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
204 OSSL_DEPRECATEDIN_3_0 void DSA_get0_key(const DSA *d, const BIGNUM **pub_key,
205 const BIGNUM **priv_key);
206 OSSL_DEPRECATEDIN_3_0 int DSA_set0_key(DSA *d, BIGNUM *pub_key,
207 BIGNUM *priv_key);
[all …]
H A Dec.h219 const BIGNUM *order, const BIGNUM *cofactor);
239 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);
245 const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
259 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,
266 const BIGNUM *EC_GROUP_get0_cofactor(const EC_GROUP *group);
284 const BIGNUM *EC_GROUP_get0_field(const EC_GROUP *group);
313 int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
314 const BIGNUM *b, BN_CTX *ctx);
326 int EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
340 const BIGNUM *p,
[all …]
H A Drsa.h126 int EVP_PKEY_CTX_set1_rsa_keygen_pubexp(EVP_PKEY_CTX *ctx, BIGNUM *pubexp);
131 int EVP_PKEY_CTX_set_rsa_keygen_pubexp(EVP_PKEY_CTX *ctx, BIGNUM *pubexp);
207 OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
208 OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
210 BIGNUM *dmp1, BIGNUM *dmq1,
211 BIGNUM *iqmp);
213 BIGNUM *primes[],
214 BIGNUM *exps[],
215 BIGNUM *coeffs[],
218 const BIGNUM **n, const BIGNUM **e,
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Dbn.h17 BIGNUM *bn_wexpand(BIGNUM *a, int words);
18 BIGNUM *bn_expand2(BIGNUM *a, int words);
20 void bn_correct_top(BIGNUM *a);
30 signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len);
32 int bn_get_top(const BIGNUM *a);
34 int bn_get_dmax(const BIGNUM *a);
37 void bn_set_all_zero(BIGNUM *a);
43 int bn_copy_words(BN_ULONG *out, const BIGNUM *in, int size);
45 BN_ULONG *bn_get_words(const BIGNUM *a);
51 void bn_set_static_words(BIGNUM *a, const BN_ULONG *words, int size);
[all …]
H A Dbn_dh.h11 extern const BIGNUM ossl_bignum_dh##x##_p; \
12 extern const BIGNUM ossl_bignum_dh##x##_q; \
13 extern const BIGNUM ossl_bignum_dh##x##_g; \
19 extern const BIGNUM ossl_bignum_const_2;
21 extern const BIGNUM ossl_bignum_ffdhe2048_p;
22 extern const BIGNUM ossl_bignum_ffdhe3072_p;
23 extern const BIGNUM ossl_bignum_ffdhe4096_p;
24 extern const BIGNUM ossl_bignum_ffdhe6144_p;
25 extern const BIGNUM ossl_bignum_ffdhe8192_p;
26 extern const BIGNUM ossl_bignum_ffdhe2048_q;
[all …]
H A Dbn_srp.h12 extern const BIGNUM ossl_bn_group_1024;
14 extern const BIGNUM ossl_bn_group_1536;
16 extern const BIGNUM ossl_bn_group_2048;
18 extern const BIGNUM ossl_bn_group_3072;
20 extern const BIGNUM ossl_bn_group_4096;
22 extern const BIGNUM ossl_bn_group_6144;
24 extern const BIGNUM ossl_bn_group_8192;
26 extern const BIGNUM ossl_bn_generator_19;
28 extern const BIGNUM ossl_bn_generator_5;
30 extern const BIGNUM ossl_bn_generator_2;
/freebsd/crypto/openssl/crypto/ec/
H A Dec_local.h57 int (*group_set_curve) (EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
58 const BIGNUM *b, BN_CTX *);
59 int (*group_get_curve) (const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b,
84 const BIGNUM *x, const BIGNUM *y,
87 BIGNUM *x, BIGNUM *y, BN_CTX *);
89 const BIGNUM *x, int y_bit,
135 int (*mul) (const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
136 size_t num, const EC_POINT *points[], const BIGNUM *scalars[],
147 int (*field_mul) (const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
148 const BIGNUM *b, BN_CTX *);
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_local.h19 BIGNUM *r;
20 BIGNUM *d;
21 BIGNUM *t;
23 BIGNUM *pp;
33 BIGNUM *Xp1;
34 BIGNUM *Xp2;
35 BIGNUM *Xq1;
36 BIGNUM *Xq2;
37 BIGNUM *Xp;
38 BIGNUM *Xq;
[all …]
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_lib.c26 static BIGNUM *srp_Calc_xy(const BIGNUM *x, const BIGNUM *y, const BIGNUM *N, in srp_Calc_xy()
32 BIGNUM *res = NULL; in srp_Calc_xy()
55 static BIGNUM *srp_Calc_k(const BIGNUM *N, const BIGNUM *g, in srp_Calc_k()
63 BIGNUM *SRP_Calc_u_ex(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N, in SRP_Calc_u_ex()
70 BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N) in SRP_Calc_u()
76 BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u, in SRP_Calc_server_key()
77 const BIGNUM *b, const BIGNUM *N) in SRP_Calc_server_key()
79 BIGNUM *tmp = NULL, *S = NULL; in SRP_Calc_server_key()
106 BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, in SRP_Calc_B_ex()
107 const BIGNUM *v, OSSL_LIB_CTX *libctx, const char *propq) in SRP_Calc_B_ex()
[all …]
/freebsd/contrib/ntp/include/
H A Dlibssl_compat.h59 extern void sslshim_RSA_get0_key(const RSA *prsa, const BIGNUM **pn,
60 const BIGNUM **pe, const BIGNUM **pd);
61 extern int sslshim_RSA_set0_key(RSA *prsa, BIGNUM *n,
62 BIGNUM *e, BIGNUM *d);
63 extern void sslshim_RSA_get0_factors(const RSA *prsa, const BIGNUM **pp,
64 const BIGNUM **pq);
65 extern int sslshim_RSA_set0_factors(RSA *prsar, BIGNUM *p, BIGNUM *q);
66 extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1,
67 BIGNUM *dmq1, BIGNUM *iqmp);
69 extern void sslshim_DSA_SIG_get0(const DSA_SIG *psig, const BIGNUM **pr,
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DSRP_Calc_B.pod26 BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,
27 const BIGNUM *b, const BIGNUM *N);
28 BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
29 const BIGNUM *v, OSSL_LIB_CTX *libctx, const char *propq);
30 BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
31 const BIGNUM *v);
33 BIGNUM *SRP_Calc_u_ex(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N,
35 BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);
38 BIGNUM *SRP_Calc_client_key_ex(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
39 const BIGNUM *x, const BIGNUM *a, const BIGNUM *u,
[all …]
H A DBN_add.pod13 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
15 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
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);
21 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *a, const BIGNUM *d,
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);
28 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
31 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
34 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
[all …]
H A DDH_get_1024_160.pod27 const BIGNUM *BN_get0_nist_prime_192(void);
28 const BIGNUM *BN_get0_nist_prime_224(void);
29 const BIGNUM *BN_get0_nist_prime_256(void);
30 const BIGNUM *BN_get0_nist_prime_384(void);
31 const BIGNUM *BN_get0_nist_prime_521(void);
33 BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);
34 BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);
35 BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);
36 BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);
37 BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_mod.c13 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod()
33 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_add()
53 int bn_mod_add_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_add_fixed_top()
54 const BIGNUM *m) in bn_mod_add_fixed_top()
104 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_add_quick()
105 const BIGNUM *m) in BN_mod_add_quick()
115 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_sub()
137 int bn_mod_sub_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_sub_fixed_top()
138 const BIGNUM *m) in bn_mod_sub_fixed_top()
191 int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_sub_quick()
[all …]
H A Dbn_const.c25 BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn) in BN_get_rfc2409_prime_768()
53 BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn) in BN_get_rfc2409_prime_1024()
86 BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn) in BN_get_rfc3526_prime_1536()
100 BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn) in BN_get_rfc3526_prime_2048()
113 BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn) in BN_get_rfc3526_prime_3072()
126 BIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn) in BN_get_rfc3526_prime_4096()
139 BIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn) in BN_get_rfc3526_prime_6144()
152 BIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn) in BN_get_rfc3526_prime_8192()
H A Dbn_lib.c82 const BIGNUM *BN_value_one(void) in BN_value_one()
85 static const BIGNUM const_one = in BN_value_one()
153 int bn_num_bits_consttime(const BIGNUM *a) in bn_num_bits_consttime()
178 int BN_num_bits(const BIGNUM *a) in BN_num_bits()
202 static void bn_free_d(BIGNUM *a, int clear) in bn_free_d()
213 void BN_clear_free(BIGNUM *a) in BN_clear_free()
225 void BN_free(BIGNUM *a) in BN_free()
235 void bn_init(BIGNUM *a) in bn_init()
237 static BIGNUM nilbn; in bn_init()
243 BIGNUM *BN_ne
[all...]
H A Dbn_x931p.c23 static int bn_x931_derive_pi(BIGNUM *pi, const BIGNUM *Xpi, BN_CTX *ctx, in bn_x931_derive_pi()
53 int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, in BN_X931_derive_prime_ex()
54 const BIGNUM *Xp, const BIGNUM *Xp1, in BN_X931_derive_prime_ex()
55 const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx, in BN_X931_derive_prime_ex()
60 BIGNUM *t, *p1p2, *pm1; in BN_X931_derive_prime_ex()
162 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) in BN_X931_generate_Xpq()
164 BIGNUM *t; in BN_X931_generate_Xpq()
219 int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, in BN_X931_generate_prime_ex()
220 BIGNUM *Xp1, BIGNUM *Xp2, in BN_X931_generate_prime_ex()
221 const BIGNUM *Xp, in BN_X931_generate_prime_ex()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dlibssl_compat.c43 BIGNUM ** ps, in replace_bn_nn()
44 BIGNUM * n in replace_bn_nn()
132 const BIGNUM ** pn, in sslshim_RSA_get0_key()
133 const BIGNUM ** pe, in sslshim_RSA_get0_key()
134 const BIGNUM ** pd in sslshim_RSA_get0_key()
150 BIGNUM * n, in sslshim_RSA_set0_key()
151 BIGNUM * e, in sslshim_RSA_set0_key()
152 BIGNUM * d in sslshim_RSA_set0_key()
169 const BIGNUM ** pp, in sslshim_RSA_get0_factors()
170 const BIGNUM ** pq in sslshim_RSA_get0_factors()
[all …]
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_meth.c121 (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
147 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_get_mod_exp()
148 const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *) in DSA_meth_get_mod_exp()
154 int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_mod_exp() argument
155 const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_set_mod_exp()
163 (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *, in DSA_meth_get_bn_mod_exp()
170 int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DSA_meth_set_bn_mod_exp() argument
171 const BIGNUM *, BN_CTX *, BN_MONT_CTX *)) in DSA_meth_set_bn_mod_exp()
H A Ddsa_local.h22 BIGNUM *pub_key; /* y public key */
23 BIGNUM *priv_key; /* x private key */
42 BIGNUM *r;
43 BIGNUM *s;
49 int (*dsa_sign_setup) (DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
50 BIGNUM **rp);
53 int (*dsa_mod_exp) (DSA *dsa, BIGNUM *rr, const BIGNUM *a1,
54 const BIGNUM *p1, const BIGNUM *a2, const BIGNUM *p2,
55 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
57 int (*bn_mod_exp) (DSA *dsa, BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dffc.h92 BIGNUM *p;
93 BIGNUM *q;
95 BIGNUM *g;
97 BIGNUM *j;
127 void ossl_ffc_params_set0_pqg(FFC_PARAMS *params, BIGNUM *p, BIGNUM *q,
128 BIGNUM *g);
129 void ossl_ffc_params_get0_pqg(const FFC_PARAMS *params, const BIGNUM **p,
130 const BIGNUM **q, const BIGNUM **g);
131 void ossl_ffc_params_set0_j(FFC_PARAMS *d, BIGNUM *j);
187 int N, int s, BIGNUM *priv);
[all …]
/freebsd/usr.bin/factor/
H A Dfactor.c70 BN_check_prime(BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb) in BN_check_prime()
78 static void pollard_pminus1(BIGNUM *); /* print factors for big numbers */
82 typedef ubig BIGNUM; typedef
87 #define BN_new() ((BIGNUM *)calloc(sizeof(BIGNUM), 1))
92 static int BN_dec2bn(BIGNUM **, const char *);
93 static int BN_hex2bn(BIGNUM **, const char *);
94 static BN_ULONG BN_div_word(BIGNUM *, BN_ULONG);
95 static void BN_print_fp(FILE *, const BIGNUM *);
99 static void BN_print_dec_fp(FILE *, const BIGNUM *);
100 static void convert_str2bn(BIGNUM **, char *);
[all …]

12345678910>>...15