There would have been a call to mp_clear_multi() of all the key parameters that are not yet allocated, in the case where the calculations of p, q, tmp1 or tmp2 created an error. This also includes a proposed improvement from the OLPC project to free elements in the reverse order as they were allocated.
libtomcrypt
See doc/crypt.pdf for a detailed documentation
Project Status
Submitting patches
Please branch off from develop if you want to submit a patch.
Branches
Please be aware, that all branches besides master and develop can and will be force-pushed, rebased and/or removed!
If you want to rely on such an unstable branch, create your own fork of this repository to make sure nothing breaks for you.
Languages
C
98.2%
Makefile
0.7%
Perl
0.4%
Shell
0.3%
Java
0.2%
Other
0.1%