On Fri, Feb 17, 2012 at 10:30 AM, QD <[email protected]> wrote:
> The spongycastle jar is about 3.9 mg as I downloaded it. I removed the
> java source, it is still as big as 2 mg without adding any additional
> package.  I need to generate X509v3 Certificate which requires the
> cert package. In order to add this package, I have to add CMS,
> Operator, and Jcejca in order to make it compile.

You should only need the x509, asn1 and jce packages for this.

http://www.bouncycastle.org/wiki/display/JA1/X.509+Public+Key+Certificate+and+Certification+Request+Generation

> The cert package
> obviously depends on these three packages.

Nothing is obvious until you provide some code.

> The final jar without java
> source now is 2.5 mg.  Very big.  Does anyone has anyway to make the
> base download smaller?  I need the keypair generator, secretKey
> generator, and certificate generator.  How can I package jar with the
> engines I need?

Just use ProGuard on your app it will strip unused classes and will
greatly reduce the size of your APK.

BTW, this is getting OT for this list, you might get better results
on the BC mailing lists.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to