nmav at gnutls.org
Tue Jun 22 23:09:19 CEST 2010
Werner Koch wrote:
> On Tue, 22 Jun 2010 18:30, nmav at gnutls.org said:
>> gcry_mpi_t w = gcry_mpi_new(gcry_mpi_get_nbits(a)+gcry_mpi_get_nbits(b));
>> if (w==NULL) return -ENOMEM;
> (If a malloc fails ERRNO will be set; please don't use your own idea of
> an error code).
I don't understand. This is the linux kernel's idea of error code, and
this I had in mind when writing the example (there is already a port of
gcrypt mpi for linux kernel).
More information about the gmp-devel