Lines Matching refs:cofactor
104 BN_init(&ret->cofactor);
135 BN_free(&group->cofactor);
158 BN_clear_free(&group->cofactor);
220 if (!BN_copy(&dest->cofactor, &src->cofactor)) return 0;
284 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
304 if (cofactor != NULL)
305 { if (!BN_copy(&group->cofactor, cofactor)) return 0; }
307 BN_zero(&group->cofactor);
328 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
330 if (!BN_copy(cofactor, &group->cofactor))
333 return !BN_is_zero(&group->cofactor);
525 /* compare the order and cofactor */