Lines Matching defs:dest
75 int ossl_ec_GF2m_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src)
77 if (!BN_copy(dest->field, src->field))
79 if (!BN_copy(dest->a, src->a))
81 if (!BN_copy(dest->b, src->b))
83 dest->poly[0] = src->poly[0];
84 dest->poly[1] = src->poly[1];
85 dest->poly[2] = src->poly[2];
86 dest->poly[3] = src->poly[3];
87 dest->poly[4] = src->poly[4];
88 dest->poly[5] = src->poly[5];
89 if (bn_wexpand(dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) ==
92 if (bn_wexpand(dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) ==
95 bn_set_all_zero(dest->a);
96 bn_set_all_zero(dest->b);
255 * Copy the contents of one EC_POINT into another. Assumes dest is
258 int ossl_ec_GF2m_simple_point_copy(EC_POINT *dest, const EC_POINT *src)
260 if (!BN_copy(dest->X, src->X))
262 if (!BN_copy(dest->Y, src->Y))
264 if (!BN_copy(dest->Z, src->Z))
266 dest->Z_is_one = src->Z_is_one;
267 dest->curve_name = src->curve_name;