Lines Matching refs:bnA
152 BIGNUM *bnA; in EccCurveInit() local
166 bnA = BN_CTX_get(context); in EccCurveInit()
176 BnFrom2B(bnA, curveData->a); in EccCurveInit()
184 ok = ( (group = EC_GROUP_new_curve_GFp(bnP, bnA, bnB, groupContext)) != NULL in EccCurveInit()
270 BIGNUM *bnA, // IN: scalar for [A]G in PointMul() argument
276 if(EC_POINT_mul(group, ecpQ, bnA, ecpP, bnB, context) != 1) in PointMul()
598 BIGNUM *bnA; in _cpri__EccIsPointOnCurve() local
610 bnA = BN_CTX_get(context); in _cpri__EccIsPointOnCurve()
620 || !BN_bin2bn(curveData->a->buffer, curveData->a->size, bnA) in _cpri__EccIsPointOnCurve()
628 if( !BN_mod_mul(bnA, bnA, bnX, bnP, context) in _cpri__EccIsPointOnCurve()
631 || !BN_mod_add(bnA, bnA, bnB, bnP, context) in _cpri__EccIsPointOnCurve()
635 || !BN_mod_add(bnX, bnX, bnA, bnP, context) in _cpri__EccIsPointOnCurve()
1195 BIGNUM *bnA; in cmp_2B2hex() local
1199 pAssert((bnA = BN_bin2bn(a->buffer, a->size, NULL)) != NULL); in cmp_2B2hex()
1200 result = cmp_bn2hex(bnA, c); in cmp_2B2hex()
1201 BN_free(bnA); in cmp_2B2hex()