Export to GitHub

jscep - issue #43

Compatibility with Android-included bouncy castle


Posted on May 13, 2011 by Grumpy Ox

This is a feature request for Android-included Bouncy Castle compatibility. The goal of this feature is for the jSCEP client to work on an Android device/emulator without having to include a separate bundled version of BC. The compiled BC 1.45 source is > 2MB and therefore bloats the size of any Android APK that uses jSCEP. Additionally, conflicting package names requires that jSCEP source is modified to achieve this, which is not desirable.

Android 1.6-2.2 includes a modified BC version 1.34. Android 2.3+ includes (a presumably modified) BC version 1.45. It might make sense to target Android 2.3+ only, since jSCEP 1.1.4 depends on BC version 1.45 already. If dependency on some BC source is still required, a jar with only the complimentary classes would be nice to have.

The Android BC source is available here: http://android.git.kernel.org/?p=platform/external/bouncycastle.git

Comment #1

Posted on May 13, 2011 by Happy Giraffe

I also believe it makes sense to target Android 2.3 only.

Comment #2

Posted on May 13, 2011 by Happy Giraffe

(No comment was entered for this change.)

Comment #3

Posted on May 13, 2011 by Happy Giraffe

(No comment was entered for this change.)

Comment #4

Posted on Jul 13, 2011 by Happy Dog

(No comment was entered for this change.)

Comment #5

Posted on Jul 13, 2011 by Happy Dog

(No comment was entered for this change.)

Comment #6

Posted on Aug 19, 2011 by Quick Camel

Folks, Any one has tries jscep 1.2 on Android 2.3.3?

Comment #7

Posted on Aug 23, 2011 by Happy Dog

(No comment was entered for this change.)

Comment #8

Posted on Mar 29, 2012 by Happy Dog

(No comment was entered for this change.)

Comment #9

Posted on May 25, 2012 by Massive Panda

I am trying jscep on android, getting the following error:

DES key too long - should be 8 bytes at org.jscep.message.PkcsPkiEnvelopeDecoder.decode(PkcsPkiEnvelopeDecoder.java:94) at org.jscep.message.PkiMessageDecoder.decode(PkiMessageDecoder.java:105) at org.jscep.transaction.EnrolmentTransaction.send(EnrolmentTransaction.java:85)

Any suggestions?

Comment #10

Posted on May 28, 2012 by Happy Dog

Re comment 9, can you open a new issue please?

Comment #11

Posted on Jun 26, 2012 by Happy Dog

The Android-supplied version of BC is missing quite a lot of the files we need. Have you looked at http://rtyley.github.com/spongycastle/?

Status: WontFix

Labels:
Type-Defect Priority-Medium Component-API