|
Re: how secure is a .tini file ?: msg#00679hardware.microcontrollers.tini
Joel The TINI class file structure is based on the Java class file structure, but it has to be simplified in order to run on an 8-bit micro. Both structures use constant pool entries to tell it what methods to call, fields to set, constants to assign, etc. The Java constant pool entry for a method reference contains something like: Tag: METHOD_REFERENCE Class: "java/lang/Integer" Method: "parseInt(Ljava/lang/String)I" When you want to invoke this method, you do string compares to find the actual class and the method code. On TINI, we use constant length constant pool entries, and transform class, method, and field names into class, method, and field numbers, so our constant pool entry looks more like: Tag: METHOD_REFERENCE Class: 104 Method: 32 The class and method number correspond to what you see listed in the 'tini.db' file. So yes, there is enough information to approximately rebuild a source file (at least the portions that make calls into the API). However, if an application does not include reflection information (default on 1.02x, a TINIConvertor option on 1.1x), you couldn't reverse the names of functions/methods/etc from the application classes. It would be difficult (but not impossible) to discover the parameter types of method arguments in an application that did not include reflection information. In case its on the tip of anyone's tongue...No, we do not have a tool to do this TINI file decompiling. Kris ----- Original Message ----- From: "Joel Winarske" <joelw-RfnZ/IetPaS9TMao6EloiEEOCMrvLtNR@xxxxxxxxxxxxxxxx> To: <TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> Sent: Thursday, June 26, 2003 6:03 PM Subject: [TINI] how secure is a .tini file ? > Since Java classes can easily be decompiled into source, I am interested to > determine how secure a .tini file is. > > Is the conversion done by TiniConverter reversible in any way? > And if so how? > > Joel Winarske > Systems Architect > Independent Electronics > 1073 Fulton Ave > Sunnyvale, CA 94089 > > _______________________________________________ > TINI mailing list > TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx > To UNSUBSCRIBE, edit your profile, or see list archives: > http://lists.dalsemi.com/mailman/listinfo/tini > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/hBDgjK7y7TUQ@xxxxxxxxxxxxxxxx To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Has anyone noticed the undocumented command argument in TINIConvertor?: 00679, Kris Ardis |
|---|---|
| Next by Date: | RE: RE: Another post from the same guy about 400 support.: 00679, Clayton Ware |
| Previous by Thread: | how secure is a .tini file ?i: 00679, Joel Winarske |
| Next by Thread: | IDE for Java - very fast: 00679, Peter Bauer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |