Data processing apparatus and data processing method
A data processing apparatus includes an address bus, a scramble unit, and a data bus. The address bus outputs address data to be given to a memory apparatus. The scramble unit scrambles write-in data into a storage position in the memory apparatus identified by the address data to obtain confidential data. The data bus outputs the confidential data. The scramble unit includes a first scrambler, a first converter and a second scrambler. The first scrambler XORs first mask data corresponding to the address data and the write-in data for each bit and makes it first scrambled data. The first converter performs one-to-one substitution conversion of the first scrambled data. The second scrambler XORs second mask data corresponding to the address data and data after the conversion of the first scrambled data by the first converter and outputs obtained second scrambled data as the confidential data.
Latest Fujitsu Limited Patents:
- SIGNAL RECEPTION METHOD AND APPARATUS AND SYSTEM
- COMPUTER-READABLE RECORDING MEDIUM STORING SPECIFYING PROGRAM, SPECIFYING METHOD, AND INFORMATION PROCESSING APPARATUS
- COMPUTER-READABLE RECORDING MEDIUM STORING INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING APPARATUS
- COMPUTER-READABLE RECORDING MEDIUM STORING INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING DEVICE
- Terminal device and transmission power control method
This application is a continuation application based on International Application No. PCT/JP2009/001276, filed on Mar. 23, 2009, the entire contents of which are incorporated herein by reference.
FIELDThe embodiments discussed herein are related to a technique to protect data stored in a memory apparatus.
BACKGROUNDSince an embedded device such as a mobile phone has valuable asset such as paid contents, it has become a target of attacks to obtain it fraudulently. One way of such attacks is data probing. The data probing is an attack to read out data electrically from an exposed data bus wiring between an MPU (Micro Processor Unit) chip and an external RAM (Random Access Memory).
Data scrambling is a method of preventing information leaking due to the data probing. The data scrambling is to convert data into scrambled data before it is released from the MPU chip, to keep the contents of the data confidential from the attacker.
Here,
In
The address bus 11 outputs address data to give to the external RAM 2 output by the processor 100.
The scramble unit 200 obtains confidential data by scrambling write-in data, output by the processor 100, to the storage position of the external RAM 2 specified by an address data output by the address bus 11.
The data bus 12 outputs the confidential data that the scramble unit 200 has obtained.
The configuration of the scramble unit 200 presented in
The scramble unit 200 is configured to have a key register 201, an exclusive OR circuit (hereinafter, referred to as an “XOR circuit”) 202, a substitution function processing unit 203, and an XOR circuit 204.
The key register 201 is a register in which scramble key data K of w-bit is stored.
The XOR circuit 202 XORs the same address data as that output by the address bus 11 and the scramble key data stored in the key register 201 for each bit.
The substitution function processing unit 203 performs a substitution conversion process to associate w-bit data output from the XOR circuit 202 uniquely with any data expressed in w-bit and to output the uniquely associated data.
The XOR circuit 204 XORs, during the scrambling operation, the write-in data output by the processor 100 and data (mask value) corresponding to the address data output from the substitution function process unit 203 for each bit. The data output from the XOR circuit 204 is the confidential data in which the write-in data is scrambled, which is output from the data bus 12 to the external RAM 2. The confidential data is stored in a storage position in the external RAM 2 specified by an address data output by the address bus 11.
When the MPU chip 1 reads out the confidential data from the external RAM 2, the scramble unit 200 performs a descrambling operation.
The address data being output from the address bus 11 when the MPU chip 1 reads out the confidential data from the external RAM 2 is the same as that when the confidential data is written in. Therefore, if the scramble key data K in the key register 201 and substitution conversion F in the substitution function processing unit 203 are both the same as those at the time of the scrambling operation, the mask value output from the substitution function processing unit 203 at the time of reading out of the confidential data becomes the same as that at the time of written in the confidential data.
The XOR circuit 204 XORs, during the descrambling operation, the confidential data read out from the eternal RAM 2 and the mask value output from the substitution function processing unit 203 for each bit. Here, since the mask value is the same at the time of writing in and reading out of the confidential data, the XOR results in the original write-in data. The descrambling of the confidential data is completed as described above, and the obtained original write-in data is read in the processor 100.
As described above, in the configuration presented in
In addition, in the configuration presented in
Generally, in the scrambling of write-in data to the memory apparatus, safety can be improved by generating the mask value with the shared key block cipher and the like, and the safety is maintained even if the processing scheme is revealed. However, since the processing of the shared key block cipher is complicated generally, it becomes impossible when using the shared key block cipher to satisfy the high-speed response performance that is required for the data bus 12 transmitting the write-in data.
Meanwhile, the scrambling adopting the configuration presented in
In addition, the data scramble unit 200 in the configuration presented in
Meanwhile, as other backgrounds arts, a technique to perform scrambling of data also at the memory unit side and a technique of double encryption to further encrypt encrypted data have been known (e.g. Japanese Laid-open Patent Publication Nos. 2001-109667, 2002-328844 and 2004-110408).
By the way, as described earlier, by providing the scramble unit 200 within the MPU chip 1, it has become possible to make data confidential from data probing. However, there still remains the risk that the attacker analyses the scramble algorithm. In order to ensure the security of the scrambling, the security of the scramble algorithm needs to be evaluated.
One of items to evaluate the security of a keyed scramble algorithm being an algorithm to perform data scrambling using scramble key data as adopted in the scramble unit 200 in
In the brute force key attacks, among the combination of scramble key data, write-in data, scramble data and address data and hardware implementing the scramble key algorithm, those except for the scramble key data are given to the attacker. The attacker executes, in this case, scrambling while setting scramble key data arbitrarily. Then, the execution is repeated until the scramble key data used in the given combination is identified.
The resistance to the brute force key attack in creases as the key length of the scramble key data becomes longer. In addition, the security is ensured by making the calculation volume required for the brute force key attack a value that cannot be calculated within a practical period of time.
For the keyed scramble algorithm adopted in the scramble unit 200 in
For example, the word length of the processor for a number of embedded devices is currently below 32 bits. Here, the brute force key attack to the scramble unit 200 in the case in which the word length is assumed as 32 bits is considered. Supposing that the execution of scrambling can be performed 1000 times per second, the scramble key data could be found in 50 days.
In addition, as an attacking method to a keyed scramble algorithm, chosen plaintext attacks have been known. In this attack, a case is assumed in which the attacker cannot see the scramble key data is not to be known by the attacker but can obtain scramble data while setting data and address data freely. In other words, this attack assumes a higher ability of the attacker than that for the brute force key attack.
In the scramble unit 200 in
According to an aspect of the embodiment, a data processing apparatus includes: an address bus configured to output address data to be given to a memory apparatus; a scramble unit configured to scramble write-in data into a storage position in the memory apparatus identified by the address data output by the address bus to obtain confidential data; and a data bus configured to output the confidential data obtained by the scramble unit, wherein the scramble unit includes: first scramble means configured to scramble the write-in data by XORing with first mask data corresponding to the address data for each bit to obtain first scrambled data; first conversion means configured to perform one-to-one substitution conversion of the first scrambled data; and second scramble means configured to scramble the first scrambled data after conversion by the first conversion means by XORing with second mask data corresponding to the address data for each bit to obtain second scrambled data, and the scramble unit makes the second scramble data the confidential data.
The object and advantages of the embodiment will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the embodiment, as claimed.
Preferred embodiments of the present invention will be explained with reference to accompanying drawings.
In
The address bus 11 outputs address data output by the processor 100 and given to the external RAM 2.
The scramble unit 200 scrambles write-in data output by the processor 100 that is for the storage position in the external RAM 2 identified by address data output by the address bus 11 to obtain confidential data.
The data bus 12 outputs the confidential data obtained by the scramble unit 200.
The configuration unit 200 presented in
In
The key register 201 is a register in which scramble key data K0 of w-bit is stored. The scramble key data K0 (hereinafter, the key data K0 may be referred to as “first scramble key data”) to be stored in the register 201 is changeable.
The XOR circuit 202 XORs address data that is the same as the one output by the address bus 11 and the first scramble key data stored in the key register 201.
The substitution function processing unit 203 performs a substitution conversion process to associate w-bit output from the XOR circuit 202 uniquely with any of the data expressed by w-bit and to output the uniquely associated data. For substitution conversion F0 performed in the substitution function processing unit 203, relationship of input and output is generally nonlinear. Meanwhile, the substitution function processing unit 203 is configured by combining basic logic elements (AND circuit, OR circuit, NOT circuit etc.). However, if the processing speed allows, for example, the substitution conversion may be performed by referring to a table stored in a storage apparatus in which correspondence relationship of input and output has been determined in advance. Meanwhile, in the description below, the data corresponding to the address data being data output from the substitution function processing unit 203 is referred to the “first mask data”.
The XOR circuit 204 XORs write-in data output by the processor 100 and the first mask data output from the substitution function processing unit 203 for each bit, to perform scrambling of the write-in data.
In the following description, the scrambling performed by the key register 201, the XOR circuits 202 and 204, and the substitution function processing unit 203 is referred to as “first scrambling”. In addition, data obtained by the first scrambling is referred to as “first scrambled data”.
The key register 211 is a register in which scramble key data K1 of w-bit is stored. The scramble key data K1 (in the following description, the key data K1 may be referred to as “second scramble key data”) to be stored in the register 211 is also changeable.
The XOR circuit 212 XORs address data that is the same as the one output by the address bus 11 and the second scramble key data stored in the key register 211.
The substitution function processing unit 213 performs a substitution conversion process to associate w-bit data output from the XOR circuit 212 uniquely with any of the data expressed by w-bit and to output the uniquely associated data. For substitution conversion F1 performed in the substitution function processing unit 213, relationship of input and output is also generally nonlinear in the same manner as in the substitution conversion F0. The substitution function processing unit 213 is also configured by combining basic logic elements, and if the processing speed allows, for example, the substitution conversion may be performed by referring to a table stored in a storage apparatus in which correspondence relationship of input and output has been determined in advance. Meanwhile, in the description below, the data corresponding to the address data being data output from the substitution function processing unit 213 is referred to the “second mask data”.
The XOR unit 214 XORs the first scrambled data obtained by the first scrambling and the second mask data output from the substitution function processing unit 213 for each bit, to perform scrambling of the first scrambled data.
In the following description, the scrambling performed by the key register 211, the XOR circuits 212 and 214, and the substitution function processing unit 213 is referred to as “second scrambling”. In addition, data obtained by the second scrambling is referred to as “second scrambled data”.
In the configuration in
As described above, the configuration of the scramble unit 200 presented in
In the configuration in
Next,
In
The configuration presented in
The substitution function processing unit 220 performs a substitution conversion process to associate first scrambled data of w-bit with any of the data expressed by w-bit one-to-one and to output the one-to-one associated data. For substitution conversion G performed in the substitution function processing unit 220, relationship of input and output is also generally nonlinear in the same manner as in the substitution conversion F0 and F1. The substitution function processing unit 220 is also configured by combining basic logic elements, and if the processing speed allows, for example, the substitution conversion may be performed by referring to a table stored in a storage apparatus in which correspondence relationship of input and output has been determined in advance. However, since the substitution conversion processing unit 220 performs substitution conversion of data to be written into the external RAM 2, it is preferable that the conversion process is performed at a high speed.
In the configuration presented in
Furthermore, in the configuration presented in
Next, descrambling of confidential data stored in the external RAM 2 by the MPU chip 1 having the scramble unit 200 configured as presented in
In the configuration in
In
The descramble unit 300 presented in
The XOR circuit 214 descrambles confidential data read out from the storage position of the external RAM 2 identified by an address data (that is, the second scrambled data described earlier) by XORing it with the second mask data described earlier for each bit. Then, the first scrambled data after the conversion by the substitution function processing unit 220 described earlier is obtained. Here, the descrambling is referred to as “first descrambling”, and data obtained by the first descrambling is referred to as “intermediate descrambled data”.
The substitution function processing unit 320 performs inverse conversion G−1 of the substitution conversion G by the substitution function processing unit 220 for the intermediate descrambled data obtained by the XOR circuit 214.
Here,
According to
Meanwhile, the substitution function processing unit 320 is also configured by combining basic logic elements. Here, if the processing speed allows, for example, the substitution conversion may be performed by referring to a table stored in a storage apparatus in which correspondence relationship of input and output has been determined in advance. However, since the substitution conversion processing unit 320 performs substitution conversion of data to be written into the external RAM 2, also in the same manner as the substitution function processing unit 220, it is preferable that the conversion process is performed at a high speed.
The description returns to
The XOR circuit 204 descrambles data after the inverse conversion of the intermediate descrambled data by the substitution function processing unit 320 by XORing it and the first mask data described earlier. Then, the original write-in data that was output by the processor 100 at the time of scrambling operation by the scramble unit 200 is obtained. Here, the descrambling is referred to as “second descrambling”.
The descrambling operation by the descramble unit 300 whose configuration is presented in
Here, the configuration of the scramble unit 200 in
Furthermore, the configuration for obtaining the first mask data composed of the key register 201, the XOR circuit 202 and the substitution function processing unit 203 is the same for the scramble unit 200 and the descramble unit 200. In addition, the configuration for obtaining the second mask data composed of the key register 211, the XOR circuit 212 and the substitution function processing unit 213 is also the same for the scramble unit 200 and the descramble unit 300. Therefore, when the scramble unit 200 and the descramble unit 300 exist together within a single MPU chip 1, the key registers 201 and 211, the XOR circuits 202 and 212, and the substitution function processing unit 203 and 213 may be shared. The circuit scale of the MPU chip 1 may be reduced also by sharing these constituent elements for the scrambling operations by the scramble unit 200 and the descrambling operations by the descramble unit 300.
In addition, between the substitution function processing unit 220 and the substitution function processing unit 320, one-to-one substitution conversion of input data may be performed, and the one with the forward conversion of the substitution conversion and its inverse conversion being identical (referred to as “identical substitution conversion”) may be shared.
Here,
According to
Furthermore, in the example in
By configuring a function processing unit that performs identical substitution conversion as described above, it may be shared between the substitution function processing unit 220 and the substitution function processing unit 320. In other words, by sharing the function processing unit that performs identical substitution conversion between the substitution function processing unit 220 in the scramble unit 200 and the substitution function processing unit 320 in the descramble unit 300, the circuit scale of the MPU chip 1 may be reduced.
Next, the security of scrambling by the scramble unit 200 presented in
For example, a case in which the word length of the processor (that is, the bit widths of address data and write-in data) is 32-bit is considered. At this time, the first scramble key data and the second scramble key data may both be 32-bit. At this time the key length of the entire scramble key data is 64-bit. In this case, a brute force key attack to the keyed scramble algorithm described earlier would require 584,942,417 years supposing that the scrambling operation can be performed 1000 times per second. In addition, even if the scrambling operation can be performed 1,000,000,000 times per second, 584 years would be required. Therefore, it is very difficult to find the scramble key data within a practical period of time.
Meanwhile, for the processor 100, it is preferable that the access to the external RAM 2 is at a high speed. Therefore, it is preferable that the amount of time required for the scrambling operation by the scramble unit 200 and the descrambling operation by the descramble unit 300 is small. Here, the time may be reduced by configuring the substitution function processing units 203, 213, 220 and 320 that performs the substitution conversion or its inverse conversion as follows.
That is, when the word length is 32-bit, instead of configuring the substitution function processing units 203, 213, 220 and 320 simply as 32-bit substitution functions for example, they are replaced with the combination of a 32-bit replace function and eight 4-bit substitution functions. Generally, for the substitution function, the complexity of the configuration increases exponentially as the word length becomes longer, and the time required for conversion also becomes longer. Therefore, by replacing a substitution function with a long word length with a combination of a replace function with a very simple configuration and a short conversion time since only rearrangement of bits is to be performed, and a substitution function with a short word length, the time required for substitution conversion can be reduced. Meanwhile, the substitution function used as the replacement is not limited to the one with the 4-bit word length, and for example, two 6-bit substitution functions and four 5-bit substitution functions may be used, or four 8-bit substitution functions may be used.
Meanwhile, the substitution function processing units 203 and 213 do not need to be the ones that perform identical substitution conversion, and may be non-identical. A circuit that performs non-identical substitution conversion may perform processing faster than identical one.
Next,
In
The configuration of the scramble unit 200 presented in
In the register 205, the first mask data output from the substitution function processing unit 203 is stored and held. In addition, in the register 215, the second mask data output from the substitution function processing unit 213 is stored and held.
The configuration presented in
That is, first, the XOR operations of the address data and the first scramble key data and the second scramble key data by the XOR circuits 202 and 204 and substitution conversion of the operation results by the substitution function processing units 203 and 213 are performed. Then, the first mask data and the second mask data obtained by the performance are stored in the registers 205 and 215 respectively. After that, when write-in data is output from the processor 100, the XOR operations by the XOR circuit 204, the substitution conversion of its operation result by the substitution function processing unit 220, and the XOR operation by the XOR circuit 214 are performed. Then, the confidential data obtained as the result of the performance is output to the RAM 2.
Meanwhile, descrambling of the confidential data obtained by the scrambling by the scramble unit 200 configured as presented in
Next,
In
Meanwhile, in
That is, the scramble unit 200 presented in
Here, to the second basic section 206-2, data obtained by the first scrambling described earlier performed by the first basic section 206-1 (that is, the first scrambled data) is input as the target data. Then, the second basic section 206-2 performs the second scrambling described earlier, and outputs the second scrambled data.
To the first extension section 216-1, as the target data, data output by the second basic section 206-2 (second scrambled data) is input. In the first extension section 216-1, the substitution function processing unit 230-1 performs one-to-one substitution conversion of the target data, and the key register 221-1, the XOR circuit 222-1, and the substitution function processing unit 223-1 generates mask data corresponding to the address data. Then, the XOR circuit 229-1 XORs the data after the substitution conversion by the substitution function processing unit 230-1 and the mask data for each bit. The first extension section 216-1 performs the further scrambling of the scrambled data output by the second basic section 206-2 as described above.
To the second extension section 216-2, as the target data, the scrambled data output by the first extension section 216-1 is input. In the second extension section 216-2, the substitution function processing unit 230-2 performs one-to-one substitution conversion of the target data, and the key register 221-2, the XOR circuit 222-2, and the substitution function processing unit 223-2 generates mask data corresponding to the address data. Then, the XOR circuit 224-2 XORs the data after the substitution conversion by the substitution function processing unit 230-2 and the mask data for each bit. The second extension section 216-2 performs the further scrambling of the scrambled data output by the first extension section 216-1 as described above.
The scramble unit 200 presented in
As descried above, the configuration of the scramble unit 200 presented in
In the scramble unit 200 presented in
Next,
In
Here, the n-th extension scramble unit is configured to have a key register 221-n, the XOR circuits 222-n and 224-n, and substitution function processing units 223-n and 230-n. Here, the substitution function processing unit 230-n performs one-to-one substitution conversion of target data to be the target of scrambling in the n-th scramble unit. Meanwhile, the key register 221-n, the XOR circuit 222-n, and the substitution function processing unit 223-n obtain mask data (additional mask data) corresponding to the address data output by the processor 100. Then, the XOR circuit 224-n scrambles the data after the substitution conversion of the target data by the substitution function processing unit 230-n by XORing it and the additional mask data for each bit and outputs scrambled data (additional scrambled data). Meanwhile, the target data at this time is additional scrambled data output by the (n−1)th extension scramble unit (however, scramble data output by the basic unit when n=1).
The scramble unit 200 in
As described above, the configuration of the scramble unit 200 presented in
In the scramble unit 200 presented in
Meanwhile, in the configuration in
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could made hereto without departing from the spirit and scope of the invention.
Claims
1. A data processing apparatus, comprising:
- an address bus which outputs address data to be given to a memory apparatus;
- a scramble unit which scrambles write-in data as confidential data, the write-in data being to be stored into a storage position in the memory apparatus after scrambling, the storage position being identified by the address data output by the address bus, the scramble unit comprising: a first scrambler which scrambles the write-in data by XORing the write-in data and first mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain first scrambled data, a first converter which performs one-to-one substitution conversion of the first scrambled data, and a second scrambler which scrambles the first scrambled data after conversion by the first converter by XORing the first scrambled data after conversion and second mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain second scrambled data; and
- a data bus which outputs the second scrambled data obtained by the second scrambler of the scramble unit as the scrambled write-in data to the memory apparatus.
2. The data processing apparatus according to claim 1, wherein
- the first scrambler obtains the first mask data by performing substitution conversion of XOR of the address data and first scramble key data for each bit, and
- the second scrambler obtains the second mask data by performing substitution conversion of XOR of the address data and second scramble key data for each bit.
3. The data processing apparatus according to claim 1, further comprising:
- a first descrambler which descrambles the confidential data read out from a storage position in the memory apparatus identified by the address data by XORing with the second mask data for each bit to obtain intermediate descrambled data;
- an inverse converter which performs inverse conversion of substitution conversion by the first converter for the intermediate descrambled data; and
- a second descrambler which descramble data after inverse conversion of the intermediate descrambled data by the inverse converter by XORing with the first mask data for each bit to obtain the write-in data.
4. The data processing apparatus according to claim 3, further comprising: wherein
- a first logic circuit which XORs input data and the first mask data for each bit; and
- a second logic circuit which XORs input data and the second mask data for each bit,
- the first logic circuit is shared for scrambling in the first scrambler and descrambling in the second descrambler, and
- the second logic circuit is shared for scrambling in the second scrambler and descrambling in the first descrambler.
5. The data processing apparatus according to claim 3, wherein
- an identical substitution conversion which performs one-to-one substitution conversion of input data and in which forward conversion and inverse conversion are identical is shared for substitution conversion in the first converter and inverse conversion in the inverse converter.
6. The data processing apparatus according to claim 1, wherein
- the scramble unit further comprises at least an extension scrambler configured to scramble target data, and
- the extension scrambler comprises:
- an additional converter which performs one-to-one substitution conversion of the target data; and
- an additional scrambler which scrambles data after conversion of the target data by the additional converter by XORing with additional mask data corresponding to the address for each bit to obtain additional scrambled data, and
- to the extension scrambler, the second scrambled data is input as target data, and
- the scramble unit makes additional scrambled data obtained by the extension scrambler instead of the second scrambled data.
7. A descramble apparatus configured to descramble confidential data obtained by a data processing apparatus which scrambles data, the data processing apparatus comprising:
- an address bus which outputs address data to be given to a memory apparatus;
- a scramble unit which scrambles a write-in data as confidential data, the write-in data being to be stored into a storage position in the memory apparatus after scrambling, the storage position being identified by the address data output by the address bus, the scramble unit comprising: a first scrambler which scrambles the write-in data by XORing the write-in data and first mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain first scrambled data, a first converter which performs one-to-one substitution conversion of the first scrambled data, and a second scrambler which scrambles the first scrambled data after conversion by the first converter by XORing the first scrambled data after conversion and second mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain second scrambled data; and
- a data bus which outputs the second scrambled data obtained by the second scrambler of the scramble unit as the scrambled write-in data to the memory apparatus,
- the descramble apparatus comprising:
- an address bus which outputs address data to be given to the memory apparatus;
- a first descrambler which descrambles the confidential data read out from a storage position in the memory apparatus identified by the address data by XORing with the second mask data for each bit to obtain intermediate descrambled data;
- an inverse converter which performs inverse conversion of substitution conversion by the first converter for the intermediate descrambled data; and
- a second descrambler which descrambles data after inverse conversion of the intermediate descrambled data by the inverse converter by XORing with the first mask data for each bit to obtain the write-in data.
8. A data processing method, comprising:
- outputting address data to be given to a memory apparatus from an address bus;
- scrambling write-in data as confidential data, the write-in data being to be stored into a storage position in the memory apparatus after scrambling, the storage position being identified by the address data output by the address bus, the scrambling the write-in data comprising: scrambling the write-in data by XORing the write-in data and first mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain first scrambled data, performing one-to-one substitution conversion of the first scrambled data, and scrambling data after the substitution conversion of the first scrambled data by XORing the first scrambled data after conversion and second mask data generated by using an address data which is the same as the second address data output by the address bus to obtain second scrambled data; and
- outputting the second scrambled data as the scrambled write-in data from a data bus to the memory apparatus.
9. The data processing method according to claim 8, wherein
- the scrambling the write-in data to obtain first scrambled data obtains the first mask data by performing substitution conversion of XOR of the address data and first scramble key data for each bit, and
- the scrambling data after the substitution conversion of the first scrambled data obtains the second mask data by performing substitution conversion of XOR of the address data and second scramble key data for each bit.
10. The data processing method according to claim 8, further comprising:
- descrambling the confidential data read out from a storage position in the memory apparatus identified by the address data by XORing with the second mask data for each bit to obtain intermediate scrambled data;
- performing inverse conversion of the substitution conversion for the intermediate scrambled data; and
- descrambling data after the inverse conversion of the intermediate descrambled data by XORing with the first mask data for each bit to obtain the write-in data.
11. The data processing method according to claim 10, wherein
- a first logic circuit configured to XOR input data and the first mask data for each bit is shared for scrambling in the scrambling the write-in data to obtain first scrambled data and descrambling in the descrambling data after the inverse conversion of the intermediate descrambled data, and
- a second logic circuit configured to XOR input data and the second mask data for each bit is shared for scrambling in the scrambling data after the substitution conversion of the first scrambled data and descrambling in the descrambling the confidential data.
12. The data processing method according to claim 10, wherein
- a substitution function unit which performs one-to-one substitution conversion of input data and in which forward conversion and inverse conversion are identical is shared for the substitution conversion of the first scrambled data and the inverse conversion of the substitution conversion for the intermediate scrambled data.
13. The data processing method according to claim 8, wherein
- the scrambling the write-in data to obtain confidential data comprises scrambling target data comprising: performing one-to-one substitution conversion of the target data; and scrambling data after the substitution conversion of the target data by XORing with additional mask data corresponding to the address for each bit to obtain additional scrambled data, and
- the scrambling the target data scrambles the second scrambled data as the target data, and
- the scrambling the write-in data makes the additional scrambled data obtained by the scrambling the target data the confidential data instead of the second scrambled data.
14. A descrambling method comprising:
- descrambling confidential data obtained by using a data processing method which scrambles data, the data processing method comprising:
- outputting address data to be given to a memory apparatus from an address bus;
- scrambling write-in data as confidential data, the write-in data being to be stored into a storage position in the memory apparatus after scrambling, the storage position being identified by the address data output by the address bus, wherein the scrambling the write-in data comprises: scrambling the write-in data by XORing the write-in data and first mask data generated by using an address data which is the same as the address data output by the address bus for each bit to obtain first scrambled data, performing one-to-one substitution conversion of the first scrambled data, and scrambling data after the substitution conversion of the first scrambled data by XORing the first scrambled data after conversion and second mask data generated by using an address data which is the same as the second address data output by the address bus to obtain second scrambled data; and
- outputting the second scrambled data as the scrambled write-in data from a data bus to the memory apparatus,
- wherein the descrambling confidential data comprises:
- outputting address data to be given to the memory apparatus from an address bus;
- descrambling the confidential data read out from a storage position in the memory apparatus identified by the address data by XORing with the second mask data for each bit to obtain intermediate descrambled data;
- performing inverse conversion of the substitution conversion for the intermediate scrambled data; and
- descrambling data after the inverse conversion of the intermediate descrambled data by XORing with the first mask data for each bit to obtain the write-in data.
6061449 | May 9, 2000 | Candelore et al. |
20020053039 | May 2, 2002 | Inoue et al. |
20020112193 | August 15, 2002 | Altman et al. |
20020146019 | October 10, 2002 | Malzahn |
20060147040 | July 6, 2006 | Lee et al. |
20070286413 | December 13, 2007 | Derouet |
20080168279 | July 10, 2008 | Kanai |
20100091991 | April 15, 2010 | Shibutani et al. |
1236132 | November 1999 | CN |
101086769 | December 2007 | CN |
1 093 056 | April 2001 | EP |
09-258655 | October 1997 | JP |
2000-076144 | March 2000 | JP |
2001-109667 | April 2001 | JP |
2002-091828 | March 2002 | JP |
2O02-328844 | November 2002 | JP |
2003-087240 | March 2003 | JP |
2004-110408 | April 2004 | JP |
2006-277411 | October 2006 | JP |
2007-328789 | December 2007 | JP |
2008-58829 | March 2008 | JP |
- Chinese Office Action dated Jun. 26, 2013, 24 pages.
- Japanese Office Action dated May 14, 2013, 10 pages.
Type: Grant
Filed: Sep 20, 2011
Date of Patent: Apr 22, 2014
Patent Publication Number: 20120008782
Assignee: Fujitsu Limited (Kawasaki)
Inventors: Kazuyoshi Furukawa (Kawasaki), Takeshi Shimoyama (Kawasaki), Masahiko Takenaka (Kawasaki)
Primary Examiner: Kambiz Zand
Assistant Examiner: Jing Sims
Application Number: 13/237,317
International Classification: G06F 11/30 (20060101); G06F 12/14 (20060101);