Data processing circuit, data processing method and electronic equipment

By designing a data processing circuit in a networked terminal device and using multiple registers and data selectors to generate complex random processing sequences, the problem of information security risks in the existing technology is solved, and the security and reliability of the device are significantly improved.

CN114846473BActive Publication Date: 2024-08-27BOE TECHNOLOGY GROUP CO LTD +1
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202080002478.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2024-08-27
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

Existing Internet-connected terminal devices pose huge risks in terms of information security. Hackers can use machine learning technology to steal chip random numbers or key data, predict future data and invade the chip core, threatening the security of terminal devices.

Method used

Design a data processing circuit, including a first data processing sub-circuit and a second data processing sub-circuit, by processing the original sequence to generate a more complex and random processing sequence, using multiple registers and data selectors to implement chaotic algorithms and enhance The randomness and unpredictability of the sequence.

Benefits of technology

By generating more complex and random processing sequences, the information security of the terminal device is significantly improved, preventing hacker intrusions and data leaks, and enhancing the security and reliability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114846473B
    Figure CN114846473B
Patent Text Reader

Abstract

A data processing circuit, a data processing method and an electronic device, wherein the data processing circuit comprises a first data processing subcircuit (101) and a second data processing subcircuit (102), wherein the output end of the first data processing subcircuit (101) is connected to the input end of the second data processing subcircuit (102). The first data processing subcircuit (101) is configured to receive an original sequence to generate a first processing sequence, wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data; the second data processing subcircuit (102) is configured to receive the first processing sequence to generate a second processing sequence, wherein the nth second processing number in the second processing sequence is calculated from the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer. The randomness and complexity of the original sequence are enhanced by the data processing circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of digital integrated circuits, and in particular to a data processing circuit, a data processing method and an electronic device. Background Art

[0002] The rapid development of the Internet of Things has led to an exponential increase in connected terminals. With the improvement of AI technology, more application scenarios in the future will be communications between machines. Therefore, information security is the most basic requirement for future devices.

[0003] In order to quickly capture the market, many networked terminal equipment manufacturers do not even use security modules, or some manufacturers only use simple key modules plus software algorithms, which poses a great security risk. For example, hackers can use machine learning technology to learn the circuit architecture model through random numbers or key fragments of terminal chips, and predict future data through parameter settings. Once the same data is generated as the terminal chip, they can invade the chip core and threaten the security of the terminal device. Summary of the invention

[0004] The present disclosure aims to solve at least one of the technical problems existing in the prior art and provides a data processing circuit, a data processing method and an electronic device.

[0005] The present disclosure provides a data processing circuit, which includes a first data processing sub-circuit and a second data processing sub-circuit; wherein,

[0006] The output terminal of the first data processing sub-circuit is connected to the input terminal of the second data processing sub-circuit;

[0007] The first data processing subcircuit is configured to receive an original sequence and generate a first processing sequence; wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data;

[0008] The second data processing sub-circuit is configured to receive the first processing sequence and generate a second processing sequence; wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer.

[0009] In some embodiments, the first data processing subcircuit includes a first register and a data selector, and the first register is connected to the data selector;

[0010] The first register is configured to receive the original data;

[0011] The data selector is configured to receive the original data stored in the first register to generate the first processing sequence.

[0012] In some embodiments, the first data processing subcircuit includes three first registers and a data selector; wherein the three first registers are cascaded in sequence; the first first register is configured to receive the original sequence, each of the three first registers is connected to the data selector, and the data selector is configured to output the first processing sequence.

[0013] In some embodiments, the first data processing sub-circuit is configured to implement a first preset algorithm to generate a first processing sequence based on the original sequence; the first preset algorithm includes:

[0014] fa(n) is the first processing number, s n is the nth original data of the original sequence, s n+1 is the n+1th original data of the original sequence, s n+2 It is the n+2th original data of the original sequence.

[0015] In some embodiments, the first register comprises a first D flip-flop.

[0016] In some embodiments, the second data processing sub-circuit includes a logic processing circuit and a second register;

[0017] The input end of the logic processing circuit is connected to the output end of the first data processing sub-circuit, the output end of the logic processing circuit is connected to the input end of the second register, and the output end of the logic processing circuit is used as the output end of the second processing sub-circuit;

[0018] The logic processing circuit performs logic operations on the nth first processing number in the first processing sequence generated by the first data processing sub-circuit and the n-1th second processing number in the second processing sequence stored in the second register to obtain the nth second processing number in the second processing sequence.

