Patent ID: 7689826

Claim:
A method for loading an application and its associated data from an application provider onto a tamper resistant module (TRM), wherein said TRM comprises an input buffer and a memory containing at least one available space, and each available space is defined by contiguous sequential memory addresses with no skipped addresses, said method comprising the steps of: determining said TRM's input buffer size; dividing said application to be loaded and its associated data into a plurality of segments, each segment adapted to be stored in said TRM's input buffer, wherein the size of each segment is a function of the determined input buffer size; separately transmitting each said segment to said TRM; storing each said separately transmitted segment in one of said available spaces of said TRM's memory depending on the size of each segment; and determining an available area in said TRM's memory to store each said segment, wherein said step of determining an available area comprises determining which of said available spaces has the smallest available area in said TRM's memory in which said segment can be stored.