Android slow AES extension

Link: Android Encryption / Decryption Problem (AES)

I am creating an Android application that needs to decrypt a really large package (~ 50 MB), and it is very slow when it is implemented in the aes decryption engine built into android (about 5 minutes).

Based on the above posts in SO, I tried using ndk and tried to load my own libraries (openssl) for use in this application. However, openssl for android has a really large number of files, and I don’t know which ones to use to create the .so file.

I am pretty inexperienced with using ndk and native code in Android apps and find any suggestions / code examples on how to use the openssl library to decrypt aes is really useful.

Thanks in advance, Naveen

+2
source share
2 answers

Try SpongyCastle for its repackaged BouncyCastle, which will not conflict with the release from Android. The one that is deprecated on Android systems (if you even have an Android release that includes it).

That should be all you need.

+1
source

I ran into the same problem as Naveen.

. . , : http://www.coderanch.com/t/134504/Security/Bouncy-Castle-vs-Sun-JCE , . spongycastle.bouncycastle, , , sun jce crypto .

0

Source: https://habr.com/ru/post/1547765/


All Articles