[0019] In some embodiments, the logic processing circuit includes an XOR gate, and the second register includes a second D flip-flop, wherein the output of the second D flip-flop is connected to the input of the XOR gate, the output of the XOR gate is connected to the input of the second D flip-flop, and the output of the XOR gate is used as the output of the second processing sub-circuit.

[0020] In some embodiments, the data processing circuit further includes an original sequence generation subcircuit configured to randomly generate the original sequence.

[0021] In some embodiments, the original sequence generation subcircuit includes a random number generator or a digital chip fingerprint generator.

[0022] In some embodiments, the data processing circuit further includes an output subcircuit configured to output the second processing sequence in the form of an image.

[0023] In some embodiments, the image comprises a digital image or a color image. , is the first processing number, is the first processing number of the original sequence

[0024] Accordingly, an embodiment of the present disclosure further provides a data processing method, which is applied to the above-mentioned data processing circuit, and the method includes:

[0025] The first data processing subcircuit receives the original sequence to generate a first processing sequence; wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data;

[0026] The second data processing sub-circuit receives the first processing sequence to generate a second processing sequence; wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer.

[0027] Correspondingly, an embodiment of the present disclosure further provides an electronic device, which includes the above-mentioned data processing circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the structure of a data processing circuit provided by an embodiment of the present disclosure;

[0029] Figure 2 A circuit diagram of a data processing circuit provided in an embodiment of the present disclosure;

[0030] Figure 3 A schematic diagram of data processing performed by a data processing circuit according to an embodiment of the present disclosure;

[0031] Figure 4 A structural schematic diagram of another data processing circuit provided by an embodiment of the present disclosure;

[0032] Figure 5 is a schematic diagram of a random number generator according to an embodiment of the present disclosure;

[0033] Figure 6 A schematic diagram showing the graphical effect of an original sequence generated by a random number generator according to an embodiment of the present disclosure is shown;

[0034] Figure 7 A schematic diagram showing the image effect of a sequence generated after being processed by a data processing circuit according to an embodiment of the present disclosure is shown;

[0035] Figure 8 A flowchart of a data processing method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0037] The terms used to describe the embodiments of the present disclosure herein are not intended to limit and / or define the scope of the present disclosure. For example, unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by a person of ordinary skill in the field to which the present disclosure belongs. It should be understood that the "first", "second" and similar words used in the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. Unless the context clearly indicates otherwise, the singular form "one", "one" or "the" and similar words do not represent quantitative restrictions, but represent the presence of at least one.

[0038] It will be further understood that the terms "include" or "comprises" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connected" or "coupled" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to indicate relative position relationships. When the absolute position of the object being described changes, the relative position relationship may also change accordingly.

[0039] In a first aspect, an embodiment of the present disclosure provides a data processing circuit, Figure 1 A schematic diagram of a data processing circuit provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the data processing circuit 100 includes a first data processing sub-circuit 101 and a second data processing sub-circuit 102. The output end of the first data processing sub-circuit 101 is connected to the input end of the second data processing sub-circuit 102. The input end of the first data processing sub-circuit 101 is used to receive the original sequence, and the output end of the second data processing sub-circuit 102 is used to output the second processed sequence.

[0040] In this embodiment, the first data processing subcircuit 101 is configured to generate a first processing sequence based on the original sequence, wherein the first processing sequence contains a plurality of first processing numbers, wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data.

[0041] The original sequence is a data sequence to be encrypted, and the original sequence contains multiple original data. The first data processing subcircuit 101 is used to receive the original sequence containing multiple original data, calculate any first processing number through at least two original data, and then obtain the first processing sequence, and output the first processing sequence to the second data processing subcircuit 102.

[0042] It should be noted that the original sequence is a sequence composed of multiple binary numbers, and a binary number in the original sequence is an original data, for example: the original sequence is 0110001, and a "0" or a "1" therein represents an original data. The first processing sequence is a new binary number sequence generated by the original binary number sequence through the first data processing sub-circuit 101, wherein any first processing number in the first processing sequence is calculated from at least two binary numbers in the original binary number sequence.

[0043] In this embodiment, the second data processing sub-circuit 102 is configured to generate a second processing sequence based on the first processing sequence; wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer.

