DEVICE FOR PROCESSING DATA AND CORRESPONDING METHOD

Abstract: Device for processing data, comprising processing means (1) for executing program routines, and memory means (2) for storing program routines to be executed by said processing means (1), where at least a part of said memory means (2) is arranged as a protected part (21) from which data can be read but which is protected against being written into, and said processing means (1) is arranged to necessarily execute a program routine stored in said protected part of said memory means upon start-up.

Description: Device for processing data and corresponding method Field of the invention The present invention relates to a device for processing data and a method for controlling such a device. Background of the invention The use of data processing systems comprising processing elements and memory elements have become widespread in very different fields of electronics. In the field of communication, most communication devices contain processors that execute programs stored in appropriate memory devices, to thereby process data stored in the same memory devices or somewhere else. A typical example of a communication device containing a processor (typically a microprocessor controller) and appropriate memory chips is a mobile telephone. One of the problems encountered with data processing systems is that of data security. For example, the above-mentioned mobile phone may contain different types of memories separated from the central processor, such as a flash memory or an EEPROM. It is possible that an EEPROM is emulated by a flash memory or is partly a flash memory. Such memories typically have to be protected against unauthorized access, in order to safeguard the normal operation of the mobile telephone. Naturally, the problem of data security occurs in any such data processing system, not only in mobile phones. The basic solution to problems of data security is the provision of protection software, e.g. an algorithm for the authentication of sensitive data in the EEPROM or emulated EEPROM. However, such software solutions suffer from a number of problems that cannot be overcome by software itself, such as the possibility of switching off the authentication algorithm or modifying the authentication algorithm. Sometimes, it is also possible to circumvent an authentication algorithm by using older software that did not contain the authentication routine but still provides access to the sensitive data. Summary of the invention The object of the present invention is to provide a better device for data processing, which is fairly simple to implement and solves the above problems . This object is achieved by the device described in claim 1 and the method described in claim 14. In accordance with the present invention, in a data processing device having a memory means and a processing means, there is provided on the one hand a protected section in the memory means of a data processing device, and on the other hand the processing means in is arranged to necessarily execute a program routine stored in the protected part of the memory upon start-up. Due to this arrangement, specific programs that are e.g. associated with security can be executed, where an unauthorized person is prevented from performing changes in said programs, because they are stored in a protected part of the memory. Such security programs can e.g. be programs that establish that other data has not been tampered with, as shall be explained in more detail further on. An important aspect of the present invention is the fact that no modification of the processor is necessary. In other words, the straightforward solution to the above-mentioned problems would have consisted in modifying the processing means to thereby contain security mechanisms, but such a modification of a processor is typically complicated, time consuming and costly. In contrast thereto, the present invention provides a very simple arrangement, in which only a modified memory is necessary, which is far simpler. Especially, processors already in use may be retained, in which case the memories have to be arranged in such a way that the addresses fixed in said processors for start-up (so- called start addresses) point to the protected section of the memory devices. As an alternative, a slight modification of the processors could be performed, namely changing the start addresses. Although this is a modification of the processor, it is fairly simple and not costly. Preferred embodiments of the invention are described in the dependent claims . Brief description of drawings The various advantages and features of the present invention will become more apparent by studying the following detailed description of embodiments of the invention, where said description makes reference to the figures, in which: Fig. 1 shows a basic arrangement of an embodiment of the present invention; Fig. 2 shows an arrangement of another embodiment of the present invention; Figs. 3a and 3b show a preferred memory device to be used in the data processing device of the present invention; Fig. 4 shows a flow-chart of a process for storing data in the protected part and subsequently protecting said data; Fig. 5 is a flow-chart explaining the basic operation of the data processing device of the present invention; and Fig. 6 is a schematic diagram of an embodiment of a memory means . Detailed description of embodiments Fig. 1 shows an embodiment of the present invention. Reference numeral 1 refers to a processor, such as a microprocessor controller. Reference numeral 11 symbolizes start addresses in said processor, where said start addresses are implemented in such a way that they cannot be changed from the outside. In other words, the processor 1 is arranged in such a way that it necessarily calls the start-addresses stored in section 11 when the processor is started. Reference numeral 2 is a memory system comprising a first section 21, which is a protected section, and a second section 22, in which data may freely be written. The processor 1 and memory 2 are connected by address lines 3 and data lines 4, and CLK symbolizes that the circuits are supplied with a clock signal, while U symbolizes that the circuits are supplied with an operating voltage. The protected section is protected against data being written into it. This may be accomplished in any way suitable or desirable for the application at hand. The protected section 21 is preferably arranged in such a way that it is not at all possible to write data into said section after an initial storing of data in said section has taken place. In other words, the memory must be arranged in such a way that specific data or program routines can be stored in the protected section 21 initially, and then a mechanism must be used for ensuring that no subsequent writing of data into said section is possible. One preferred embodiment of a memory accomplishes this in a way shown in Fig. 4. In this case, a so-called one-time programming area is provided in a flash memory device, where this flash memory device incorporates a mechanism for making a write line to the protected section impassable (e.g. destroying the write line by burning it through, so-called fusable link) . The destruction of the write line is performed by the memory in response to a predetermined signal. In this way, the necessary programs and data can be written into the protected section (step SI in Fig. 4) by the manufacturer of the apparatus into which the data processing device of the invention is to be built-in (i.e. the manufacturer of mobile telephones) , after which the predetermined signal is sent to thereby burn-through the write line (fusable link) . As a consequence, no subsequent writing of data into the protected section is possible, such that the data in said section cannot be changed. (Step S2 in Fig. 4) . Naturally, this is only a preferred example, and the present invention extends to any type of memory device, in which it is possible to protect a specified part of the memory from write access. As an example, memories are known, in which a certain number of input lines are given, where a predetermined part of the memory is protected from write access as long as certain predetermined signals (such as a ground voltage 0 or a supply voltage) are present on the input lines. Another example will be explained in connection with Fig. 6, which shows a memory with a so-called finite state machine FS . Finite state machines are known in the art, and will therefore only briefly be described here. The depicted memory 1A has an address bus 70, a data bus 71, read/write (R/ ) access line 72, and a line 73 for switching the states of the finite state machine (FS) . NO symbolizes normal operation, and FSO symbolizes finite state operation. The finite state machine is basically a program that is hard-wired into the memory 1A, such that it cannot be changed from the outside, thereby fulfilling basic security requirements. This hardwired program is part of the address logic that processes the addresses sent to the memory over the address bus . As an example, if line 73 is high (i.e. 1) , then the memory is in a normal state of operation and the data bus 71 is used in the normal fashion for transporting data. If line 73 is low (i.e. 0), then the data bus is used for controlling the finite state machine FS . In the application to the present invention, the finite state machine will have two states, namely a first state in which it is allowed to write data into a predetermined section of the memory 1A (i.e. this section will be the protected section), and a second state, which is a locked state, in which writing into the predetermined section is disabled. The finite state machine is arranged such that the transition from the first state to the second state is irreversible, i.e. once the machine is locked, it is no longer possible to switch back to the first state, and therefore it is no longer possible to write into the protected section. This can be done in any suitable way with known finite state machines, for example by selecting the finite state program such that the locked state depends on a specific value in the protected section, such that as long as the initial value is at the specific address a writing into the protected section is allowed, whereas once the value at the specific address has changed (this is the state transition) , the finite state program will go into an endless loop or terminate if an attempt is made to write into an address in the protected section, and because the specific address is in the protected section, it may not be changed, so that the locked state is permanent . Returning now to Fig. 1, the system is arranged in such a way that the addresses contained in section 11 of processor 1 point towards the protected section 21 in memory 2. In other words, upon start-up, the processor 1 will call one or more addresses in the protected part 21 of memory 2, and consequently execute the programs contained therein. This is explained in the top-part of Fig. 5, which shows a flow chart of the control operation in accordance with the present invention. In a first step S3, the memory and processor CP are started by supplying voltage U and a clock signal CLK. Then, in step S4 , the processor CP calls the start addresses that point to the protected part of the memory. Finally, in step S5, the processor CP executes the programs from the protected part . It may be noted that it is not necessary for specific programs to be stored in the protected part 21 of memory 2, because in the event of the processor 1 already being programmed, it may be sufficient that the processor only calls up specific parameters stored in the protected section 21, where these parameters are then processed by the processor 1 in the preprogrammed routines. The precise processing conducted upon start-up can be selected in accordance with the specific requirements and desires of the given application. In accordance with a preferred embodiment, the routines carried-out upon start-up are security routines, for example shown in the bottom part of the flow-chart in Fig. 5. More specifically, in the case of Fig. 5, the program routine executed upon start-up checks for unauthorized changes of data in the unprotected section 22 of memory 2. As an example, in the event that the data processing device of the present invention is employed in a mobile telephone, then certain parameters associated with the specific user of said mobile telephone (such as service, priorities, etc.) can be stored in said unprotected section 22, where it is possible that these parameters are changed during the routine processing performed by processor 1. However, it will also be possible that an unauthorized user will access these data and change them. One possibility of checking for such an unauthorized access consists in additionally storing a characterizing parameter for the data in said unprotected section 22 together with any changed parameters. A typical example of such a characterizing parameter is the check LO ) to t i- 1 σι o o T) TJ rt hh TJ Ω t rt H- hh Tl a H α en ^ a SD Ω en d > TJ en CO o SD i o o hj a- O M tr CD 0 o 0 tr tr H- c en O SD a h- 1 hi tr O h hj o hj 0 H- CO TJ φ hi CO Φ < 0 iQ 3 a H- H- rt o d hi rt rt SD rt TJ CO to SD g CO H- H- ≤ • φ Φ CO rt tr Ω rt rt SD O Φ a Φ Φ P- O i hi Φ H- 3 TJ Ω a hi • H- - 0 φ rt a o X Ω to tr s Φ hj a σ TJ hi Φ I- 1 CU LQ cn 3 d φ H- O 0 rt S_ϋ (D rt o CO g h- 1 0 Φ CO H- - h- 1 • rt φ rt LQ C-. a hh d l- Φ L g Φ I- 1 φ ~ SD a tr φ hi Ω - a en 3 tr tr H- LQ a ϋ &. •s P- ^ H- LQ •<; rt H- en CO O 0 H- a (D rt hj H- a Φ rt D ) en CO 0 hh tr hh hi C0 rt LQ O Φ d a- TJ φ φ to SZ! . H- rt t a c H- 0 0 ^ tr hh CO rt Φ SD en SD o SD Φ a tr r- j Ω Ω CQ rt ti £ fD H- Φ Ξ hh H- tr h{ ω rt a to rt . LQ H- Φ rt φ 0J tr • tr a 3 co H- h{ 0 0 rt tr P.. - c a hi Ω T SD 3 rt rt Φ hi rt H- φ hi Ω Ω Φ rt rt h JJ to rt 0 H- h- 1 ^ rt Φ tr tr L H- tr 0 a 0) to SD t tr en a tr 0 CO - 3 a d 0 3 Φ N φ hh SD o H- H- d rt Φ a & ) TJ hi σ O ts en Φ Hi rt en ω h- 1 J J Ω H- rt (X) H- 3 o ^ SD φ tr hj o (X O - φ ^ "< CO en tr h{ TJ tr a φ hi a H- -< φ ^ hi Ω n - Φ h{ Ω Φ hi φ 3 (X 3 φ Φ LQ H- SD 3 d Ω - H- Φ 0 • H- to SD 0 φ H- 0 TJ a rt d to SD H- hi tr H- τi ω a . H- a o Ω rt T) a hf φ rt < CO a \-> Ω H- SD TJ hj en CL • rt rt to s tr Φ hi rt H- • : PJ en to H- CO Φ rt a en to 0 φ • 0 - SD H- Ω φ rt • 0 a tr 0 ^ LQ o rt CO en tr H- •<: TJ rt CO 0 c t Φ OJ hh LQ H 0 TJ - Φ t H Φ φ SD CO S to H- φ hh 0 ) L ^ !- ■ CO ≤ φ O o Ω H- Ω en tr o rt to < a Ω hi H- TJ Φ rt a hi 0 h| ^ ~. t H- rt a rt φ H- ω tr o Φ rt rt 0 Φ LQ tr 0 SD hi ^ ~ a Φ SD _Q Ω • SD h- 1 tr 3 3 Φ PJ ^ c o H- rt Φ Φ (X en o C t • rt CO H- φ TJ CO ω a a. a H- H- 3 en to rt φ a hh S . H- φ a 3 hi Ω ^ to H- H- O h φ o d T ) Ω H- h- a rt a Ω 3 0 H- hi Ω rt PJ ^ a hi H- L j SD rt hi 0 tr rt Φ Φ t-i CO H- C SD ~ en H- • a LQ a - a hi H- rt en ^ hi Ω φ H- a 3 ^ Φ TJ Φ en t- 1 LQ 0 Φ rt 0 - rt 3 0 hi H- 0 rt 0 CO rt CO φ _-> tr SD • a CO • TJ a SD s: SD d φ ω a H- i Ω h 1 - Ω CO ^ c a Ω Ω rt • 0 0 rt en Φ 0 tr SD 0 hi rt tr ^ φ • H- h H> φ H- en a H- a H- rt CO SD (D TJ • a h- 1 μ- Ω I- 1 £ cn t tr • TJ TJ σ tr φ Ω tr SD a TJ rt Ω CO rt hi (D - 0 Φ en l- 1 H- Φ TJ en TJ LQ hi H CO tr 0 H- TJ H- h- 1 a z, •fl c en L SD rt TJ H- hh a Φ O a a 0 0 rt h- 1 0 H- a o H- to h{ CO hi H φ CO Ω rt TJ 0 a CO φ • i Ω o 0> a H- SD SD φ SD SD Φ rt 0 TJ rt en tr ≤ Φ !D Φ h- 1 0 a 3 rt Λ Ω hi SD en Φ en H- rt Φ φ α tr tr to hi rt H- SD Φ hi • rt CO hi d "< (ϋ 0 o 0 TJ a- tr Ω H- X rt Ω SD Φ hj rt Ω hj J Ω Ω rt rt t SD 0 t ^ a 0 hi 3 (D Φ ->- -> tr ~ Φ 0 rt φ Φ 0 Φ tr H> hi o Φ a Φ φ Φ en i SD φ en rt ^ en TJ O en a H- Ω a hh 3 •< en Φ ^ -, < rt hi SD en Φ H- <! SD co H- Ω hh φ Φ Φ O Ω SD rt CO 0 rt a 0 Ω en ft Φ Ω a Φ tr CO Ω i hi ≤ hi Φ d Φ Ό hi rt tr H- a Ω Ω - H- to 3 CO rt Φ *< Φ H- en Ω Ω H- ι-i hi Φ SD en rt Φ tr hh T) o Φ ft ) H- a TJ h 1 - rt tr a o rt t-> α rt H- CO W- H- H- CO J 3 hi o Ω (1 rt a Φ LQ n rt a- *• 0 CO Ti LQ rt 0 ^ a φ φ H- LQ (X SD JD Φ H- φ a • « H- hi • ! O en (D O Ω CO O ξ SD SD t H- eo rt ^ ≤ H- H- tr Ω h- 1 ι-3 o I- 1 en a φ Φ > H- Ω a ~* Φ a Φ a 1 ^ - o CO rt φ P-. rt hj Φ H- hh tr CO Φ a ω en all of the protected sections of the chips 210, 202, 203,.... would together constitute the protected part of the memory means described in the claims. It may be noted, that although the above-described embodiments relate to a system in which the memory has a protected part into which data cannot be written, it is still possible to read out the data in the protected section, even for an unauthorized user. In order to make this more difficult for an unauthorized user, a preferred embodiment of the memory in the data processing device of the present invention is shown in Figs. 3a and 3b. Figs. 3a and 3b show a memory chip 5 having electrical contacts 51 that are to be soldered or otherwise connected to electrical leads 61 on a circuit board 6. Fig. 3a shows the components before mounting and Fig. 3b shows the arrangement after the memory chip 5 has been mounted onto circuit board 6, where the electrical contacts 51 and electrical leads 61 have been unified into contacts 71. It may be noted that the representation of Fig. 3b is exaggerated in the sense that in reality the distance between memory chip 5 and circuit board 6 will be very small, such that there is practically no possibility of accessing the contacts 71 while the chip 5 is mounted on the board 6. Therefore, as indicated in Fig. 3, the electrical contacts 51 are such that the resulting contacts 71 are completely covered by the chip 5 after said chip has been mounted on the circuit board, to thereby make it impossible to access the electrical contacts 51 from the outside. For example, the contacts 51 can be small semi-spheres arranged in so-called ball-grid array. By using the arrangement of Fig. 3, it is possible to avoid that an unauthorized user can pick up the signal passing through the contacts during the operation of the memory chip, such that a monitoring of the signals going in and coming out of the memory chip 5 during operation necessitates dismounting the chip from the circuit board and then LO LO to to H LΠ o LΠ o LΠ ISM "free band". Details on this technology may be found e.g. at http://www.bluetooth.com. The present invention has been described by way of examples, but it shall be understood that these examples only serve to clearly present the invention to a skilled person and do not intend to restrict the scope of the invention in any way. Much rather, the scope of the invention is determined by the appended claims.

Claims: Claims 1. Device for processing data, comprising: processing means (1) for executing program routines, and memory means (2) for storing program routines to be executed by said processing means (1) , where at least a part of said memory means (2) is arranged as a protected part (21) from which data can be read but which is protected against being written into, and said processing means (1) is arranged to necessarily execute a program routine stored in said protected part of said memory means upon start-up. 2. Device according to claim 1, wherein said processing means (1) stores permanent start addresses (11) that are necessarily called upon start-up of said processing means (1) , where at least one of said start addresses points to said protected part (21) of said memory means (2) . 3. Device according to one of claims 1 or 2 , wherein said protected part (21) of said memory means (2) is a first part, and said memory means further comprises a second part (22) into which data can be written, where the program routine from said protected part (21) executed by said processing means (1) upon start-up comprises checking for changes in at least a part of the data contained in said second part (22) . 4. Device according to claim 3, wherein said program routine from said protected part (21) executed by said processing means (1) upon start-up comprises calculating a characteristic parameter for data being checked for changes, and comparing said characteristic parameter with a value stored in said second part (22) of said memory means (2) at the time of writing said data being checked for changes into said second part (22) of said memory means (2) . 5. Device according to claim 4, wherein said characteristic parameter is a check sum. 6. Device according to one of claims 1 to 5, wherein said memory means (2) comprises a plurality of memory devices (201, 202, 203), one (201) of which comprises said protected part, and the rest (202, 203) of which are arranged such that data may be written into them. 7. Device according to one of the preceding claims, wherein said protected area (21) is arranged such that a mechanism is provided such that after data is initially stored in said protected part (21) , any subsequent writing of data into said protected part (21) is blocked. 8. Device according to claim 7, wherein said protected area (21) is arranged such that the process for storing data therein comprises: writing (SI) data into said protected part (21) via a write line, and sending (S2) a signal to said protected part in response to which said write line is permanently interrupted. 9. Device according to claim 8, wherein said write line is a fusable link. 10. Device according to one of claims 1 to 7 , wherein said memory means (1) comprises a finite state machine, said finite state machine defining a state which protects said protected part from being written into. 11. Device according to one of the preceding claims, wherein said memory means (2) comprise one or more of an EEPROM, a flash memory device, and a flash memory device emulating an EEPROM. 12. Device according to one of the preceding claims, wherein said memory means (2) comprises a memory chip (5) having electrical contacts (51) for being connected with a circuit board (6) that are arranged such that said electrical contacts (51) are covered by said memory chip (5) when said memory chip (5) is mounted on said circuit board (6) . 13. Device according to claim 12 , wherein said electrical contacts (51) are provided in a ball-grid-array. 14. Communication device comprising a device for processing data according to one of claims 1 to 13. 15. Communication device according to claim 14, wherein said communication device is a mobile telephone. 16. Communication device according to claim 14, wherein said communication device is a bluetooth communication device. 17. Method for controlling a data processing device having processing means (1) for executing program routines and memory means (2) for storing program routines to be executed by said processing means (1) , where at least a part of said memory means (2) is arranged as a protected part (21) from which data can be read but which is protected against being written into, comprising: letting (S4) said processing means (1) necessarily execute a program routine stored in said protected part of said memory means upon start-up (S3) . 18. Method according to claim 17, wherein said processing means stores permanent start addresses that are necessarily called upon start-up of said processing means, where at least one of said start addresses points to said protected part of said memory means. 19. Method according to one of claims 17 or 18, wherein said protected part of said memory means is a first part, and said memory means further comprises a second part into which data can be written, where the program routine from said protected part executed by said processing means upon start-up comprises checking for changes in at least a part of the data contained in said second part . 20. Method according to claim 19, wherein said program routine from said protected part executed by said processing means upon start-up comprises calculating a characteristic parameter for data being checked for changes, and comparing said characteristic parameter with a value stored in said second part of said memory means at the time of writing said data being checked for changes into said second part of said memory means . 21. Method according to claim 20, wherein said characteristic parameter is a check sum. 22. Method according to one of claims 17 to 21, wherein said memory means comprises a plurality of memory devices, one of which comprises said protected part, and the rest of which are arranged such that data may be written into them. 23. Method according to one of claims 17 to 22, wherein said protected area is arranged such that a mechanism is provided such that after data is initially stored in said protected part, any subsequent writing of data into said protected part may be blocked. 24. Method according to claim 23, wherein said protected area is arranged such that the process for storing data therein comprises: writing data into said protected part via a write line, and sending a signal to said protected part in response to which said write line is permanently interrupted. 25. Method according to claim 24, wherein said write line is a fusable link. 26. Method according to one of claims 17 to 23, wherein said memory means (1) comprises a finite state machine, said finite state machine defining a state which protects said protected part from being written into. 27. Method according to one of claims 17 to 26, wherein said memory means comprise one or more of an EEPROM, a flash memory device, and a flash memory device emulating an EEPROM. 28. Method according to one of claims 17 to 27, wherein said memory means comprises a memory chip having electrical contacts for being connected with a circuit board that are arranged such that said electrical contacts are covered by said memory chip when said memory chip is mounted on said circuit board. 29. Method according to claim 28, wherein said electrical contacts are provided in a ball -grid-array . 30. A medium readable by a data processing device, having a program recorded thereon, where the program is to make the data processing device execute the method of one of claims 17 to 29.

Inventors: MOELLER BERND, OSTHOFF HARRO, POON KAR-FAT, SMEETS BEN, MOELLER, BERND, OSTHOFF, HARRO, POON, KAR-FAT, SMEETS, BEN
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON (PUBL)
Application year: 2000
Main classification: G06F9
IPC codes: G06F9, G06F12, G06F21