Ok so basically i have a WCF service which provides the IOS application with a public key, i want to encrypt data with the public key and send it to the WCF service.
On the C# wcf service i use RSACryptoServiceProvider
and at the moment i export to a CspBlob byte array. but i guess i would need to use xml export.
So thats fine, i need to somehow create a SecKeyRef
to encrypt the data on IOS.
Iv tried looking for a working solution but all i can find is this library and it cost a lot of money just to encrypt some data. I also found this but i cant get it to work. And there is a failed attempt over here using this.
Can someone help me encrypt data with RSA public key encryption on IOS. It needs to be able to decrypt on C#.