best way to copy a gcry_mpi_point_t?

Stef Bon stefbon at gmail.com
Mon Jul 24 11:46:26 CEST 2017


2017-07-18 10:00 GMT+02:00 Werner Koch <wk at gnupg.org>:
> On Mon, 20 Jun 2016 01:02, teichm at in.tum.de said:
>
>> since I only see gcry_mpi_copy, but no gcry_mpi_point_copy, what would be the
>> most efficient way to copy a point? Using something like the following seems
>> confusing:
>>
>> gcry_mpi_ec_mul(new, GCRYMPI_CONST_ONE, old, ctx);
>
>
> 1.8 will come with gcry_mpi_point_copy.

Does this also come with other functions like reading mpi_point from buffer?

Stef



More information about the Gcrypt-devel mailing list