bn_wexpand(&dest->a, (dest->poly[0] + BN_BITS2 - 1) / BN_BITS2); bn_wexpand(&dest->b, (dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);
bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2); bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);
int ec_GF2m_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src)	{	int i;	if (!BN_copy(&dest->field, &src->field)) return 0;	if (!BN_copy(&dest->a, &src->a)) return 0;	if (!BN_copy(&dest->b, &src->b)) return 0;	dest->poly[0] = src->poly[0];	dest->poly[1] = src->poly[1];	dest->poly[2] = src->poly[2];	dest->poly[3] = src->poly[3];	dest->poly[4] = src->poly[4];	bn_wexpand(&dest->a, (dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);	bn_wexpand(&dest->b, (dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);	for (i = dest->a.top; i < dest->a.dmax; i++) dest->a.d[i] = 0;	for (i = dest->b.top; i < dest->b.dmax; i++) dest->b.d[i] = 0;	return 1;	}