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
gcry_mpi_t _gcry_mpi_ec_ec2os(gcry_mpi_point_t point, mpi_ec_t ectx)
{
    gcry_mpi_t g_x, g_y, result;

    g_x = mpi_new(0);
    g_y = mpi_new(0);
    if (_gcry_mpi_ec_get_affine(g_x, g_y, point, ectx))
        result = NULL;
    else
        result = _gcry_ecc_ec2os(g_x, g_y, ectx->p);
    mpi_free(g_x);
    mpi_free(g_y);

    return result;
}
/* Convert POINT into affine coordinates using the context CTX and
   return a newly allocated MPI.  If the conversion is not possible
   NULL is returned.  This function won't print an error message.  */
Convert POINT into affine coordinates using the context CTX and
return a newly allocated MPI.  If the conversion is not possible
NULL is returned.  This function won't print an error message.
Convert POINT into affine coordinates using the context CTX and return a newly allocated MPI . If the conversion is not possible NULL is returned . This function won ' t print an error message .
gcry_mpi_t _gcry_mpi_ec_ec2os(gcry_mpi_point_t point, mpi_ec_t ectx)
{
    gcry_mpi_t g_x, g_y, result;
    g_x = mpi_new(0);
    g_y = mpi_new(0);
    if (_gcry_mpi_ec_get_affine(g_x, g_y, point, ectx))
        result = NULL;
    else
        result = _gcry_ecc_ec2os(g_x, g_y, ectx->p);
    mpi_free(g_x);
    mpi_free(g_y);
    return result;
}
gcry_mpi_t _gcry_mpi_ec_ec2os ( gcry_mpi_point_t point , mpi_ec_t ectx ) { gcry_mpi_t g_x , g_y , result ; g_x = mpi_new ( 0 ) ; g_y = mpi_new ( 0 ) ; if ( _gcry_mpi_ec_get_affine ( g_x , g_y , point , ectx ) ) result = NULL ; else result = _gcry_ecc_ec2os ( g_x , g_y , ectx -> p ) ; mpi_free ( g_x ) ; mpi_free ( g_y ) ; return result ; }
Convert POINT into affine coordinates using the context CTX and
return a newly allocated MPI.
Convert POINT into affine coordinates using the context CTX and return a newly allocated MPI .