[0044] The second processing sequence is an encrypted data sequence, and the second processing sequence contains multiple second processing numbers. The second data processing subcircuit 102 calculates the nth second processing number through the nth first processing number and the n-1th second processing number based on the acquired first processing sequence, and then obtains the second processing sequence.

[0045] In this embodiment, the first data processing subcircuit generates a first processing sequence based on the original sequence, and the second data processing subcircuit generates a second processing sequence based on the first processing sequence, so that the generated second processing sequence is more complex and more random than the original sequence.

[0046] In some embodiments, the first data processing subcircuit includes a first register and a data selector, and the first register is connected to the data selector. The first register is configured to receive raw data; the data selector is configured to receive the raw data stored in the first register to generate a first processing sequence. In the embodiments of the present disclosure, there is no limitation on the number of first registers and data selectors, as long as the first data processing subcircuit formed by the first register and the data selector can generate a second processing sequence based on the first processing sequence.

[0047] In one example, Figure 2 A circuit diagram of a data processing circuit provided by an embodiment of the present disclosure, such as Figure 2 As shown, the first data processing subcircuit 101 includes three first registers 21, 22, 23 and a data selector 24. The three first registers 21, 22, 23 are cascaded in sequence, the first first register 21 is configured to receive the original sequence, each of the three first registers 21, 22, 23 is connected to the data selector 24, and the data selector 24 is configured to output the first processing sequence.

[0048] In this embodiment, the three first registers 21, 22, 23 can be the same register or different registers. This embodiment is described by assuming that the three first registers 21, 22, 23 are first D flip-flops. The data selector 24 includes at least one operation circuit of an AND gate, an OR gate, a NOT gate, etc.

[0049] For example, in some embodiments, the first data processing subcircuit 101 includes three first registers 21, 22, 23 and a data selector 24. The original sequence is named S, and the length of the entire original sequence is n. The original sequence is represented as: {s1, s2, s3, s4, ..., s n}.

[0050] The first data processing sub-circuit is configured to implement a first preset algorithm to generate a first processing sequence based on the original sequence; in one example, the first preset algorithm may be, but is not limited to: Among them, fa(n) is the nth first processing number, s n is the nth original data of the original sequence, s n+1 is the n+1th original data of the original sequence, s n+2 is the n+2th original data of the original sequence. It can be known from the first preset algorithm that any first processing number in the first processing sequence is calculated by three original data in the original data, that is, it is determined by the original data itself and the last two original numbers of the original number itself. Of course, it should be understood that the first preset algorithm is not limited to the above case. When the first preset algorithm changes, the first data processing subcircuit for implementing the algorithm will also change accordingly.

[0051] In some embodiments, the second data processing subcircuit 102 is configured to implement a second preset algorithm to generate a second processing sequence based on the first processing sequence; the second preset algorithm includes: The obtained) and the n-1th second processing number in the second processing sequence are XORed to obtain the nth second processing number in the second processing sequence. In an example, the second preset algorithm may be but is not limited to:

[0052] fb(n)=fb(n-1)xor[fa(n)], wherein fa(n) is the nth first processing number, fb(n) is the nth second processing number, and fb(n-1) is the n-1th second processing number. It can be seen from the second preset algorithm that the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number. Of course, it should be understood that the second preset algorithm is not limited to the above-mentioned case. When the second preset algorithm changes, the second data processing subcircuit 102 for implementing the algorithm will also change accordingly.

[0053] In this embodiment, since the first data processing sub-circuit 101 is configured to implement the first preset algorithm The second data processing subcircuit 102 is configured to implement a second preset algorithm fb(n)=fb(n-1)xor[fa(n)], so the data processing circuit including the first data processing subcircuit and the second data processing subcircuit is configured to implement: It can be seen from the above formula that the processing number fb(n) in the second processing sequence is related to the processing number fb(n-1), that is, the value of the subsequent processing number in the second processing sequence is related to the value of the previous processing number. Therefore, the method implemented by the entire data processing circuit is a chaotic method, and the sequence obtained by processing the original sequence through the data processing circuit is unpredictable.

[0054] In one example, the data processing circuit is configured to implement: For example, if an original sequence is 01110101, we know that S1=0, S2=1, S3=1, S4=1, S5=0, S6=1, S7=0, S8=1; through the data processing circuit:

[0055]

[0056]

[0057]

[0058]

[0059]

[0060]

[0061] The sequence obtained by the data processing circuit after the original sequence is 011010, so the randomness and complexity of the original sequence are enhanced by the data processing circuit.

