Objective-C库在CTR模式下推荐AES-256 [英] Objective-C library recommendation for AES-256 in CTR mode

查看:278
本文介绍了Objective-C库在CTR模式下推荐AES-256的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CTR模式下,我正在寻找一个Objective-C库中的AES-256加密建议。我拥有一个数据库,该数据库使用另一个使用CTR 的图书馆加密数据,似乎包含CCCrypt只支持使用PKCS#7的ECB或CBC。



我应该使用最好的便携式库的任何想法?我不希望将原始的实现移植到我的密码学中,因此,这是一个坏主意(tm)。



谢谢!

解决方案

您应该可以使用OpenSSL实现。它不是Objective C,而是简单的C代码,但是由于iPhone中内置的加密算法也依赖于C,所以这个希望不会有这么大的区别。



有一个关于稀有AiR,您可以如何编译用于iPhone的OpenSSL库。



希望这有帮助,
Claus


I'm looking for recommendations on an Objective-C library for AES-256 encryption in CTR mode. I have a database full of data encrypted with another library using CTR and seems the included CCCrypt only supports ECB or CBC with PKCS#7.

Any idea on the best portable library I should use? I'm not looking to port the original implementation as I don't have the required knowledge in cryptography and hence, that's-a-bad-idea (tm).

Thanks!

解决方案

You should be able to implement this using OpenSSL. It is not Objective C, but rather "plain" C code, but since the built-in encryption algorithms in the iPhone also rely on plain C, this should hopefully not make that big a difference.

There is a tutorial on The Rare AiR on how you can compile the OpenSSL library for iPhone.

Hope this helps, Claus

这篇关于Objective-C库在CTR模式下推荐AES-256的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