Home
last modified time | relevance | path

Searched refs:bnB (Results 1 – 3 of 3) sorted by relevance

/external/tpm2/
DRSAKeySieve.c238 BIGNUM *bnB; in MillerRabin() local
251 bnB = BN_CTX_get(context); in MillerRabin()
278 if(BN_bin2bn(b.t.buffer, b.t.size, bnB) == NULL) in MillerRabin()
281 if(BN_is_zero(bnB)) in MillerRabin()
283 if(BN_is_one(bnB)) in MillerRabin()
285 if(BN_ucmp(bnB, bnWm1) >= 0) in MillerRabin()
288 if(BN_mod_exp(bnZ, bnB, bnM, bnW, context) != 1) in MillerRabin()
DMathFunctions.c220 BIGNUM *bnB; in _math__Mul() local
236 bnB = BN_CTX_get(context); in _math__Mul()
242 if (BN_bin2bn(a, aSize, bnA) == NULL || BN_bin2bn(b, bSize, bnB) == NULL) in _math__Mul()
246 if (BN_mul(bnP, bnA, bnB, context) != 1) in _math__Mul()
DCpriECC.c153 BIGNUM *bnB; in EccCurveInit() local
167 bnB = BN_CTX_get(context); in EccCurveInit()
177 BnFrom2B(bnB, curveData->b); in EccCurveInit()
184 ok = ( (group = EC_GROUP_new_curve_GFp(bnP, bnA, bnB, groupContext)) != NULL in EccCurveInit()
272 BIGNUM *bnB, // IN: scalar for [B]P in PointMul() argument
276 if(EC_POINT_mul(group, ecpQ, bnA, ecpP, bnB, context) != 1) in PointMul()
599 BIGNUM *bnB; in _cpri__EccIsPointOnCurve() local
611 bnB = BN_CTX_get(context); in _cpri__EccIsPointOnCurve()
622 || !BN_bin2bn(curveData->b->buffer, curveData->b->size, bnB) in _cpri__EccIsPointOnCurve()
631 || !BN_mod_add(bnA, bnA, bnB, bnP, context) in _cpri__EccIsPointOnCurve()
[all …]