Home
last modified time | relevance | path

Searched refs:recp (Results 1 – 7 of 7) sorted by relevance

/external/openssl/crypto/bn/
Dbn_recp.c63 void BN_RECP_CTX_init(BN_RECP_CTX *recp) in BN_RECP_CTX_init() argument
65 BN_init(&(recp->N)); in BN_RECP_CTX_init()
66 BN_init(&(recp->Nr)); in BN_RECP_CTX_init()
67 recp->num_bits=0; in BN_RECP_CTX_init()
68 recp->flags=0; in BN_RECP_CTX_init()
83 void BN_RECP_CTX_free(BN_RECP_CTX *recp) in BN_RECP_CTX_free() argument
85 if(recp == NULL) in BN_RECP_CTX_free()
88 BN_free(&(recp->N)); in BN_RECP_CTX_free()
89 BN_free(&(recp->Nr)); in BN_RECP_CTX_free()
90 if (recp->flags & BN_FLG_MALLOCED) in BN_RECP_CTX_free()
[all …]
Ddivtest.c25 BN_RECP_CTX *recp=BN_RECP_CTX_new(); in main() local
33 BN_RECP_CTX_set(recp,b,ctx); in main()
36 if (BN_div_recp(c,d,a,recp,ctx) != 1) in main()
Dbn_exp.c259 BN_RECP_CTX recp; in BN_mod_exp_recp() local
281 BN_RECP_CTX_init(&recp); in BN_mod_exp_recp()
287 if (BN_RECP_CTX_set(&recp,aa,ctx) <= 0) goto err; in BN_mod_exp_recp()
291 if (BN_RECP_CTX_set(&recp,m,ctx) <= 0) goto err; in BN_mod_exp_recp()
305 if (!BN_mod_mul_reciprocal(aa,val[0],val[0],&recp,ctx)) in BN_mod_exp_recp()
312 aa,&recp,ctx)) in BN_mod_exp_recp()
331 if (!BN_mod_mul_reciprocal(r,r,r,&recp,ctx)) in BN_mod_exp_recp()
361 if (!BN_mod_mul_reciprocal(r,r,r,&recp,ctx)) in BN_mod_exp_recp()
366 if (!BN_mod_mul_reciprocal(r,r,val[wvalue>>1],&recp,ctx)) in BN_mod_exp_recp()
378 BN_RECP_CTX_free(&recp); in BN_mod_exp_recp()
Dbn.h617 void BN_RECP_CTX_init(BN_RECP_CTX *recp);
619 void BN_RECP_CTX_free(BN_RECP_CTX *recp);
620 int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
622 BN_RECP_CTX *recp,BN_CTX *ctx);
626 BN_RECP_CTX *recp, BN_CTX *ctx);
Dbntest.c551 BN_RECP_CTX recp; in test_div_recp() local
554 BN_RECP_CTX_init(&recp); in test_div_recp()
574 BN_RECP_CTX_set(&recp,&b,ctx); in test_div_recp()
575 BN_div_recp(&d,&c,&a,&recp,ctx); in test_div_recp()
617 BN_RECP_CTX_free(&recp); in test_div_recp()
/external/chromium_org/third_party/boringssl/src/crypto/bn/
Dexponentiation.c195 static void BN_RECP_CTX_init(BN_RECP_CTX *recp) { in BN_RECP_CTX_init() argument
196 BN_init(&recp->N); in BN_RECP_CTX_init()
197 BN_init(&recp->Nr); in BN_RECP_CTX_init()
198 recp->num_bits = 0; in BN_RECP_CTX_init()
199 recp->flags = 0; in BN_RECP_CTX_init()
202 static void BN_RECP_CTX_free(BN_RECP_CTX *recp) { in BN_RECP_CTX_free() argument
203 if (recp == NULL) { in BN_RECP_CTX_free()
207 BN_free(&recp->N); in BN_RECP_CTX_free()
208 BN_free(&recp->Nr); in BN_RECP_CTX_free()
211 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) { in BN_RECP_CTX_set() argument
[all …]
/external/openssl/include/openssl/
Dbn.h617 void BN_RECP_CTX_init(BN_RECP_CTX *recp);
619 void BN_RECP_CTX_free(BN_RECP_CTX *recp);
620 int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
622 BN_RECP_CTX *recp,BN_CTX *ctx);
626 BN_RECP_CTX *recp, BN_CTX *ctx);