Chip encryption method, multi-chip system and electronic equipment
By transmitting the ciphertext data and the secret key separately in the chip encryption method and processing it using different encryption methods, the problem of data transmission security risks in the prior art is solved, and the cracking difficulty and the security of data transmission are improved.
Patent Information
- Application Number
- CN202210296480.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-03-24
AI Technical Summary
The existing chip encryption methods are easily decrypted by non-receivers during multi-party data transmission, causing security risks.
By encrypting the ciphertext data and the secret keys in different encryption methods, the same set of secret keys will appear in different forms when transmitted between different chips, which will increase the difficulty of cracking.
It greatly improves the difficulty of cracking ciphertext data, enhances the security of data transmission, and facilitates the determination of problem chips during chip repair.
Smart Images

Figure CN114817948B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of chip encryption technology, and specifically relates to a chip encryption method, a multi-chip system and an electronic device. Background Art
[0002] With the development and progress of science and technology, people pay more and more attention to the security of data, but cracking technology is also constantly developing, and more and more advanced cracking technology is constantly coming out. Therefore, in the process of product development, the originality and confidentiality of data become more important, and even become the core protection points of core technology.
[0003] During the project development process, there will be multi-party cooperative development. Each party has its own core technology and needs to jointly develop it, but it also needs to encrypt its core technology during the development process.
[0004] Although existing encryption methods can encrypt the technologies of all parties, most of them use the same encryption method. During the process of multi-party transmission of data, it is easy to be decrypted by other non-receiving parties, thus causing great security risks. Summary of the invention
[0005] The present application proposes a chip encryption method, a multi-chip system and an electronic device, which encrypt the ciphertext data and the secret key using different encryption methods and then transmit them separately, which greatly increases the difficulty of cracking the ciphertext data.
[0006] A first aspect of the present application provides a chip encryption method, which is applied to a multi-chip system, wherein the multi-chip system includes at least a first chip, a second chip, and a third chip. The method includes:
[0007] The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext;
[0008] The first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip;
[0009] The second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip;
[0010] The third chip decrypts the first ciphertext based on the first encryption method to obtain the first ciphertext, decrypts the first ciphertext based on the third encryption method to obtain the secret key, and decrypts the first ciphertext using the secret key to obtain the target data.
[0011] In some embodiments of the present application, the first chip receives the request data sent by the third chip and generates a corresponding key, including:
[0012] The first chip receives the request data sent by the third chip, and decrypts the request data according to the first encryption method agreed with the third chip to generate plaintext request data;
[0013] The first chip generates a set of random numbers as a secret key according to the plaintext request data.
[0014] In some embodiments of the present application, before the first chip receives the request data sent by the third chip, the process further includes:
[0015] The third chip encrypts the plaintext request data using the first encryption method agreed upon with the first chip to generate ciphertext request data;
[0016] The third chip sends the ciphertext request data to the first chip.
[0017] In some embodiments of the present application, the multi-chip system further includes a fourth chip; the first chip uses a first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip, including:
[0018] The first chip uses an encryption method agreed upon with the fourth chip to re-encrypt the first ciphertext and then sends the encrypted text to the fourth chip;
[0019] The fourth chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends it to the third chip.
[0020] In some embodiments of the present application, the multi-chip system further includes a fourth chip and a fifth chip; the first chip uses a first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip, including:
[0021] The first chip determines a first transmission path of the first ciphertext according to the first ciphertext and a preset transmission rule;
[0022] The first chip encrypts the first ciphertext again using a corresponding encryption method according to the first transmission path, and sends the ciphertext to a corresponding first target chip; the first target chip is the fourth chip or the fifth chip;
[0023] The first target chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the encrypted text to the third chip.
[0024] In some embodiments of the present application, the first chip uses a second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip, including:
[0025] The first chip determines a second transmission path of the secret key according to the secret key and a preset transmission rule;
[0026] The first chip encrypts the secret key again using a corresponding encryption method according to the second transmission path, and sends the secret key to a corresponding second target chip, where the second target chip is the fourth chip or the fifth chip;
[0027] The second target chip decrypts the secret key, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the first ciphertext to the third chip.
[0028] In some embodiments of the present application, before the first chip receives the request data sent by the third chip, the method further includes:
[0029] The first chip, the second chip, the third chip, the fourth chip and the fifth chip respectively preset corresponding transmission rules according to the type of data to be transmitted.
[0030] The second aspect of the present application provides a multi-chip system, comprising at least a first chip, a second chip and a third chip, wherein:
[0031] The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext;
[0032] The first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip;
[0033] The second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip;
[0034] The third chip decrypts the first ciphertext based on the first encryption method, decrypts the secret key based on the third encryption method, and decrypts the first ciphertext using the secret key to obtain the target data.
[0035] The third aspect of the present application provides a multi-chip system, comprising at least a first chip, a second chip, a third chip, a fourth chip and a fifth chip; wherein:
[0036] The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext;
[0037] The first chip determines a first transmission path of the first ciphertext and a second transmission path of the secret key according to the first ciphertext, the secret key and a preset transmission rule;
[0038] The first chip re-encrypts the first ciphertext and the secret key using corresponding encryption methods according to the first transmission path and the second transmission path, and sends them to the corresponding first target chip and the second target chip respectively; the first target chip and the second target chip are both the fourth chip or the fifth chip;
[0039] The first target chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the encrypted text to the third chip;
[0040] The second target chip decrypts the secret key, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends it to the third chip;
[0041] The third chip decrypts the first ciphertext and the secret key respectively based on the agreed encryption method, and decrypts the first ciphertext by using the secret key to obtain the target data.
[0042] An embodiment of the fourth aspect of the present application provides an electronic device, comprising the multi-chip system as described in the second aspect or the third aspect.
[0043] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0044] The encryption method provided in the embodiment of the present application transmits the ciphertext data and the secret key corresponding to the request data separately. Since different encryption methods are performed between multiple chips during the communication process, the communication data of the same ciphertext data between different chips are different. In this way, the secret key and the ciphertext are transmitted separately. After being transferred between multiple chips, if the same set of secret keys is captured when being transmitted between different chips during the transmission process, the captured secret keys are also different, thereby greatly increasing the difficulty of cracking the ciphertext data. And since different encryption methods are used for transmission between different chips, when performing chip or program maintenance, it is convenient for the repairer to determine the problem chip, and then targeted maintenance can be performed. At the same time, setting up mutual encryption between multiple chips can also reduce the development difficulty and cost of each individual chip designer, and can also increase the cooperative relationship between partners. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0046] Figure 1 A schematic diagram of the structure of a multi-chip system in an embodiment of the present application is shown;
[0047] Figure 2 A schematic diagram of a chip encryption method provided in an embodiment of the present application is shown;
[0048] Figure 3 A schematic diagram of a process flow of another chip encryption method provided in an embodiment of the present application is shown;
[0049] Figure 4 A structural schematic diagram of another multi-chip system in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0050] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0051] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0052] A chip encryption method, a multi-chip system and an electronic device proposed according to an embodiment of the present application are described below in conjunction with the accompanying drawings.
[0053] This embodiment studies and analyzes the existing encryption methods. It can be seen that the existing encryption methods include the following aspects: 1) The chip adds an original read protection mechanism. After adding read protection, the data in the chip cannot be read from the outside. If you want to burn the code again, you need to remove the protection. If you remove the protection, you need to erase all the internal data. This encryption method can automatically remove the read protection mechanism, which is convenient for secondary development or upgrading. It can be applied to the encryption of multiple chips, but the anti-cracking level is not very high. 2) Physically destroy the path of reading data to prevent the data from being read. After the development of this encryption method is completed and finalized, the path of reading data is deliberately destroyed during the mass production process to prevent the core data from being cracked. However, this method destroys the physical path and increases the difficulty of subsequent secondary development or upgrading. 3) The chip adds an encryption algorithm to protect the internal data of the chip. With this encryption method, different levels of encryption algorithms can be added according to the needs of the self-encryption level, and the cracking difficulty is relatively large. However, during the multi-party transmission of data, it is easy to be decrypted by other non-receiving parties, thereby causing great security risks. 4) Multi-chip network encryption system based on physical isolation. This encryption system can physically isolate the intranet from the extranet, ensuring high-speed transmission of network data, and realizing high-speed data encryption and decryption and remote centralized management. However, this encryption method is suitable for multi-chip networks in the same intranet, and cannot realize high-speed data encryption and decryption for chip networks in different intranets. 5) Multi-chip key synchronization method. This encryption method realizes key synchronization of multiple chips in the cryptographic device. The same cryptographic device can realize business processing of multiple chips, which will not increase the complexity of the business system and reduce the business load. However, in the process of multi-party transmission of data, it is easy to be decrypted by other non-receiving parties, which causes great security risks.
[0054] In view of the above problems, this embodiment provides a chip encryption method, which can be applied to Figure 1The multi-chip system shown in the figure comprises at least a first chip, a second chip and a third chip. Each chip can be any integrated circuit chip, and each chip is connected to each other in pairs, and can perform encrypted communication. The encryption method transmits the ciphertext data and the secret key corresponding to the request data separately. Since the multi-chips perform different encryption methods during the communication process, the communication data of the same ciphertext data between different chips are different. In this way, the secret key and the ciphertext are transmitted separately. After being transferred between the multi-chips, if the same set of secret keys is captured during the transmission between different chips, the captured secret keys are also different, which greatly increases the difficulty of cracking the ciphertext data. And since different encryption methods are used for transmission between different chips, when performing chip or program maintenance, it is convenient for the repairer to judge the problem chip, and then targeted maintenance can be performed. At the same time, setting up mutual encryption between multiple chips can also reduce the development difficulty and cost of each individual chip designer, and can also increase the cooperative relationship between partners.
[0055] Please refer to Figure 2 , is a flow chart of the encryption method provided in the embodiment of the present application, such as Figure 2 As shown, the method may include the following steps:
[0056] Step S1: The first chip receives request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt target data corresponding to the request data to generate a first ciphertext.
[0057] During the application process, after the first chip receives the request data sent by the third chip, it determines the target data that the third chip wants to obtain according to the request data, generates a corresponding secret key, and then uses the secret key to encrypt the target data to generate a first ciphertext. The first chip can generate a secret key corresponding to the request data sent by the third chip, or it can generate a secret key corresponding to the target data, which is not specifically limited in this embodiment.
[0058] Usually, the request data sent by the third chip and received by the first chip is also encrypted. Accordingly, the process of the first chip receiving the request data sent by the third chip and generating the corresponding secret key may include the following processing: the first chip first receives the ciphertext request data sent by the third chip, decrypts the request data according to the decryption method corresponding to the first encryption method agreed with the third chip, and generates plaintext request data; then the first chip generates a set of random numbers as the secret key according to the decrypted plaintext request data. The random number secret key used in this embodiment can increase the uncertainty of the secret key, so that the secret key generated each time is different, which can increase the difficulty of cracking to a certain extent.
[0059] The first encryption method may be any data encryption method, as long as the encrypted ciphertext can be transmitted between the two chips and only the chips at both ends of the data transmission can decrypt each other, for example, a protection mechanism or encryption algorithm may be added. In addition, the use of a random number as a secret key is only one implementation method of this embodiment, and this embodiment does not specifically limit this, as long as the secret key can be generated.
[0060] Before the first chip receives the request data sent by the third chip, the multi-chip encryption method also includes an encryption process for the request data. Accordingly, the third chip uses the first encryption method agreed with the first chip to encrypt the plaintext request data to generate ciphertext request data, and then the third chip sends the ciphertext request data to the first chip. That is, the request data sent by the third chip and received by the first chip is the ciphertext request data.
[0061] In step S2, the first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and sends it to the second chip.
[0062] After the first chip generates the first ciphertext, it uses the first encryption method agreed with the third chip to re-encrypt the first ciphertext, and uses the second encryption method agreed with the second chip to encrypt the secret key. Then, the first chip sends the re-encrypted ciphertext data of the first ciphertext to the third chip; and sends the encrypted ciphertext secret key to the second chip.
[0063] Among them, the second encryption method can also be any data encryption method, as long as the encrypted ciphertext can be transmitted between the two chips, and only the chips at both ends of the data transmission can decrypt each other. For example, a protection mechanism or encryption algorithm can also be added.
[0064] In step S3, the second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip.
[0065] After receiving the ciphertext key sent by the first chip, the second chip can determine that the encryption method is the second encryption method mentioned above according to the sender first chip, and then decrypt the ciphertext key according to the corresponding decryption method. After the second chip decrypts the ciphertext key, it obtains the plaintext key, and then encrypts the plaintext key using the third encryption method agreed with the third chip. Then, the second chip sends the encrypted ciphertext key to the third chip.
[0066] Among them, the third encryption method can also be any data encryption method, as long as the encrypted ciphertext can be transmitted between the two chips, and only the chips at both ends of the data transmission can decrypt each other. For example, a protection mechanism or encryption algorithm can also be added.
[0067] In step S4, the third chip decrypts the first ciphertext based on the first encryption method, decrypts the secret key based on the third encryption method, and decrypts the first ciphertext using the secret key to obtain the target data.
[0068] After receiving the ciphertext data sent by the first chip, the third chip can decrypt the received ciphertext data based on the decryption method corresponding to the first encryption method to obtain the above-mentioned first ciphertext, that is, the ciphertext target data. After receiving the ciphertext secret key sent by the second chip, the third chip can decrypt the received ciphertext secret key based on the decryption method corresponding to the third encryption method to obtain the plaintext secret key. Then, the third chip can use the plaintext secret key to decrypt the ciphertext target data to obtain the plaintext target data.
[0069] Combine the following Figure 3 A chip encryption method applied to a multi-chip system including three chips (a first chip, a second chip, and a third chip) is described in detail.
[0070] First, the third chip generates request data based on the target data to be obtained, encrypts the request data using the first encryption method agreed with the first chip, generates ciphertext request data, and sends the ciphertext request data to the first chip. After receiving the ciphertext request data, the first chip decrypts the ciphertext request data based on the decryption method corresponding to the first encryption method to obtain plaintext request data, and then prepares the target data that the third chip wants to obtain based on the plaintext request data, generates a secret key for the target data, and encrypts the target data using the secret key to obtain the first ciphertext. Then, on the one hand, the first chip uses the first encryption method agreed with the third chip to re-encrypt the first ciphertext and send it to the third chip; on the other hand, it uses the second encryption method agreed with the second chip to re-encrypt the secret key and send it to the second chip. Then, after receiving the encrypted first ciphertext, the first chip decrypts the first ciphertext according to the decryption method corresponding to the first encryption method to obtain the ciphertext target data. At the same time, after receiving the encrypted ciphertext key, the second chip decrypts the ciphertext key according to the decryption method corresponding to the second encryption method to obtain the plaintext key, and then uses the third encryption method agreed with the third chip to encrypt the key again and send it to the third chip. Finally, the third chip decrypts the encrypted key according to the decryption method corresponding to the third encryption method to obtain the plaintext key, and then the ciphertext target data can be decrypted by the plaintext key to obtain the plaintext target data.
[0071] In a specific implementation of this embodiment, the multi-chip system may further include a fourth chip; accordingly, the first chip adopts the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then send it to the third chip, which may include the following processing: the first chip adopts the encryption method agreed upon with the fourth chip to re-encrypt the first ciphertext and then send it to the fourth chip; the fourth chip decrypts the first ciphertext, and adopts the encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then send it to the third chip. The first encryption method here can be understood as the process of first re-encrypting the first ciphertext using the encryption method agreed upon with the fourth chip and then sending it to the fourth chip, and then the fourth chip decrypts the first ciphertext and adopts the encryption method agreed upon with the third chip to re-encrypt the first ciphertext.
[0072] The multi-chip system of this embodiment also includes a fourth chip, so that the above-mentioned first ciphertext can also be transmitted to the third chip after being authenticated by other chips, and the data transmission between the fourth chip and the first chip and the third chip adopts different encryption methods, which can further increase the difficulty of cracking and enhance the binding relationship between multiple chips, which is conducive to cooperation between multiple chips.
[0073] In another specific implementation of this embodiment, Figure 4 As shown, the multi-chip system also includes a fourth chip and a fifth chip; accordingly, the first chip adopts the first encryption method agreed with the third chip to re-encrypt the first ciphertext and then send it to the third chip, which may include the following processing: the first chip determines the first transmission path of the first ciphertext according to the first ciphertext and the preset transmission rule; the first chip adopts the corresponding encryption method to re-encrypt the first ciphertext according to the first transmission path, and sends it to the corresponding first target chip; the first target chip is the fourth chip or the fifth chip; the first target chip decrypts the first ciphertext, and adopts the encryption method agreed with the third chip to re-encrypt the first ciphertext and then send it to the third chip. That is, the first encryption method here can be understood as first determining the first transmission path of the first ciphertext according to the first ciphertext and the preset transmission rule, and then re-encrypting the first ciphertext according to the first transmission path using the corresponding encryption method, and sending it to the corresponding first target chip, and then the first target chip decrypts the first ciphertext and adopts the encryption method agreed with the third chip to re-encrypt the first ciphertext. The process.
[0074] It should be noted that the transmission rules here and below can be to authenticate the data to be transmitted through either the fourth chip or the fifth chip, or to authenticate the data to be transmitted through the fourth chip and the fifth chip respectively at one time, and this embodiment does not make any specific limitations on this.
[0075] The multi-chip system of this embodiment also includes a fourth chip and a fifth chip, so that the above-mentioned first ciphertext can also be transmitted to the third chip after being authenticated by other chips, and the data transmission between the fourth chip and the first chip and the third chip adopts different encryption methods, which can further increase the difficulty of cracking and enhance the binding relationship between multiple chips, which is conducive to cooperation between multiple chips.
[0076] Correspondingly, the first chip adopts the second encryption method agreed with the second chip to encrypt the secret key and send it to the second chip, including: the first chip determines the second transmission path of the secret key according to the secret key and the preset transmission rule; the first chip adopts the corresponding encryption method according to the second transmission path to encrypt the secret key again, and sends it to the corresponding second target chip, the second target chip is the fourth chip or the fifth chip; the second target chip decrypts the secret key, and adopts the encryption method agreed with the third chip to encrypt the first ciphertext again and send it to the third chip. That is, the second encryption method here can be understood as the above-mentioned process of determining the second transmission path of the secret key according to the secret key and the preset transmission rule, and adopting the corresponding encryption method according to the second transmission path to encrypt the secret key again, and sending it to the corresponding second target chip, the second target chip decrypts the secret key, and adopts the encryption method agreed with the third chip to encrypt the first ciphertext again.
[0077] Accordingly, before the first chip receives the request data sent by the third chip, the chip encryption method also includes the step of presetting transmission rules, that is, the first chip, the second chip, the third chip, the fourth chip and the fifth chip respectively preset corresponding transmission rules according to the type of data to be transmitted.
[0078] The type of the data to be transmitted can be a data format type (such as binary, decimal, etc.), or a data value type (such as bit 0 or bit 1, or the ending value is bit 0 or bit 1). The corresponding transmission rules are preset according to the type of data to be transmitted, that is, different types of data to be transmitted can be set with different transmission rules. For example, the binary key is directly transmitted to the third chip through the second chip; the decimal key is first transmitted to the fourth chip in accordance with the above-mentioned encrypted communication method, and after passing the authentication of the fourth chip (authentication, that is, the process of the chip decrypting the received ciphertext data and then encrypting and sending it), it is then transmitted to the second chip; and the hexadecimal key is first transmitted to the fourth chip and the fifth chip in sequence in accordance with the above-mentioned encrypted communication method, and after passing the authentication of the fourth chip and the fifth chip, it is then transmitted to the second chip.
[0079] It should be noted that this embodiment does not specifically limit the specific structures and relative relationships of the above-mentioned first chip, second chip, third chip, fourth chip and fifth chip. Each chip in the multi-chip system can be the above-mentioned first chip, second chip, third chip, fourth chip and fifth chip.
[0080] The chip encryption method provided in this embodiment is applied to a multi-chip system including at least a first chip, a second chip and a third chip. After receiving the request data from the third chip, the first chip can transmit the ciphertext data and the secret key corresponding to the request data separately. Since the multi-chips perform different encryption methods during the communication process, the communication data of the same ciphertext data between different chips are different. In this way, the secret key and the ciphertext are transmitted separately. After being transferred between the multi-chips, if the same set of secret keys is captured during the transmission process between different chips, the captured secret keys are also different, thereby greatly increasing the difficulty of cracking the ciphertext data. And since different encryption methods are used for transmission between different chips, when performing chip or program maintenance, it is convenient for the repairer to determine the problem chip, and then carry out targeted maintenance. At the same time, setting up mutual encryption between multiple chips can also reduce the development difficulty and cost of each individual chip designer, and can also increase the cooperative relationship between partners.
[0081] Based on the same concept as the above chip encryption method, this embodiment also provides a multi-chip system, which includes at least a first chip, a second chip and a third chip, wherein:
[0082] The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext;
[0083] The first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip;
[0084] The second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip;
[0085] The third chip decrypts the first ciphertext based on the first encryption method, decrypts the secret key based on the third encryption method, and decrypts the first ciphertext using the secret key to obtain target data.
[0086] The multi-chip system provided in this embodiment is based on the same concept as the above-mentioned chip encryption method, so it can at least achieve the beneficial effects that can be achieved by the above-mentioned chip encryption method, which will not be described in detail here.
[0087] Based on the same concept as the above chip encryption method, this embodiment also provides a multi-chip system, which includes at least a first chip, a second chip, a third chip, a fourth chip and a fifth chip; wherein,
[0088] The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext;
[0089] The first chip determines a first transmission path of the first ciphertext and a second transmission path of the secret key according to the first ciphertext, the secret key and a preset transmission rule;
[0090] The first chip re-encrypts the first ciphertext and the secret key using corresponding encryption methods according to the first transmission path and the second transmission path, and sends them to the corresponding first target chip and the second target chip respectively; the first target chip and the second target chip are both the fourth chip or the fifth chip;
[0091] The first target chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends it to the third chip;
[0092] The second target chip decrypts the key and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and send it to the third chip;
[0093] The third chip decrypts the first ciphertext and the secret key respectively based on the agreed encryption method, and decrypts the first ciphertext by using the secret key to obtain the target data.
[0094] The multi-chip system provided in this embodiment is based on the same concept as the above-mentioned chip encryption method, so it can at least achieve the beneficial effects that can be achieved by the above-mentioned chip encryption method, which will not be described in detail here.
[0095] Based on the same concept as the above chip encryption method, this embodiment also provides an electronic device, which may include the multi-chip system of any of the above embodiments. Specifically, the electronic device may be a processor including the above multi-chip system, and the above wireless charging system, motor control system (or only the control device of the system) using the chip, etc.
[0096] The electronic device provided in this embodiment is based on the same concept as the above chip encryption method, so it can at least achieve the beneficial effects that can be achieved by the above chip encryption method, which will not be described in detail here.
[0097] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0098] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A chip encryption method, characterized in that: Applied to a multi-chip system, the multi-chip system includes at least a first chip, a second chip and a third chip, the method includes: The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext; The first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip; The second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip; The third chip decrypts the first ciphertext based on the first encryption method to obtain the first ciphertext, decrypts the first ciphertext based on the third encryption method to obtain the secret key, and decrypts the first ciphertext using the secret key to obtain the target data.
2. The method according to claim 1, characterized in that The first chip receives the request data sent by the third chip and generates a corresponding secret key, including: The first chip receives the request data sent by the third chip, and decrypts the request data according to the first encryption method agreed with the third chip to generate plaintext request data; The first chip generates a set of random numbers as a secret key according to the plaintext request data.
3. The method according to claim 2, characterized in that Before the first chip receives the request data sent by the third chip, the method further includes: The third chip encrypts the plaintext request data using the first encryption method agreed upon with the first chip to generate ciphertext request data; The third chip sends the ciphertext request data to the first chip.
4. The method according to claim 1, characterized in that: The multi-chip system further includes a fourth chip; the first chip adopts a first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip, including: The first chip uses an encryption method agreed upon with the fourth chip to re-encrypt the first ciphertext and then sends the encrypted text to the fourth chip; The fourth chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends it to the third chip.
5. The method according to claim 1, characterized in that: The multi-chip system further includes a fourth chip and a fifth chip; the first chip adopts a first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip, including: The first chip determines a first transmission path of the first ciphertext according to the first ciphertext and a preset transmission rule; The first chip encrypts the first ciphertext again using a corresponding encryption method according to the first transmission path, and sends the ciphertext to a corresponding first target chip; the first target chip is the fourth chip or the fifth chip; The first target chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the encrypted text to the third chip.
6. The method according to claim 5, characterized in that The first chip uses a second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip, including: The first chip determines a second transmission path of the secret key according to the secret key and a preset transmission rule; The first chip encrypts the secret key again using a corresponding encryption method according to the second transmission path, and sends the secret key to a corresponding second target chip, where the second target chip is the fourth chip or the fifth chip; The second target chip decrypts the secret key, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the first ciphertext to the third chip.
7. The method according to claim 5 or 6, characterized in that: Before the first chip receives the request data sent by the third chip, the method further includes: The first chip, the second chip, the third chip, the fourth chip and the fifth chip respectively preset corresponding transmission rules according to the type of data to be transmitted.
8. A multi-chip system, characterized in that: At least includes a first chip, a second chip and a third chip, wherein: The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext; The first chip uses the first encryption method agreed upon with the third chip to re-encrypt the first ciphertext and then sends it to the third chip; and uses the second encryption method agreed upon with the second chip to encrypt the secret key and then sends it to the second chip; The second chip decrypts the secret key based on the second encryption method, and uses the third encryption method agreed with the third chip to encrypt the secret key and then sends it to the third chip; The third chip decrypts the first ciphertext based on the first encryption method, decrypts the secret key based on the third encryption method, and decrypts the first ciphertext using the secret key to obtain the target data.
9. A multi-chip system, characterized in that: At least includes a first chip, a second chip, a third chip, a fourth chip and a fifth chip; wherein, The first chip receives the request data sent by the third chip, generates a corresponding secret key, and uses the secret key to encrypt the target data corresponding to the request data to generate a first ciphertext; The first chip determines a first transmission path of the first ciphertext and a second transmission path of the secret key according to the first ciphertext, the secret key and a preset transmission rule; The first chip re-encrypts the first ciphertext and the secret key using corresponding encryption methods according to the first transmission path and the second transmission path, and sends them to the corresponding first target chip and the second target chip respectively; the first target chip and the second target chip are both the fourth chip or the fifth chip; The first target chip decrypts the first ciphertext, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends the encrypted text to the third chip; The second target chip decrypts the secret key, and uses the encryption method agreed with the third chip to encrypt the first ciphertext again and sends it to the third chip; The third chip decrypts the first ciphertext and the secret key respectively based on the agreed encryption method, and decrypts the first ciphertext by using the secret key to obtain the target data.
10. An electronic device, characterized in that: Comprising a multi-chip system as claimed in claim 8 or 9.
Citation Information
Patent Citations
Data transmission method and system of resisting template attacks
CN107766725A
Method, system and equipment for enhancing MQTT protocol identity authentication by using symmetric cryptographic technology
CN113612605A