Wrox Programmer Forums
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2011, 10:48 AM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Cryptography and Android

I started to port a light version of my Encryption application, DocuArmor, from the Windows 7 platform to the Android platform (minimum API 7). I've been able to load an existing PKCS12 keystore, encrypt and decrypt files on their emulator for API level 7 and above. I'm trying to determine if it's capable of allowing the creation of a keystore and it seems to fail on the creation of a certificate. It appears there are classes missing in their Java support. I receive an exception during the initialization of the BCStyle class or the PKCSObjectIdentifiers class with a java.lang.NoSuchFieldError. Is there any document that states what level of Bouncy Castle (BC) libraries are compatible with Android? I'm currently using BC ver 1.46. It appears that even though Android offers BC as a provider, it trimmed off some of the functions such as Certificate generation and manipulation. Is there any information on what functions are available under Android? Thanks.
 
Old April 11th, 2011, 06:34 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Sorry, no idea on this one. I have heard that Android has recently updated to 1.45 so I can imagine there would be issues with 1.46. This is really a question best asked to someone at Google.

Regards,

David
 
Old April 12th, 2011, 09:10 PM
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

David,
I've browsed the threads on Google and unfortunately, they don't offer alot of details.

However, I was able to access the BouncyCastle provider under the emulator and execute the getInfo() method to print out the version. The results were Android ver 2.2 (API level 8) and below use BouncyCastle library 1.34. Android 2.3.1 (API Level 9) and above use BouncyCastle library 1.45.

I downgraded our DocuArmor suite from BouncyCastle ver 1.46 to 1.45 in order to be compatible with our phone application. Thanks for the tip about BC 1.45 being on one of the Android versions.

Jim





Similar Threads
Thread Thread Starter Forum Replies Last Post
Android SDK/Android.bat does not find SWT.jar file chaoticandroid BOOK: Professional Android 2 Application Development 1 March 23rd, 2011 06:39 PM
encryption using private key is possible in Elliptic curve cryptography nivsri BOOK: Beginning Cryptography with Java 2 December 28th, 2010 08:14 AM
i am new to android janardhan BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 July 29th, 2010 03:37 PM
[Cryptography]Challenges with Large integer using C/C++ phuc_tran C++ Programming 0 April 7th, 2010 11:10 PM
Cryptography project mannuvashishta .NET Framework 1.x 0 January 10th, 2007 06:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.