我可以使用在Android最新的BouncyCastle的供应商?可以使用、供应商、最新、Android

2023-09-05 00:52:52 作者:丿老衲灬法号乱来

我写了Android 1.6的应用程序。 谁能告诉我,如果可以使用,而不是旧的包含在最新的SDK充气城堡提供商(1.46版本)? 如果是的话,正确的说明将AP preciated。

I am writing the app for Android 1.6. Can anyone tell me if it is possible to use latest Bouncy Castle provider (version 1.46) instead of old one contained in SDK? If so, correct instructions will be appreciated.

推荐答案

找到的问题对谷歌和 SpongyCastle 。 之后,我加入罐,并呼吁addProvider(),应用程序变大,但是可以使用BC 1.46功能,如惠而浦消化。

Found the issue on google and SpongyCastle. After I added jar and called addProvider(), the app became bigger but could use BC 1.46 features like "Whirlpool" digest.

... Android平台不幸的是采用了充气城堡,这也使得安装困难库的更新版本,由于类加载器冲突的一个简化版本。

...the Android platform unfortunately incorporates a cut-down version of Bouncy Castle, which also makes installing an updated version of the libraries difficult due to classloader conflicts.

如果您真的需要在你的Andr​​oid应用程序的完整版本,充气城堡库中,你会发现它方便地使用海绵城堡 - 充气城堡的Andr​​oid的一个重新包装:

If you really need the full version of the Bouncy Castle libraries in your Android app, you may find it convenient to use Spongy Castle - a repackage of Bouncy Castle for Android: