Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

the structure of context in java card

JavaCard Applet Development Related Questions and Answers.
Elisadl
Posts: 10
Joined: Tue Jan 26, 2016 11:08 pm
Points :119
Contact:

the structure of context in java card

Post by Elisadl » Mon Jun 27, 2016 2:57 am

Hi everybody in here!

I am designing all the structures in java card, which include Frame, Context.. But I didn't know Context structure. Does anyone know the structure of context in javacard?

For example, the structure of Frame is

typedef struct frame {
u1 last_pc;
u2 *lvars;
u2 *ostack;
method_info *mi;
class_info *ci;
struct frame *prev;
} Frame;

Crawford
Posts: 39
Joined: Thu Sep 17, 2015 11:50 pm
Points :246
Contact:

Re: the structure of context in java card

Post by Crawford » Mon Jun 27, 2016 5:00 am

Context is only an identifier, that is associated with different packages or JCRE.

Its structure may be like this:
context{
u1 context_id
u2 package_addr;
u2 applet_instance_addr;
}


if context is JCRE context, all above entry may be *0xFF*.

Crawford
Posts: 39
Joined: Thu Sep 17, 2015 11:50 pm
Points :246
Contact:

Re: the structure of context in java card

Post by Crawford » Mon Jun 27, 2016 5:49 am

Moreover, in your structure of FRAME, there must include context_id field like this:

Code: Select all

typedef struct frame {
u1 last_pc;
u2 *lvars;
u2 *ostack;
method_info *mi;
class_info *ci;
struct frame *prev;
u1 context_id;
} Frame;

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 50 guests

JavaCard OS : Disclaimer