openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libgcrypt/1.8.4-r0/libgcrypt-1.8.4/cipher/ecc-misc.c
elliptic_curve_t _gcry_ecc_curve_copy(elliptic_curve_t E)
{
    elliptic_curve_t R;

    R.model = E.model;
    R.dialect = E.dialect;
    R.name = E.name;
    R.p = mpi_copy(E.p);
    R.a = mpi_copy(E.a);
    R.b = mpi_copy(E.b);
    _gcry_mpi_point_init(&R.G);
    point_set(&R.G, &E.G);
    R.n = mpi_copy(E.n);
    R.h = mpi_copy(E.h);

    return R;
}
/*
 * Return a copy of a curve object.
 */
Return a copy of a curve object.
Return a copy of a curve object .
elliptic_curve_t _gcry_ecc_curve_copy(elliptic_curve_t E)
{
    elliptic_curve_t R;
    R.model = E.model;
    R.dialect = E.dialect;
    R.name = E.name;
    R.p = mpi_copy(E.p);
    R.a = mpi_copy(E.a);
    R.b = mpi_copy(E.b);
    _gcry_mpi_point_init(&R.G);
    point_set(&R.G, &E.G);
    R.n = mpi_copy(E.n);
    R.h = mpi_copy(E.h);
    return R;
}
elliptic_curve_t _gcry_ecc_curve_copy ( elliptic_curve_t E ) { elliptic_curve_t R ; R . model = E . model ; R . dialect = E . dialect ; R . name = E . name ; R . p = mpi_copy ( E . p ) ; R . a = mpi_copy ( E . a ) ; R . b = mpi_copy ( E . b ) ; _gcry_mpi_point_init ( & R . G ) ; point_set ( & R . G , & E . G ) ; R . n = mpi_copy ( E . n ) ; R . h = mpi_copy ( E . h ) ; return R ; }
Return a copy of a curve object.
Return a copy of a curve object .