BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-07-2006, 05:42 PM   #1
mmarat
Knows Where the Search Button Is
 
Join Date: Sep 2006
Model: 8700r
Carrier: Rogers
Posts: 22
Question Bouncycastle Security issue (Third party restriction on BlackBerry)

Please Login to Remove!

Hi,

I have an issue using Bouncycastle bouncycastle.org J2ME package for BB's (My Development environment is "NetBeans Mobility" - MIDP 2.0)

This is a only ONE existing unique package for J2ME MIDP used for securities encription\decription etc.

Since this packge consist of java/io/FilterInputStream.class ,java/io/FilterOutputStream.class,
java/math/BigInteger.class and java/security/SecureRandom.class which are
part of JDK .. BlackBerry throws a verification error ...

The BlackBerry handheld software enforced a restriction on third party applications where their package names can not contain any combination of the strings that were provided in the knowledge base article.

blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800451/800783/Support_-_Restricted_Package_Names.html?nodeid=817434&vernu m=0]Livelink - Redirection

This is a system check that occurs when an application is loaded/ran. This check does not occur on simulators that are not running in secure mode hence the reason why this sometimes runs through the BlackBerry handheld simulator. To resolve this issue, these classes must be moved to another package that does not contain any restriction.

Even after using "High" level of "Proguard" obfuscator (default for "Netbeans Mobility" 7.2) High obfuscation process BB can find out that it's still there ...
BlackBerry devices and simulators throws verification error.
and in the process of convertion to COD file (app. file for BB's) I have a few warnings like this one :


ae: Warning!: Duplicate method only differs by return type: a
ae: Warning!: Duplicate method only differs by return type: a
Parsing classfile: af.class


My understanding that overriding of JDK classes was checked on this level too (as far as I know any implementation should not override JDK classes )

Specifically, the import jar file, "cldc_classes.zip", is causing this
error message as four class files that are being imported use the java
package:

java/io/FilterInputStream.class
java/io/FilterOutputStream.class
java/math/BigInteger.class
java/security/SecureRandom.class
These class definitions much be moved to a different package (not
using the restricted package names) in order to function properly.

I double checked this - the below indicates that high obfuscation should
work on cellphones , but not on BB devices :

discussion.forum.nokia.com/forum/showthread.php?t=90558]Problem: Java.Security.SecureRandom does not exists - Developer Discussion Boards

The posting is only a month old.

This is an answer I've got from bouncycastle support
(feedback-crypto@bouncycastle.org) :

>These classes are necessary to fully support the lightweight API
>(without creating a duplicate source tree). The idea is to use an
>obfuscator after building the app to change the names of these before
>attempting to load it into a device.

Does anybody have a similar problem ???
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



Altair2X Co Instrument CO Gas Detector picture

Altair2X Co Instrument CO Gas Detector

$399.99



NEW MSA Altair 4XR Multigas Detector Open Box picture

NEW MSA Altair 4XR Multigas Detector Open Box

$579.99



MSA ALTAIR 4X Multigas Detector (LEL, O2, Co, H2S) W/ Pelican Case picture

MSA ALTAIR 4X Multigas Detector (LEL, O2, Co, H2S) W/ Pelican Case

$249.95



MSA 10074137 Oxygen Altair Pro Single Gas Detector (O2) picture

MSA 10074137 Oxygen Altair Pro Single Gas Detector (O2)

$150.00



MSA Altair 5X Replacement MSA Sensor MSA  NH3 Ammonia Surplus #10106726 picture

MSA Altair 5X Replacement MSA Sensor MSA NH3 Ammonia Surplus #10106726

$299.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.