Home
last modified time | relevance | path

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

12345

/external/boringssl/src/include/openssl/
Dbn.h170 OPENSSL_EXPORT BIGNUM *BN_new(void);
173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
185 OPENSSL_EXPORT BIGNUM *BN_dup(const BIGNUM *src);
189 OPENSSL_EXPORT BIGNUM *BN_copy(BIGNUM *dest, const BIGNUM *src);
192 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
195 OPENSSL_EXPORT const BIGNUM *BN_value_one(void);
202 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
206 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
[all …]
Ddh.h92 OPENSSL_EXPORT void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key,
93 const BIGNUM **out_priv_key);
98 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
102 OPENSSL_EXPORT void DH_get0_pqg(const DH *dh, const BIGNUM **out_p,
103 const BIGNUM **out_q, const BIGNUM **out_g);
109 OPENSSL_EXPORT int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
117 OPENSSL_EXPORT BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *ret);
147 OPENSSL_EXPORT int DH_compute_key(uint8_t *out, const BIGNUM *peers_key,
187 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
251 BIGNUM *p;
[all …]
Drsa.h98 OPENSSL_EXPORT void RSA_get0_key(const RSA *rsa, const BIGNUM **out_n,
99 const BIGNUM **out_e, const BIGNUM **out_d);
103 OPENSSL_EXPORT void RSA_get0_factors(const RSA *rsa, const BIGNUM **out_p,
104 const BIGNUM **out_q);
110 OPENSSL_EXPORT void RSA_get0_crt_params(const RSA *rsa, const BIGNUM **out_dmp1,
111 const BIGNUM **out_dmq1,
112 const BIGNUM **out_iqmp);
120 OPENSSL_EXPORT int RSA_set0_key(RSA *rsa, BIGNUM *n, BIGNUM *e, BIGNUM *d);
127 OPENSSL_EXPORT int RSA_set0_factors(RSA *rsa, BIGNUM *p, BIGNUM *q);
134 OPENSSL_EXPORT int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1,
[all …]
Dec.h132 OPENSSL_EXPORT const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);
137 BIGNUM *cofactor, BN_CTX *ctx);
144 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p,
145 BIGNUM *out_a, BIGNUM *out_b,
214 BIGNUM *x, BIGNUM *y,
223 const BIGNUM *x,
224 const BIGNUM *y,
254 const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit,
279 const BIGNUM *n, const EC_POINT *q,
280 const BIGNUM *m, BN_CTX *ctx);
[all …]
Ddsa.h96 OPENSSL_EXPORT void DSA_get0_key(const DSA *dsa, const BIGNUM **out_pub_key,
97 const BIGNUM **out_priv_key);
101 OPENSSL_EXPORT void DSA_get0_pqg(const DSA *dsa, const BIGNUM **out_p,
102 const BIGNUM **out_q, const BIGNUM **out_g);
110 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
117 OPENSSL_EXPORT int DSA_set0_pqg(DSA *dsa, BIGNUM *p, BIGNUM *q, BIGNUM *g);
162 BIGNUM *r, *s;
394 BIGNUM *p;
395 BIGNUM *q; // == 20
396 BIGNUM *g;
[all …]
/external/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h106 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
107 const BIGNUM *b, BN_CTX *);
109 BIGNUM *x, BIGNUM *y, BN_CTX *);
128 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
129 const BIGNUM *b, BN_CTX *);
130 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
132 int (*field_encode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
134 int (*field_decode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
146 BIGNUM order;
155 BIGNUM field; // For curves over GF(p), this is the modulus.
[all …]
Dec_montgomery.c93 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_mont_group_set_curve()
94 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_group_set_curve()
126 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_mul()
127 const BIGNUM *b, BN_CTX *ctx) { in ec_GFp_mont_field_mul()
136 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_sqr()
146 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_encode()
156 int ec_GFp_mont_field_decode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_decode()
168 BIGNUM *x, BIGNUM *y, in ec_GFp_mont_point_get_affine_coordinates()
198 BIGNUM *Z_1 = BN_CTX_get(ctx); in ec_GFp_mont_point_get_affine_coordinates()
199 BIGNUM *Z_2 = BN_CTX_get(ctx); in ec_GFp_mont_point_get_affine_coordinates()
[all …]
Dsimple.c107 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_simple_group_set_curve()
108 const BIGNUM *a, const BIGNUM *b, in ec_GFp_simple_group_set_curve()
112 BIGNUM *tmp_a; in ec_GFp_simple_group_set_curve()
182 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, in ec_GFp_simple_group_get_curve()
183 BIGNUM *b, BN_CTX *ctx) { in ec_GFp_simple_group_get_curve()
256 static int set_Jprojective_coordinate_GFp(const EC_GROUP *group, BIGNUM *out, in set_Jprojective_coordinate_GFp()
257 const BIGNUM *in, BN_CTX *ctx) { in set_Jprojective_coordinate_GFp()
273 EC_POINT *point, const BIGNUM *x, in ec_GFp_simple_point_set_affine_coordinates()
274 const BIGNUM *y, BN_CTX *ctx) { in ec_GFp_simple_point_set_affine_coordinates()
305 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, in ec_GFp_simple_add()
[all …]
/external/boringssl/src/crypto/fipsmodule/bn/
Ddiv.c197 int BN_div(BIGNUM *quotient, BIGNUM *rem, const BIGNUM *numerator, in BN_div()
198 const BIGNUM *divisor, BN_CTX *ctx) { in BN_div()
200 BIGNUM wnum; in BN_div()
219 BIGNUM *tmp = BN_CTX_get(ctx); in BN_div()
220 BIGNUM *snum = BN_CTX_get(ctx); in BN_div()
221 BIGNUM *sdiv = BN_CTX_get(ctx); in BN_div()
222 BIGNUM *res = NULL; in BN_div()
397 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod()
409 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_add()
417 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_add_quick()
[all …]
Dgcd.c117 static BIGNUM *euclid(BIGNUM *a, BIGNUM *b) { in euclid()
118 BIGNUM *t; in euclid()
186 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { in BN_gcd()
187 BIGNUM *a, *b, *t; in BN_gcd()
228 static int bn_mod_inverse_general(BIGNUM *out, int *out_no_inverse,
229 const BIGNUM *a, const BIGNUM *n,
232 int BN_mod_inverse_odd(BIGNUM *out, int *out_no_inverse, const BIGNUM *a, in BN_mod_inverse_odd()
233 const BIGNUM *n, BN_CTX *ctx) { in BN_mod_inverse_odd()
246 BIGNUM *A, *B, *X, *Y; in BN_mod_inverse_odd()
259 BIGNUM *R = out; in BN_mod_inverse_odd()
[all …]
Dbn.c69 BIGNUM *BN_new(void) { in BN_new()
70 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM)); in BN_new()
77 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); in BN_new()
83 void BN_init(BIGNUM *bn) { in BN_init()
84 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); in BN_init()
87 void BN_free(BIGNUM *bn) { in BN_free()
103 void BN_clear_free(BIGNUM *bn) { in BN_clear_free()
122 OPENSSL_cleanse(bn, sizeof(BIGNUM)); in BN_clear_free()
126 BIGNUM *BN_dup(const BIGNUM *src) { in BN_dup()
127 BIGNUM *copy; in BN_dup()
[all …]
Dinternal.h202 int bn_minimal_width(const BIGNUM *bn); in OPENSSL_MSVC_PRAGMA()
206 void bn_correct_top(BIGNUM *bn); in OPENSSL_MSVC_PRAGMA()
211 int bn_wexpand(BIGNUM *bn, size_t words); in OPENSSL_MSVC_PRAGMA()
215 int bn_expand(BIGNUM *bn, size_t bits); in OPENSSL_MSVC_PRAGMA()
223 int bn_resize_words(BIGNUM *bn, size_t words); in OPENSSL_MSVC_PRAGMA()
227 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA()
231 int bn_fits_in_words(const BIGNUM *bn, size_t num); in OPENSSL_MSVC_PRAGMA()
235 int bn_copy_words(BN_ULONG *out, size_t num, const BIGNUM *bn); in OPENSSL_MSVC_PRAGMA()
318 uint64_t bn_mont_n0(const BIGNUM *n); in OPENSSL_MSVC_PRAGMA()
319 int bn_mod_exp_base_2_vartime(BIGNUM *r, unsigned p, const BIGNUM *n); in OPENSSL_MSVC_PRAGMA()
[all …]
Dprime.c344 static int probable_prime(BIGNUM *rnd, int bits);
345 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add,
346 const BIGNUM *rem, BN_CTX *ctx);
347 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add,
348 const BIGNUM *rem, BN_CTX *ctx);
365 int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, in BN_generate_prime_ex()
366 const BIGNUM *rem, BN_GENCB *cb) { in BN_generate_prime_ex()
367 BIGNUM *t; in BN_generate_prime_ex()
464 int BN_primality_test(int *is_probably_prime, const BIGNUM *candidate, in BN_primality_test()
480 int BN_is_prime_ex(const BIGNUM *candidate, int checks, BN_CTX *ctx, BN_GENCB *cb) { in BN_is_prime_ex()
[all …]
Dexponentiation.c139 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { in BN_exp()
141 BIGNUM *v, *rr; in BN_exp()
192 BIGNUM N; // the divisor
193 BIGNUM Nr; // the reciprocal
216 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set()
231 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) { in BN_reciprocal()
233 BIGNUM *t; in BN_reciprocal()
256 static int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, in BN_div_recp()
259 BIGNUM *a, *b, *d, *r; in BN_div_recp()
359 static int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, in BN_mod_mul_reciprocal()
[all …]
Dadd.c67 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { in BN_add()
68 const BIGNUM *tmp; in BN_add()
103 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { in BN_uadd()
106 const BIGNUM *tmp; in BN_uadd()
161 int BN_add_word(BIGNUM *a, BN_ULONG w) { in BN_add_word()
201 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { in BN_sub()
203 const BIGNUM *tmp; in BN_sub()
249 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { in BN_usub()
315 int BN_sub_word(BIGNUM *a, BN_ULONG w) { in BN_sub_word()
Dcmp.c66 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) { in BN_ucmp()
87 int BN_cmp(const BIGNUM *a, const BIGNUM *b) { in BN_cmp()
215 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_abs_is_word()
226 int BN_cmp_word(const BIGNUM *a, BN_ULONG b) { in BN_cmp_word()
227 BIGNUM b_bn; in BN_cmp_word()
237 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero()
241 int BN_is_one(const BIGNUM *bn) { in BN_is_one()
245 int BN_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_is_word()
249 int BN_is_odd(const BIGNUM *bn) { in BN_is_odd()
253 int BN_is_pow2(const BIGNUM *bn) { in BN_is_pow2()
[all …]
Dbn_test.cc103 static int HexToBIGNUM(bssl::UniquePtr<BIGNUM> *out, const char *in) { in HexToBIGNUM()
104 BIGNUM *raw = NULL; in HexToBIGNUM()
110 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attribute) { in GetBIGNUM()
116 bssl::UniquePtr<BIGNUM> ret; in GetBIGNUM()
125 bssl::UniquePtr<BIGNUM> ret = GetBIGNUM(t, attribute); in GetInt()
141 const char *actual_expr, const char *operation, const BIGNUM *expected, in AssertBIGNUMSEqual()
142 const BIGNUM *actual) { in AssertBIGNUMSEqual()
164 bssl::UniquePtr<BIGNUM> a = GetBIGNUM(t, "A"); in TestSum()
165 bssl::UniquePtr<BIGNUM> b = GetBIGNUM(t, "B"); in TestSum()
166 bssl::UniquePtr<BIGNUM> sum = GetBIGNUM(t, "Sum"); in TestSum()
[all …]
Dbytes.c65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { in BN_bin2bn()
69 BIGNUM *bn = NULL; in BN_bin2bn()
114 BIGNUM *BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret) { in BN_le2bn()
115 BIGNUM *bn = NULL; in BN_le2bn()
150 size_t BN_bn2bin(const BIGNUM *in, uint8_t *out) { in BN_bn2bin()
186 static BN_ULONG read_word_padded(const BIGNUM *in, size_t i) { in read_word_padded()
199 static int fits_in_bytes(const BIGNUM *in, size_t len) { in fits_in_bytes()
211 int BN_bn2le_padded(uint8_t *out, size_t len, const BIGNUM *in) { in BN_bn2le_padded()
232 int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in) { in BN_bn2bin_padded()
254 BN_ULONG BN_get_word(const BIGNUM *bn) { in BN_get_word()
[all …]
Dmontgomery.c173 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
226 BN_MONT_CTX *BN_MONT_CTX_new_for_modulus(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_for_modulus()
237 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
255 int BN_to_montgomery(BIGNUM *ret, const BIGNUM *a, const BN_MONT_CTX *mont, in BN_to_montgomery()
302 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, in BN_from_montgomery_word()
309 const BIGNUM *n = &mont->N; in BN_from_montgomery_word()
332 int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, const BN_MONT_CTX *mont, in BN_from_montgomery()
335 BIGNUM *t; in BN_from_montgomery()
352 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_one_to_montgomery()
355 const BIGNUM *n = &mont->N; in bn_one_to_montgomery()
[all …]
/external/tpm2/
DCpriECC.c110 BIGNUM *bnX; in Point2B()
111 BIGNUM *bnY; in Point2B()
151 BIGNUM *bnP; in EccCurveInit()
152 BIGNUM *bnA; in EccCurveInit()
153 BIGNUM *bnB; in EccCurveInit()
154 BIGNUM *bnX; in EccCurveInit()
155 BIGNUM *bnY; in EccCurveInit()
156 BIGNUM *bnN; in EccCurveInit()
157 BIGNUM *bnH; in EccCurveInit()
215 BIGNUM *bnX; in PointFrom2B()
[all …]
/external/boringssl/src/crypto/bn_extra/
Dconvert.c72 int BN_bn2cbb_padded(CBB *out, size_t len, const BIGNUM *in) { in BN_bn2cbb_padded()
79 char *BN_bn2hex(const BIGNUM *bn) { in BN_bn2hex()
114 static int decode_hex(BIGNUM *bn, const char *in, int in_len) { in decode_hex()
161 static int decode_dec(BIGNUM *bn, const char *in, int in_len) { in decode_dec()
186 typedef int (*decode_func) (BIGNUM *bn, const char *in, int in_len);
189 static int bn_x2bn(BIGNUM **outp, const char *in, decode_func decode, char_test_func want_char) { in bn_x2bn()
190 BIGNUM *ret = NULL; in bn_x2bn()
241 int BN_hex2bn(BIGNUM **outp, const char *in) { in BN_hex2bn()
245 char *BN_bn2dec(const BIGNUM *a) { in BN_bn2dec()
248 BIGNUM *copy = NULL; in BN_bn2dec()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c80 static BIGNUM * get_group5_prime(void) in get_group5_prime()
490 BIGNUM *bn_base, *bn_exp, *bn_modulus, *bn_result; in crypto_mod_exp()
693 BIGNUM *p = NULL, *g; in dh5_init()
694 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dh5_init()
778 BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL; in dh5_init_fixed()
818 BIGNUM *pub_key; in dh5_derive_shared()
1157 BIGNUM *bn; in crypto_bignum_init_set()
1170 BN_clear_free((BIGNUM *) n); in crypto_bignum_deinit()
1172 BN_free((BIGNUM *) n); in crypto_bignum_deinit()
1187 num_bytes = BN_num_bytes((const BIGNUM *) a); in crypto_bignum_to_bin()
[all …]
/external/boringssl/src/crypto/dh/
Ddh.c117 void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key, in DH_get0_key()
118 const BIGNUM **out_priv_key) { in DH_get0_key()
127 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) { in DH_set0_key()
141 void DH_get0_pqg(const DH *dh, const BIGNUM **out_p, const BIGNUM **out_q, in DH_get0_pqg()
142 const BIGNUM **out_g) { in DH_get0_pqg()
154 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) { in DH_set0_pqg()
204 BIGNUM *t1, *t2; in DH_generate_parameters_ex()
296 BIGNUM *pub_key = NULL, *priv_key = NULL; in DH_generate_key()
379 int DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) { in DH_compute_key()
381 BIGNUM *shared_key; in DH_compute_key()
[all …]
/external/boringssl/src/crypto/ecdh/
Decdh_test.cc58 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *key) { in GetBIGNUM()
64 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
71 bssl::UniquePtr<BIGNUM> priv_key = GetBIGNUM(t, "Private"); in TEST()
73 bssl::UniquePtr<BIGNUM> x = GetBIGNUM(t, "X"); in TEST()
75 bssl::UniquePtr<BIGNUM> y = GetBIGNUM(t, "Y"); in TEST()
77 bssl::UniquePtr<BIGNUM> peer_x = GetBIGNUM(t, "PeerX"); in TEST()
79 bssl::UniquePtr<BIGNUM> peer_y = GetBIGNUM(t, "PeerY"); in TEST()
152 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); in MakeCustomGroup()
153 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); in MakeCustomGroup()
154 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); in MakeCustomGroup()
[all …]
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c124 BIGNUM *f, *result; in RSA_encrypt()
427 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
437 BIGNUM *f, *result; in RSA_verify_raw()
534 BIGNUM *f, *result; in rsa_default_private_transform()
610 BIGNUM *vrfy = BN_CTX_get(ctx); in rsa_default_private_transform()
646 static int mod_montgomery(BIGNUM *r, const BIGNUM *I, const BIGNUM *p, in mod_montgomery()
647 const BN_MONT_CTX *mont_p, const BIGNUM *q, in mod_montgomery()
672 static int mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) { in mod_exp()
684 BIGNUM *r1, *m1, *vrfy; in mod_exp()
791 static int ensure_bignum(BIGNUM **out) { in ensure_bignum()
[all …]

12345