Lines Matching defs:cofactor
186 group = ECGroup_consGFp(&irreducible, &a, &b, &Gx, &Gy, &order, params->cofactor);
194 group = ECGroup_consGF2m(&irreducible, irr_arr, &a, &b, &Gx, &Gy, &order, params->cofactor);
310 key->ecParams.cofactor = ecParams->cofactor;
475 * X9.62. The ECDH primitive when used without the cofactor does
560 ** cofactor) and returns the x-coordinate of the resulting elliptic
579 mp_int cofactor;
605 if (withCofactor && (ecParams->cofactor != 1)) {
606 /* multiply k with the cofactor */
607 MP_DIGITS(&cofactor) = 0;
608 CHECK_MPI_OK( mp_init(&cofactor, kmflag) );
609 mp_set(&cofactor, ecParams->cofactor);
610 CHECK_MPI_OK( mp_mul(&k, &cofactor, &k) );