Lines Matching refs:dest
166 int ec_GF2m_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src)
169 if (!BN_copy(&dest->field, &src->field)) return 0;
170 if (!BN_copy(&dest->a, &src->a)) return 0;
171 if (!BN_copy(&dest->b, &src->b)) return 0;
172 dest->poly[0] = src->poly[0];
173 dest->poly[1] = src->poly[1];
174 dest->poly[2] = src->poly[2];
175 dest->poly[3] = src->poly[3];
176 dest->poly[4] = src->poly[4];
177 bn_wexpand(&dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);
178 bn_wexpand(&dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2);
179 for (i = dest->a.top; i < dest->a.dmax; i++) dest->a.d[i] = 0;
180 for (i = dest->b.top; i < dest->b.dmax; i++) dest->b.d[i] = 0;
320 /* Copy the contents of one EC_POINT into another. Assumes dest is initialized. */
321 int ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src)
323 if (!BN_copy(&dest->X, &src->X)) return 0;
324 if (!BN_copy(&dest->Y, &src->Y)) return 0;
325 if (!BN_copy(&dest->Z, &src->Z)) return 0;
326 dest->Z_is_one = src->Z_is_one;