| /mirbsd/src/lib/libssl/src/crypto/bn/ |
| D | bn.h | 256 typedef struct bignum_ctx BN_CTX; typedef 331 BN_CTX *BN_CTX_new(void); 332 void BN_CTX_init(BN_CTX *c); 333 void BN_CTX_free(BN_CTX *c); 334 void BN_CTX_start(BN_CTX *ctx); 335 BIGNUM *BN_CTX_get(BN_CTX *ctx); 336 void BN_CTX_end(BN_CTX *ctx); 356 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); 357 int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx); 360 BN_CTX *ctx); [all …]
|
| D | bn_ctx.c | 69 BN_CTX *BN_CTX_new(void) in BN_CTX_new() 71 BN_CTX *ret; in BN_CTX_new() 73 ret=(BN_CTX *)OPENSSL_malloc(sizeof(BN_CTX)); in BN_CTX_new() 85 void BN_CTX_init(BN_CTX *ctx) in BN_CTX_init() 100 void BN_CTX_free(BN_CTX *ctx) in BN_CTX_free() 113 void BN_CTX_start(BN_CTX *ctx) in BN_CTX_start() 121 BIGNUM *BN_CTX_get(BN_CTX *ctx) in BN_CTX_get() 141 void BN_CTX_end(BN_CTX *ctx) in BN_CTX_end()
|
| D | bn_mod.c | 119 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) 127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod() 141 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx) in BN_mod_add() 159 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx) in BN_mod_sub() 179 BN_CTX *ctx) in BN_mod_mul() 202 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_sqr() 210 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) in BN_mod_lshift1() 228 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx) in BN_mod_lshift()
|
| D | bntest.c | 78 int test_lshift(BIO *bp,BN_CTX *ctx,BIGNUM *a_); 80 int test_rshift(BIO *bp,BN_CTX *ctx); 81 int test_div(BIO *bp,BN_CTX *ctx); 82 int test_div_recp(BIO *bp,BN_CTX *ctx); 84 int test_sqr(BIO *bp,BN_CTX *ctx); 85 int test_mont(BIO *bp,BN_CTX *ctx); 86 int test_mod(BIO *bp,BN_CTX *ctx); 87 int test_mod_mul(BIO *bp,BN_CTX *ctx); 88 int test_mod_exp(BIO *bp,BN_CTX *ctx); 89 int test_mod_exp_mont_consttime(BIO *bp,BN_CTX *ctx); [all …]
|
| D | bn_prime.c | 125 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); 128 const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); 130 const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); 140 BN_CTX *ctx; in BN_generate_prime() 212 BN_CTX *ctx_passed, void *cb_arg) in BN_is_prime() 219 BN_CTX *ctx_passed, void *cb_arg, in BN_is_prime_fasttest() 224 BN_CTX *ctx = NULL; in BN_is_prime_fasttest() 328 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont) in witness() 380 const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) in probable_prime_dh() 417 const BIGNUM *rem, BN_CTX *ctx) in probable_prime_dh_safe()
|
| D | bn_x931p.c | 72 static int bn_x931_derive_pi(BIGNUM *pi, const BIGNUM *Xpi, BN_CTX *ctx, in bn_x931_derive_pi() 104 const BIGNUM *e, BN_CTX *ctx) in BN_X931_derive_prime() 204 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) in BN_X931_generate_Xpq() 254 const BIGNUM *e, BN_CTX *ctx, in BN_X931_generate_prime()
|
| D | bn_recp.c | 94 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) in BN_RECP_CTX_set() 104 BN_RECP_CTX *recp, BN_CTX *ctx) in BN_mod_mul_reciprocal() 130 BN_RECP_CTX *recp, BN_CTX *ctx) in BN_div_recp() 214 int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) in BN_reciprocal()
|
| D | bn_blind.c | 97 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_update() 115 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_convert() 127 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx) in BN_BLINDING_invert()
|
| D | bnspeed.c | 168 void do_mul(BIGNUM *r,BIGNUM *a,BIGNUM *b,BN_CTX *ctx); 172 BN_CTX *ctx; in main() 183 void do_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) in do_mul()
|
| /mirbsd/src/lib/libssl/src/doc/crypto/ |
| D | BN_CTX_new.pod | 5 BN_CTX_new, BN_CTX_init, BN_CTX_free - allocate and free BN_CTX structures 11 BN_CTX *BN_CTX_new(void); 13 void BN_CTX_init(BN_CTX *c); 15 void BN_CTX_free(BN_CTX *c); 19 A B<BN_CTX> is a structure that holds B<BIGNUM> temporary variables used by 22 calls, the B<BN_CTX> structure is used. 24 BN_CTX_new() allocates and initializes a B<BN_CTX> 26 B<BN_CTX>. 28 BN_CTX_free() frees the components of the B<BN_CTX>, and if it was 30 If L<BN_CTX_start(3)|BN_CTX_start(3)> has been used on the B<BN_CTX>, [all …]
|
| D | bn.pod | 17 BN_CTX *BN_CTX_new(void); 18 void BN_CTX_init(BN_CTX *c); 19 void BN_CTX_free(BN_CTX *c); 32 int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx); 33 int BN_sqr(BIGNUM *r, BIGNUM *a, BN_CTX *ctx); 35 BN_CTX *ctx); 36 int BN_mod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); 37 int BN_nnmod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); 39 BN_CTX *ctx); 41 BN_CTX *ctx); [all …]
|
| 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); 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, BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); 39 int BN_exp(BIGNUM *r, BIGNUM *a, BIGNUM *p, BN_CTX *ctx); [all …]
|
| D | BN_CTX_start.pod | 11 void BN_CTX_start(BN_CTX *ctx); 13 BIGNUM *BN_CTX_get(BN_CTX *ctx); 15 void BN_CTX_end(BN_CTX *ctx); 20 a B<BN_CTX> (which can been created by using L<BN_CTX_new(3)|BN_CTX_new(3)>)
|
| D | BN_mod_mul_montgomery.pod | 17 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *m, BN_CTX *ctx); 21 BN_MONT_CTX *mont, BN_CTX *ctx); 24 BN_CTX *ctx); 27 BN_CTX *ctx); 55 For all functions, I<ctx> is a previously allocated B<BN_CTX> used for
|
| D | BN_mod_mul_reciprocal.pod | 17 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *m, BN_CTX *ctx); 20 BN_CTX *ctx); 23 BN_RECP_CTX *recp, BN_CTX *ctx); 31 previously allocated B<BN_CTX> used for temporary variables.
|
| D | BN_mod_inverse.pod | 12 BN_CTX *ctx); 20 B<ctx> is a previously allocated B<BN_CTX> used for temporary
|
| /mirbsd/src/lib/libssl/src/crypto/engine/ |
| D | hw_atalla.c | 84 const BIGNUM *m, BN_CTX *ctx); 92 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 98 BN_CTX *ctx, BN_MONT_CTX *in_mont); 100 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, 109 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 430 const BIGNUM *m, BN_CTX *ctx) in atalla_mod_exp() 503 BN_CTX *ctx = NULL; in atalla_rsa_mod_exp() 536 BN_CTX *ctx, BN_MONT_CTX *in_mont) in atalla_dsa_mod_exp() 555 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, in atalla_mod_exp_dsa() 564 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in atalla_mod_exp_mont() [all …]
|
| D | hw_aep.c | 101 const BIGNUM *m, BN_CTX *ctx); 105 const BIGNUM *iqmp, BN_CTX *ctx); 114 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 120 BN_CTX *ctx, BN_MONT_CTX *in_mont); 123 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, 131 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 581 const BIGNUM *m, BN_CTX *ctx) in aep_mod_exp() 630 const BIGNUM *dmq1,const BIGNUM *iqmp, BN_CTX *ctx) in aep_mod_exp_crt() 747 BN_CTX *ctx = NULL; in aep_rsa_mod_exp() 799 BN_CTX *ctx, BN_MONT_CTX *in_mont) in aep_dsa_mod_exp() [all …]
|
| D | hw_nuron.c | 183 const BIGNUM *m,BN_CTX *ctx) in nuron_mod_exp() 210 BN_CTX *ctx, BN_MONT_CTX *in_mont) in nuron_dsa_mod_exp() 233 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, in nuron_mod_exp_dsa() 242 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in nuron_mod_exp_mont() 251 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in nuron_mod_exp_dh()
|
| D | hw_ubsec.c | 86 const BIGNUM *m, BN_CTX *ctx); 89 const BIGNUM *dq, const BIGNUM *qinv, BN_CTX *ctx); 94 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 99 BN_CTX *ctx, BN_MONT_CTX *in_mont); 101 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, 110 const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, 542 const BIGNUM *m, BN_CTX *ctx) in ubsec_mod_exp() 591 BN_CTX *ctx; in ubsec_rsa_mod_exp() 622 const BIGNUM *dq, const BIGNUM *qinv, BN_CTX *ctx) in ubsec_mod_exp_crt() 671 BN_CTX *ctx, BN_MONT_CTX *in_mont) in ubsec_dsa_mod_exp() [all …]
|
| D | hw_cswift.c | 97 const BIGNUM *m, BN_CTX *ctx); 100 const BIGNUM *iqmp, BN_CTX *ctx); 108 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 122 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); 465 const BIGNUM *m, BN_CTX *ctx) in cswift_mod_exp() 586 const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) in cswift_mod_exp_crt() 718 BN_CTX *ctx; in cswift_rsa_mod_exp() 760 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) in cswift_mod_exp_mont() 793 BN_CTX *ctx; in cswift_dsa_sign() 905 BN_CTX *ctx; in cswift_dsa_verify() [all …]
|
| /mirbsd/src/lib/libssl/src/crypto/dsa/ |
| D | dsa_ossl.c | 70 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp); 76 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, 79 const BIGNUM *m, BN_CTX *ctx, 105 BN_CTX *ctx=NULL; in dsa_do_sign() 172 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) in dsa_sign_setup() 174 BN_CTX *ctx; in dsa_sign_setup() 267 BN_CTX *ctx; in dsa_do_verify() 381 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, in dsa_mod_exp() 388 const BIGNUM *m, BN_CTX *ctx, in dsa_bn_mod_exp()
|
| D | dsa.h | 119 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 124 BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx, 127 const BIGNUM *m, BN_CTX *ctx, 196 int DSA_sign_setup( DSA *dsa,BN_CTX *ctx_in,BIGNUM **kinvp,BIGNUM **rp);
|
| /mirbsd/src/lib/libssl/src/crypto/dh/ |
| D | dh_key.c | 71 const BIGNUM *m, BN_CTX *ctx, 107 BN_CTX *ctx; in generate_key() 178 BN_CTX *ctx=NULL; in compute_key() 237 const BIGNUM *m, BN_CTX *ctx, in dh_bn_mod_exp()
|
| /mirbsd/src/lib/libssl/src/crypto/rsa/ |
| D | rsa_eay.c | 158 BN_CTX *ctx=NULL; in RSA_eay_public_encrypt() 253 static int blinding_helper(RSA *rsa, BN_CTX *ctx) in blinding_helper() 287 static BN_BLINDING *setup_blinding(RSA *rsa, BN_CTX *ctx) in setup_blinding() 335 BN_CTX *ctx=NULL; in RSA_eay_private_encrypt() 499 BN_CTX *ctx=NULL; in RSA_eay_private_decrypt() 645 BN_CTX *ctx=NULL; in RSA_eay_public_decrypt() 749 BN_CTX *ctx; in RSA_eay_mod_exp()
|