[0062] In some embodiments, the second data processing sub-circuit 102 includes a logic processing circuit and a second register, wherein the input end of the logic processing circuit is connected to the output end of the first data processing sub-circuit, the output end of the logic processing circuit is connected to the input end of the second register, and the output end of the logic processing circuit is used as the output end of the second processing sub-circuit.

[0063] The logic processing circuit performs logic operations on the nth first processing number in the first processing sequence generated by the first data processing subcircuit and the n-1th second processing number in the second processing sequence stored in the second register to obtain the nth second processing number in the second processing sequence.

[0064] Continue to refer Figure 2 In some embodiments, the logic processing circuit 25 includes an XOR gate, and the second register 26 includes a second D flip-flop. The output end of the second D flip-flop 26 is connected to the input end of the XOR gate 25, the output end of the XOR gate 25 is connected to the input end of the D flip-flop 26, and the output end of the XOR gate 25 is used as the output end of the second data processing sub-circuit 102. The second D flip-flop 26 can be the same as the first D flip-flops 21, 22, and 23, or different. It should be noted that in this embodiment, the first and the second are only used to distinguish different flip-flops, but the functions implemented are the same, and they are all used to store sequence data.

[0065] like Figure 2 As shown, the processing process of the data processing circuit is as follows: the original sequence S is input, the three-level cache is completed, and then after passing through the data selector 24, it is XORed with the previous output to output a second processing number, such as Figure 3 As shown, based on the same processing steps, all second processing numbers in the second processing sequence are obtained.

[0066] The entire data processing process is described as follows:

[0067] Among them, r n is the nth second processing number in the processed second processing sequence, s n ,s n+1 ,s n+2 is the third-level storage value of S, r n-1 Yes n The stored value of .

[0068] In one example, when the original sequences input to the data processing circuit are 001 and 011, both sequences generate one bit of data 0 after passing through the data processing circuit. Therefore, even if the output data 0 is stolen, it is impossible to determine whether s n ,s n+1 ,s n+2 specific values ​​and relationships.

[0069] In one example, continue to refer to Figure 2 , the data processing circuit includes a first data processing subcircuit 101 and a second data processing subcircuit 102. The first data processing subcircuit 101 includes three first registers 21, 22, 23 and a data selector 24. The second data processing subcircuit includes a logic processing circuit and a second register. The three first registers 21, 22, 23 are cascaded in sequence, the first first register 21 is configured to receive the original sequence, each of the three first registers 21, 22, 23 is connected to the data selector 24, and the data selector 24 is configured to output the first processing sequence. The logic processing circuit 25 includes an XOR gate, the second register 26 includes a second D flip-flop, the output end of the second D flip-flop 26 is connected to the input end of the XOR gate 25, the output end of the XOR gate 25 is connected to the input end of the D flip-flop 26, and the output end of the XOR gate 25 is used as the output end of the second data processing subcircuit 102.

[0070] The working principles of the various parts in the first data processing sub-circuit 101 and the second data processing sub-circuit 102 in the data processing circuit are the same as the above working principles, and thus will not be described in detail here.

[0071] In this embodiment, a first processing sequence is generated based on the original sequence by a first data processing sub-circuit, and any first processing number in the first processing sequence is related to at least two original data in the original sequence, and a second data processing sub-circuit generates a second processing sequence based on the first processing sequence, and any second processing number in the second processing sequence is related to its previous second processing number, so the second processing sequence generated by the first data processing sub-circuit and the second data processing sub-circuit is more complex and more random than the original sequence.

[0072] Figure 4 A structural diagram of another data processing circuit provided by an embodiment of the present disclosure, such as Figure 4 As shown, the data processing circuit further includes an original sequence generation subcircuit 103 and an output subcircuit 104. The original sequence generation subcircuit 103 is configured to randomly generate the original sequence. The output subcircuit 104 is configured to output the second processed sequence in the form of an image.

[0073] In some embodiments, the output subcircuit 104 includes but is not limited to a level conversion module (not shown in the figure) and a display module (not shown in the figure), the level conversion module is used to convert the voltage signal output by the second data processing subcircuit into a digital signal, and the display module outputs image data in response to the digital signal input by the level conversion module, and the image includes but is not limited to a digital image or a color image. Among them, the digital image includes but is not limited to a binary sequence, ID, etc.; the color image includes but is not limited to an image composed of black and white squares.

