Commit Graph

10 Commits

Author SHA1 Message Date
ramkumarkoppu
76fe0008a2 Update bn_mp_init_copy.c
In mp_init_copy(), mp_init() is used to assign the memory with default block size, mp_copy() is used to grow the target mp_int size if it is required and copy the content.

My suggestion is to use mp_init_size() instead of mp_init() inside the mp_init_copy to assign required memory depending on the source mp_int size and then use mp_copy to copy the content. This will avoid the subsequent mp_grow() inside the mp_copy(). 

The associated issue number is 11 in GitHub.
2013-11-24 15:28:50 +01:00
Tom St Denis
333aebc894 added libtommath-0.41 2010-07-15 17:26:06 +02:00
Tom St Denis
f0b91a572e added libtommath-0.39 2010-07-15 17:26:01 +02:00
Tom St Denis
9294e79150 added libtommath-0.36 2010-07-15 17:25:56 +02:00
Tom St Denis
e549ccfec5 added libtommath-0.32 2010-07-15 17:25:47 +02:00
Tom St Denis
455bb4db20 added libtommath-0.28 2010-07-15 17:25:39 +02:00
Tom St Denis
c1da6aa2de added libtommath-0.25 2010-07-15 17:25:33 +02:00
Tom St Denis
82f4858291 added libtommath-0.14 2010-07-15 17:25:17 +02:00
Tom St Denis
b66471f74f added libtommath-0.13 2010-07-15 17:25:15 +02:00
Tom St Denis
57354e11ac added libtommath-0.12 2010-07-15 17:25:14 +02:00