Fixed Malloc Bug in RSA