How to Create SeckeyRef from exponent and modulus of Public key and use in SecKeyEncrypt method
Anyone please help in Creating SecKeyRef from Exponent and Modulus being my Public exponent = 010001 and Public Modulus = 008903fb6d15f352ed3b45add3216f632f7139954a5631337aba7d645ed38482e3a810b4db26aab4d1df58c147230f0c75631a3dd0554b50de44e79f4fcf205c89fd3f80e0ff8d16c2e9f56ed3ab177953d54c9c30357d04e677cedd9912906ef8a046d7b0185b7f2022a8e435b0c6ecaef93f089fc3aa3f3677550b5d842046c7 and i want to use this SecKeyEncrypt as public key solved the problem NSData *publicTag=[self PublicKeyItems]; in Generating keypair and calling the method try importing BasicEncodingRules.h and .m in your file -