Does iPhone support hardware-accelerated AES Encryption?

前端 未结 3 1169
囚心锁ツ
囚心锁ツ 2020-12-05 18:48

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 har

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 19:20

    Yes.

    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 ioctling with /dev/aes_0, BTW.)

    Besides AES, SHA-1 is also hardware-accelerated when the input is > 4096 bytes.

提交回复
热议问题