I have been Google-ing and researching for an answer on how to do a simple RSA encryption using Cbjective-C on an iPhone. The main problem I have is that I have been supplied the Exponent and Modulus as an NSData object and i need to then convert them to a SecKeyRef object in order to perform the RSA encryption.
Does anyone have any idea how to do that or have any useful hints?
Many thanks!
I ended up using OpenSSL in my project. and import the keys and encrypt using that library instead of the iPhone ones.