iPhone 是否支持硬件加速的 AES 加密? [英] Does iPhone support hardware-accelerated AES Encryption?
问题描述
我可以在 iPhone/iPad 上找到对硬件加速 AES 加密"的引用.但是我可以找到执行 AES 加密的 API (CCCrypt) 根本不谈硬件加速.
I could find references to "hardware-accelerated AES encryption" on an iPhone/iPad. But the APIs that I could find to do the AES encryption (CCCrypt) don't talk about hardware-acceleration at all.
有谁知道这些 API 是硬件加速的 API 还是其他 API?
Does anyone have any idea if these APIs are the ones that are hardware-accelerated or are there other ones?
推荐答案
是的.
从 4.3 开始,如果消息具有 >64 个块(即 1024 字节),则 AES 的 CCCrypt 函数将使用硬件加速实现.(这是通过 ioctl
与 /dev/aes_0
一起完成的,顺便说一句.)
As of 4.3, if the message has >64 blocks (i.e. 1024 bytes), the CCCrypt function for AES will use the hardware-accelerated implementation. (This is done by ioctl
ing with /dev/aes_0
, BTW.)
除了 AES,当输入大于 4096 字节时,SHA-1 也是硬件加速的.
Besides AES, SHA-1 is also hardware-accelerated when the input is > 4096 bytes.
这篇关于iPhone 是否支持硬件加速的 AES 加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!