Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Ref: Android encryption/decryption issue (AES)

I am building an android app which requires aes decryption of a really large package (~50Mb) and it is really slow when implemented in android's inbuilt aes decryption mechanism (around 5 minutes).

Based on the above posts in SO, I attempted to use ndk and tried to download native libraries (openssl) to use for this app. However, openssl for android has a really large number of files and I do not know which ones to use to create the .so file.

I am quite inexperienced with the use of ndk and native code in android apps and would find any suggestions/sample code on how to use openssl library for aes decryption really useful.

Thanks in advance, Naveen

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.4k views
Welcome To Ask or Share your Answers For Others

1 Answer

Try SpongyCastle its a repackaged BouncyCastle that wont conflict with the one released with Android. The one on Android systems is old (if you even have a release of Android that includes it).

This should be all you need.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...