Android的缓慢AES解密 [英] Android slow AES decryption

查看:196
本文介绍了Android的缓慢AES解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考: Android的加密/解密的问题(AES)

我建立一个Android应用程序,需要一个真正的大包AES解密(〜50 MB),它是真正的Andr​​oid的内置AES加密机制来实现(约5分钟)时慢。

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).

根据在SO上述文章中,我尝试使用NDK,并试图下载本机库(OpenSSL的),使用这个应用程序。不过,OpenSSL的为Android有一个非常大量的文件,我不知道该用哪些创建.so文件。

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.

我很缺乏经验与使用NDK和本地code的Andr​​oid应用程序,并会发现如何使用OpenSSL库的AES解密真正有用的。

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.

在此先感谢, 纳文

推荐答案

尝试 SpongyCastle 了一个重新包装BouncyCastle的是惯于与一个发布采用Android冲突。一个在Android系统是旧的(如果你甚至有机器人,包括它的释放)。

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.

这篇关于Android的缓慢AES解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