开发者

RSA and xml-formatted public key in cocoa

How can I fill RSA structure with xml-formatted public key for using with RSA functions on Mac OS X. In other words: There are following windows c# statements:

 RSACryptoServiceProvider rSA = new RSAC开发者_C百科ryptoServiceProvider();
 rSA.FromXmlString(xmlKey);
 return rSA.VerifyData(Encoding.UTF8.GetBytes(message), "MD5", signature);

how can I convert it to use with cocoa frameworks.

Thanks, Vlad


I have found the solution to the problem. First I convert XML-formatted RSA key to pem-format. Second I use SSCrypto framework to verify data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