Searched refs:recp (Results 1 – 6 of 6) sorted by relevance
/openssl/crypto/bn/ |
H A D | bn_recp.c | 15 memset(recp, 0, sizeof(*recp)); in BN_RECP_CTX_init() 16 bn_init(&(recp->N)); in BN_RECP_CTX_init() 17 bn_init(&(recp->Nr)); in BN_RECP_CTX_init() 35 if (recp == NULL) in BN_RECP_CTX_free() 37 BN_free(&recp->N); in BN_RECP_CTX_free() 38 BN_free(&recp->Nr); in BN_RECP_CTX_free() 40 OPENSSL_free(recp); in BN_RECP_CTX_free() 47 BN_zero(&(recp->Nr)); in BN_RECP_CTX_set() 49 recp->shift = 0; in BN_RECP_CTX_set() 118 if (i != recp->shift) in BN_div_recp() [all …]
|
H A D | bn_exp.c | 177 BN_RECP_CTX recp; in BN_mod_exp_recp() local 199 BN_RECP_CTX_init(&recp); in BN_mod_exp_recp() 212 if (BN_RECP_CTX_set(&recp, aa, ctx) <= 0) in BN_mod_exp_recp() 215 if (BN_RECP_CTX_set(&recp, m, ctx) <= 0) in BN_mod_exp_recp() 229 if (!BN_mod_mul_reciprocal(aa, val[0], val[0], &recp, ctx)) in BN_mod_exp_recp() 234 !BN_mod_mul_reciprocal(val[i], val[i - 1], aa, &recp, ctx)) in BN_mod_exp_recp() 261 if (!BN_mod_mul_reciprocal(r, r, r, &recp, ctx)) in BN_mod_exp_recp() 290 if (!BN_mod_mul_reciprocal(r, r, r, &recp, ctx)) in BN_mod_exp_recp() 295 if (!BN_mod_mul_reciprocal(r, r, val[wvalue >> 1], &recp, ctx)) in BN_mod_exp_recp() 307 BN_RECP_CTX_free(&recp); in BN_mod_exp_recp()
|
H A D | bn_local.h | 640 void BN_RECP_CTX_init(BN_RECP_CTX *recp);
|
/openssl/doc/man3/ |
H A D | BN_mod_mul_reciprocal.pod | 14 void BN_RECP_CTX_free(BN_RECP_CTX *recp); 16 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *m, BN_CTX *ctx); 18 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *a, BN_RECP_CTX *recp, 22 BN_RECP_CTX *recp, BN_CTX *ctx); 29 using B<recp>=1/B<m>, which is set as described below. B<ctx> is a 36 If B<recp> is NULL, nothing is done. 38 BN_RECP_CTX_set() stores B<m> in B<recp> and sets it up for computing 41 later be stored in B<recp>. 43 BN_div_recp() divides B<a> by B<m> using B<recp>. It places the quotient
|
/openssl/include/openssl/ |
H A D | bn.h | 458 void BN_RECP_CTX_free(BN_RECP_CTX *recp); 459 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx); 461 BN_RECP_CTX *recp, BN_CTX *ctx); 465 BN_RECP_CTX *recp, BN_CTX *ctx);
|
/openssl/test/ |
H A D | bntest.c | 279 BN_RECP_CTX *recp = NULL; in test_div_recip() local 287 || !TEST_ptr(recp = BN_RECP_CTX_new())) in test_div_recip() 303 if (!(TEST_true(BN_RECP_CTX_set(recp, b, ctx)) in test_div_recip() 304 && TEST_true(BN_div_recp(d, c, a, recp, ctx)) in test_div_recip() 318 BN_RECP_CTX_free(recp); in test_div_recip()
|
Completed in 23 milliseconds