[0074] In some embodiments, the original sequence generation subcircuit 103 includes a random number generator and a digital chip fingerprint generator.

[0075] In some embodiments, Figure 5 As shown, the random number generator 51 includes: a logic operation unit 512, a shift register and a plurality of data selectors 513. The number of bits of the random number seed SG is n+1. The shift register includes an n+1-stage D flip-flop 514. The input end of the n+1-stage D flip-flop 514 is connected to the output end o1 of the n+1 data selectors 513 in a one-to-one correspondence. Specifically, the input end of the first-stage D flip-flop 514 is connected to the output end o1 of the first data selector 513, the input end 514 of the second-stage D flip-flop is connected to the output end o1 of the second data selector 513, and so on, until the input end of the n+1-stage D flip-flop 514 is connected to the output end o1 of the n+1-stage data selector 513. The first input terminal i1 of the 1st data selector 513 is connected to the output terminal of the logic operation unit 512, and the first input terminal i1 of the jth data selector 513 is connected to the output terminal of the j-1th D flip-flop 514, where j is an integer and 1<j≤n+1. The values ​​of the n+1 bits of the random number seed SG are respectively input to the second input terminals i2 of the n+1 data selectors 512, and the two input terminals of the logic operation unit 512 are respectively connected to the output terminals of the latter two stages of D flip-flops 514. When the random number generator 51 is triggered to generate a random number, the second input terminal i2 of each data selector 513 is controlled to be connected to the output terminal o1, so that the n+1 bits of the random number seed SG are respectively input to the input terminals of the n+1th stage of D flip-flops 514, and then the first input terminal i1 of each data selector 513 is controlled to be connected to the output terminal o1. Each bit in the binary sequence output by the n+1-stage D flip-flop 514 is denoted as prbs[0], prbs[1], ... prbs[n], and prbs[n-1] and prbs[n] are respectively input to two input terminals of the logic operation unit 512.

[0076] For example, multiple binary sequences generated by the random number generator 51 after multiple right shifts are arranged in sequence to form the random number sequence, the first bit prbs[0] in the first binary sequence is used as the first bit of the random number sequence, and the last bit prbs[n] of the last binary sequence is used as the last bit of the random number sequence.

[0077] For example, the random number seed is 01100010, and the binary sequence generated by the random number generator 51 after the first right shift operation is: 10110001; the binary sequence generated by the second right shift operation is: 11011000; the binary sequence generated by the third right shift operation is: 01101100; the binary sequence generated by the fourth right shift operation is: 00110110, and so on. The random number sequence is composed of four binary sequences arranged in sequence according to the generation order, that is, the random number sequence is 10110001110110000110110000110110.

[0078] Figure 6 A schematic diagram of the visualization effect of the original sequence generated by the random number generator 51 according to some embodiments of the present disclosure is shown, where each pixel corresponds to a random number, and the grayscale of each pixel is determined by the value of the corresponding random number. When the random number is 0, the pixel is black, and when the random number is 1, the pixel is white. Figure 7 Shown according to Figure 6 The figure shows the graphical effect of the original sequence after being processed by the data processing circuit. It can be seen that the processed sequence has been greatly improved in terms of complexity and randomness.

[0079] Figure 8 A flowchart of a data processing method provided by an embodiment of the present disclosure is shown in FIG. Figure 8 As shown, a data processing method is applied to the above data processing circuit, and the method includes:

[0080] S101. A first data processing sub-circuit receives an original sequence to generate a first processing sequence, wherein each first processing number in the first processing sequence is calculated from at least two original data in the original data.

[0081] In this embodiment, the first data processing subcircuit 101 receives an original sequence to generate a first processing sequence. Specifically, the original sequence is a data sequence to be encrypted, the original sequence contains multiple original data, and the first processing sequence contains multiple first processing numbers. The first data processing subcircuit 101 is used to receive an original sequence containing multiple original data, calculate any first processing number through at least two original data, and then obtain the first processing sequence, and output it to the second data processing subcircuit 102.

[0082] S102. The second data processing sub-circuit receives the first processing sequence to generate a second processing sequence, wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥1 and n is a positive integer.

[0083] In this embodiment, the second data processing subcircuit 102 is configured to receive the first processing sequence to generate a second processing sequence; specifically, the second processing sequence is an encrypted data sequence, and the second processing sequence contains multiple second processing numbers. The second data processing subcircuit 102 calculates the nth second processing number based on the acquired first processing sequence through the nth first processing number and the n-1th second processing number, thereby obtaining the second processing sequence.

