kc3-lang/libtommath/bn_mp_init_copy.c

Branch :


Log

Author Commit Date CI Message
76fe0008 2013-05-19 20:04:26 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.
333aebc8 2007-04-18 09:58:18 added libtommath-0.41
f0b91a57 2006-04-06 19:49:59 added libtommath-0.39
9294e791 2005-08-01 16:37:28 added libtommath-0.36
e549ccfe 2004-10-29 22:07:18 added libtommath-0.32
455bb4db 2003-12-24 18:59:22 added libtommath-0.28
c1da6aa2 2003-08-05 01:24:44 added libtommath-0.25
82f48582 2003-03-13 02:11:11 added libtommath-0.14
b66471f7 2003-02-28 16:09:08 added libtommath-0.13
57354e11 2003-02-28 16:08:34 added libtommath-0.12