Hi, what you need is called an arbitrary precision arithmetic library. Some time ago I coded a prototype of the DSA Digital Signature algorythm using a 16 bit freescale part, I used the MIRACL library at that time,and after some tweaking it worked great. Maybe there is something more specific for embedded processors today, but I dont know.
Elio