[0084] In this embodiment, the first data processing subcircuit generates a first processing sequence based on the original sequence, and the second data processing subcircuit generates a second processing sequence based on the first processing sequence, so that the generated second processing sequence is more complex and more random than the original sequence.

[0085] An embodiment of the present disclosure further provides an electronic device, which includes the above-mentioned data processing circuit provided in the embodiment of the present disclosure.

[0086] The electronic device in the embodiment of the present disclosure may be a chip in a communication device. Each part of the data processing circuit provided in the embodiment of the present disclosure adopts a digital circuit, so it can be easily integrated into various chips.

[0087] The sequence generated by the data processing circuit in the embodiment of the present disclosure has high complexity and randomness, thereby improving the security and reliability of the electronic device in communication.

[0088] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A data processing circuit, comprising a first data processing sub-circuit and a second data processing sub-circuit; in, The output terminal of the first data processing sub-circuit is connected to the input terminal of the second data processing sub-circuit; The first data processing subcircuit is configured to receive an original sequence and generate a first processing sequence; wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data; The second data processing subcircuit is configured to receive the first processing sequence to generate a second processing sequence; wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer; The first data processing sub-circuit includes three first registers and a data selector; wherein the three first registers are cascaded in sequence; the first first register is configured to receive the original sequence, each of the three first registers is connected to the data selector, and the data selector is configured to output the first processing sequence.

2. The data processing circuit according to claim 1, in, The first data processing subcircuit is configured to implement a first preset algorithm to generate a first processing sequence based on an original sequence; The first preset algorithm includes: fa(n) is the first processing number, S n is the nth original data of the original sequence, S n+1 is the n+1th original data of the original sequence, S n+2 It is the n+2th original data of the original sequence.

3. The data processing circuit according to claim 1, in, The first register includes a first D flip-flop.

4. The data processing circuit according to claim 1 or 2, in, The second data processing sub-circuit comprises a logic processing circuit and a second register; The input end of the logic processing circuit is connected to the output end of the first data processing sub-circuit, the output end of the logic processing circuit is connected to the input end of the second register, and the output end of the logic processing circuit is used as the output end of the second processing sub-circuit; The logic processing circuit performs logic operations on the nth first processing number in the first processing sequence generated by the first data processing sub-circuit and the n-1th second processing number in the second processing sequence stored in the second register to obtain the nth second processing number in the second processing sequence.

5. The data processing circuit according to claim 4, in, The logic processing circuit includes an XOR gate, and the second register includes a second D flip-flop, wherein the output of the second D flip-flop is connected to the input of the XOR gate, the output of the XOR gate is connected to the input of the second D flip-flop, and the output of the XOR gate is used as the output of the second processing sub-circuit.

6. The data processing circuit according to claim 2, in, The method further comprises an original sequence generating subcircuit configured to randomly generate the original sequence.

7. The data processing circuit according to claim 6, in, The original sequence generation subcircuit includes a random number generator or a digital chip fingerprint generator.

8. The data processing circuit according to claim 1 or 2, in, The system also includes an output subcircuit configured to output the second processing sequence in the form of an image.

9. The data processing circuit according to claim 8, in, The image includes a digital image or a color image.

10. A data processing method, applied to a data processing circuit according to any one of claims 1 to 9, wherein the method include: The first data processing subcircuit receives the original sequence to generate a first processing sequence; wherein any first processing number in the first processing sequence is calculated from at least two original data in the original data; The second data processing subcircuit receives the first processing sequence to generate a second processing sequence; wherein the nth second processing number in the second processing sequence is calculated by the nth first processing number and the n-1th second processing number; n≥2 and n is a positive integer; Among them, the first data processing sub-circuit includes three first registers and a data selector; wherein the three first registers are cascaded in sequence; the first first register is configured to receive the original sequence, each of the three first registers is connected to the data selector, and the data selector is configured to output the first processing sequence.

11. An electronic device comprising the data processing circuit according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Scan chain and method that realizing high speed testing circuitry

    CN101097245A

  • Storage circuit

    CN103839577A

  • Output circuit and output method of random number generator

    CN105354008A

  • Hardware encryption system and method and server

    CN107220545A

  • Power Dissipative Hardware Trojan Horse Based on AES Encryption Circuit

    CN109522605A