[android-developers] Re: BouncyCastle code in dalvik/libcore
2009/7/16 Urs Grob > > Someone who needs algorithms from BC would have to include it with the > app. I guess this would fail right now. This makes it much harder to > use BC stuff that has been dropped in the current BC version included > in the core libs. Dropping BC from the core libs would fix this > problem. > I'm trying to get OpenPGP support into K-9, I agree that the BC code is bloated and would love an alternate option but short of porting GnuPG or similar I don't see any other options at the moment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
I think at some point the plan was to throw BC out and implement all the crypto stuff using OpenSSL which is also on the device and should be faster than the pure java impls in BC. (this might still be the plan, not sure though) Also BC is huge and was already reduced in size by throwing out many algorithms due to space restrictions. (Can be seen in the BouncyCastleProvider that should register all the algorithms) http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=libcore/security/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java;hb=HEAD I don't think this crippled BC will be part of the api. Someone who needs algorithms from BC would have to include it with the app. I guess this would fail right now. This makes it much harder to use BC stuff that has been dropped in the current BC version included in the core libs. Dropping BC from the core libs would fix this problem. -- Urs On Thu, Jul 16, 2009 at 12:58 PM, John Smith wrote: > > > 2009/7/16 Mark Murphy >> >> John Smith wrote: >> > re-add bouncy castle to SDK? >> >> By which I mean having all the classes be public, documenting the >> version number, including them in the SDK documentation, etc. I haven't >> used Bouncy Castle in years, but I seem to recall it offered more than >> just the provider interface. I could be mistaken. > > The problem with the current state things are in, it's difficult if not > impossible to use the libs from their site without a lot of effort, and I'm > sure it's not ideal to use the old code due to bugs and what not so things > are really in a state of disrepair for trying to use additional BC > functionality. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
2009/7/16 Mark Murphy > > John Smith wrote: > > re-add bouncy castle to SDK? > > By which I mean having all the classes be public, documenting the > version number, including them in the SDK documentation, etc. I haven't > used Bouncy Castle in years, but I seem to recall it offered more than > just the provider interface. I could be mistaken. The problem with the current state things are in, it's difficult if not impossible to use the libs from their site without a lot of effort, and I'm sure it's not ideal to use the old code due to bugs and what not so things are really in a state of disrepair for trying to use additional BC functionality. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
John Smith wrote: > re-add bouncy castle to SDK? By which I mean having all the classes be public, documenting the version number, including them in the SDK documentation, etc. I haven't used Bouncy Castle in years, but I seem to recall it offered more than just the provider interface. I could be mistaken. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
2009/7/16 Mark Murphy > > This list is for the SDK. While it sure would be nice if they would > re-add Bouncy Castle to the SDK, it's not there now... > re-add bouncy castle to SDK? I'm looking at 1.5 code and some bc code is deff in there, mostly to do with ssl/tls/smime but no JCE or OpenPGP. $ ls /usr/src/android/dalvik/libcore/security/src/main/java/org/bouncycastle/ asn1 crypto i18n jce openssl util x509 Running this line of code: System.out.println(""+Security.getProvider("BC").getVersion()); Spits out 1.34 on Android 1.5... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
John Smith wrote: > Thanks to the help from David of the bouncycastle dev list I found out > the bc libs version is 1.34, which is now over 3 years old, is a > slightly newer version likely to be put into newer SDKs? That's probably a better question to ask of the Android open source project: http://source.android.com/discuss This list is for the SDK. While it sure would be nice if they would re-add Bouncy Castle to the SDK, it's not there now... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BouncyCastle code in dalvik/libcore
Thanks to the help from David of the bouncycastle dev list I found out the bc libs version is 1.34, which is now over 3 years old, is a slightly newer version likely to be put into newer SDKs? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---