logo       

Re: how secure is a .tini file ?: msg#00679

hardware.microcontrollers.tini

Subject: Re: how secure is a .tini file ?

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>
Google Custom Search

News | FAQ | advertise