Re: Freezing and making available to js the mp_int bignum package API

2011-03-02 Thread Wan-Teh Chang
The inability to allocate mp_int variables on the stack is not as bad as it seems. This is because the 'dp' array inside an mp_int still needs to be allocated from the heap. An mp_new function can allocate the mp_int structure and the 'dp' array in one shot if the number of digits needed is known

Re: Freezing and making available to js the mp_int bignum package API

2011-03-02 Thread Robert Relyea
On 03/01/2011 08:43 AM, Jean-Marc Desperrier wrote: > Robert Relyea wrote: >> About the >> only use I could reasonable see for it would be to support PKCS #11 >> modules. > > The other use would be as an optimized base for a big num > implementation, and that's what the original distribution says :

Re: Freezing and making available to js the mp_int bignum package API

2011-03-01 Thread Jean-Marc Desperrier
Robert Relyea wrote: About the only use I could reasonable see for it would be to support PKCS #11 modules. The other use would be as an optimized base for a big num implementation, and that's what the original distribution says : "ANSI C code library that performs arbitrary precision integer

Re: Freezing and making available to js the mp_int bignum package API

2011-02-28 Thread Robert Relyea
On 02/28/2011 09:03 AM, Jean-Marc Desperrier wrote: > Hi, > > There was some talk last october about accessing the mp_int API from > javascript, and so freezing it in order to make it available as a > frozen API. We currently don't even expose the mpi API for good reason. About the only use I coul

Re: Freezing and making available to js the mp_int bignum package API

2011-02-28 Thread Wan-Teh Chang
On Mon, Feb 28, 2011 at 9:03 AM, Jean-Marc Desperrier wrote: > Hi, > > There was some talk last october about accessing the mp_int API from > javascript, and so freezing it in order to make it available as a frozen > API. > > Nelson concluded that the one difficult point would be to freeze the mpd

Freezing and making available to js the mp_int bignum package API

2011-02-28 Thread Jean-Marc Desperrier
Hi, There was some talk last october about accessing the mp_int API from javascript, and so freezing it in order to make it available as a frozen API. Nelson concluded that the one difficult point would be to freeze the mpdigit structure, since it currently has machine/processor-version dep