Slow AES decryption in Android

前端 未结 2 1437
清酒与你
清酒与你 2020-12-14 05:11

I tried to decrypt a 4.2 MB .dcf file using AES 128 bit key, but it took 33 seconds to decrypt (on function cipher.doFinal(data)), is it normal ?

Here is a code snip

2条回答
  •  生来不讨喜
    2020-12-14 05:29

    AFAIK, there's no way to get access to the ARM chip's AES encryption/decryption hardware via the Android APIs :-(

    This is a huge oversight on Google's part unfortunately...makes using AES on other platforms a LOT faster....

提交回复
热议问题