RSA Or ECC Library

If you are interested in doing some security for Arduino boards like the mega using RSA and ECC, you would find these links to be very useful. I also used these during my research:

http://www.researchgate.net/profile/Mohit_Sethi/publication/261334004_End-to-end_Security_for_Sleepy_Smart_Object_Networks/links/00b49533e6c566943b000000.pdf

http://www.diva-portal.org/smash/get/diva2:563280/FULLTEXT02

This library is also useful:
https://code.google.com/p/relic-toolkit/