Dual-CPU communication method based on white-box key

By using white-box keys for two-way authentication and data encryption in a dual-CPU architecture, the security issues in dual-CPU communication are solved and efficient payment security is improved.

CN118590221APending Publication Date: 2024-09-03FUJIAN MOREFUN ELECTRONICS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410511218.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The dual-CPU architecture has security issues of being eavesdropped and tampered with when transmitting sensitive data, affecting payment security.

Method used

A dual-CPU communication method based on white-box keys is used to create encryption keys and white-box keys that are preset on the security CPU and general-purpose CPU to perform two-way authentication and data encryption to ensure the security of communication data. Specific steps include generating random numbers, key factors, encrypted data and timestamps, performing multiple verifications, encryption and decryption, and establishing a secure communication channel.

Benefits of technology

Significantly improves the security of dual-CPU communication, prevents data theft and replay attacks, increases the difficulty of cracking, and improves payment security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590221A
    Figure CN118590221A
Patent Text Reader

Abstract

The invention provides a dual-CPU communication method based on a white-box key in the technical field of payment security, and the method comprises the steps: S1, an SP generates a first key factor, encrypts the first key factor to obtain first encrypted data, and transmits the first encrypted data to an AP; s2, the AP decrypts the first encrypted data to obtain a first key factor and generate a second key factor; s3, the universal CPU generates a first session key based on the first key factor and the second key factor, calculates a first verification value, encrypts the first verification value and the second key factor through the white box key to obtain second encrypted data and sends the second encrypted data to the SP; and S4, the SP decrypts the second encrypted data to obtain a first verification value and a second key factor, generates a second session key based on the first key factor and the second key factor, calculates a second verification value, verifies the second verification value, and sends the verification value to the AP to establish a secure communication channel. The method has the advantages that the security of dual-CPU communication is greatly improved, and the payment security is further greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of payment security technology, and in particular to a dual-CPU communication method based on a white box key. Background Art

[0002] With the development and progress of science and technology, various types of POS terminals for payment have emerged one after another, and the security of POS terminals has also received more and more attention. In order to meet diverse business scenarios and higher performance requirements, POS terminals usually adopt a dual-CPU architecture, including a general-purpose CPU (AP) and a security CPU (SP). In order to complete transactions, data often needs to be transferred between the dual CPUs, and the transferred data generally contains sensitive data. If the dual CPU architecture is simply used, the exposed communication bus may be monitored and tampered with, which in turn affects payment security.

[0003] Therefore, how to provide a dual-CPU communication method based on white box keys to improve the security of dual-CPU communication and further improve payment security has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a dual-CPU communication method based on a white box key, so as to improve the security of dual-CPU communication and further improve payment security.

[0005] The present invention is implemented as follows: a dual CPU communication method based on a white box key comprises the following steps:

[0006] Step S1, creating an encryption key, creating a white box key based on the encryption key and an encryption algorithm, presetting the encryption key into a security CPU, and presetting the white box key into a general CPU;

[0007] Step S2: The security CPU receives the first random number sent by the general CPU, generates a second random number and a first key factor, encrypts the first key factor and the first random number by using the encryption key to obtain first encrypted data, obtains a current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU;

[0008] Step S3: After verifying the received first instruction, the general-purpose CPU decrypts the first encrypted data to obtain a first key factor and a first random number, verifies the first random number, and generates a second key factor;

[0009] Step S4: The general CPU generates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU;

[0010] Step S5: After verifying the received second instruction, the security CPU decrypts the second encrypted data to obtain a first verification value, a second key factor, and a second random number, and verifies the second random number;

[0011] Step S6: The security CPU generates a second session key based on the first key factor and the second key factor, calculates a second check value of the second session key, obtains a current third timestamp after verifying the second check value, generates a third instruction based on the second check value and the third timestamp, and sends the third instruction to the general CPU;

[0012] Step S7: Based on the third instruction, the general CPU establishes a secure communication channel between the general CPU and the security CPU and performs communication.

[0013] Furthermore, in step S1, the encryption key is a symmetric key.

[0014] Furthermore, the step S2 is specifically as follows:

[0015] The general CPU generates a first random number through a random number generator, and sends the first random number to the security CPU in real time;

[0016] The security CPU receives the first random number sent by the general CPU in real time, generates a second random number through a random number generator, and generates a first key factor, encrypts the first key factor and the first random number through the encryption key to obtain first encrypted data, obtains the current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU in real time.

[0017] Furthermore, the step S3 is specifically as follows:

[0018] The general-purpose CPU receives the first instruction in real time, parses the first instruction to obtain first encrypted data, a second random number and a first timestamp, performs integrity verification through the first timestamp, decrypts the first encrypted data through the white box key to obtain a first key factor and a first random number, and determines whether the first random number obtained by decryption is consistent with the local first random number. If not, the verification fails and the process ends; if so, the verification succeeds and a second key factor is generated.

[0019] Furthermore, the step S4 is specifically as follows:

[0020] The general CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a first hash value, intercepts a preset length from the first hash value to negotiate a first session key, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU in real time.

[0021] Furthermore, the step S5 is specifically as follows:

[0022] The security CPU receives the second instruction in real time, parses the second instruction to obtain second encrypted data and a second timestamp, performs integrity verification using the second timestamp, decrypts the second encrypted data using the encryption key to obtain a first verification value, a second key factor, and a second random number, and determines whether the second random number obtained by decryption is consistent with the local second random number. If not, the verification fails and the process ends; if so, the verification succeeds.

[0023] Furthermore, the step S6 is specifically as follows:

[0024] The security CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a second hash value, intercepts a preset length from the second hash value to negotiate a second session key, calculates a second check value of the second session key, and determines whether the second check value is consistent with the first check value. If not, the check fails and the process ends; if so, the check succeeds, the current third timestamp is obtained, and a third instruction is generated based on the second check value and the third timestamp, and the third instruction is sent to the general CPU in real time.

[0025] Furthermore, the step S7 is specifically as follows:

[0026] The general-purpose CPU receives the third instruction in real time, parses the third instruction to obtain a second check value and a third timestamp, and after performing a time verification through the third timestamp, determines whether the first check value is consistent with the second check value. If not, the verification fails and the process ends; if so, the verification succeeds, and a secure communication channel is established between the general-purpose CPU and the security CPU, and the general-purpose CPU and the security CPU communicate through the secure communication channel.

[0027] Furthermore, the step S7 further includes:

[0028] During the communication process, the communication data is encrypted and decrypted using the first session key and the second session key.

[0029] The advantages of the present invention are:

[0030] 1. Create an encryption key and a white box key and pre-set them into the security CPU and the general CPU respectively; the security CPU receives a first random number sent by the general CPU, generates a second random number and a first key factor, encrypts the first key factor and the first random number by using the encryption key to obtain first encrypted data, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends it to the general CPU; then the general CPU verifies the first instruction, decrypts the first encrypted data to obtain the first key factor and the first random number, verifies the first random number, generates the second key factor, generates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, generates a second instruction based on the second encrypted data and the second timestamp, and sends it to the security CPU; then the security CPU verifies the second instruction, decrypts the second encrypted data to obtain the first check value, the second key factor and the second random number, verifies the second random number, and calculates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, generates a second instruction based on the second encrypted data and the second timestamp, and sends it to the security CPU; then the security CPU verifies the second instruction, decrypts the second encrypted data to obtain the first check value, the second key factor and the second random number, verifies the second random number, and calculates the first session key based on the first The key factor and the second key factor generate a second session key, calculate a second check value of the second session key, and after verifying the second check value, generate a third instruction based on the second check value and the third timestamp and send it to the general CPU; finally, the general CPU establishes a secure communication channel between the general CPU and the security CPU based on the third instruction and communicates; that is, based on the encryption key, the white box key, the first key factor, the second key factor, the first random number, the second random number, the first timestamp, the second timestamp, and the third timestamp, the serial port communication between the general CPU and the security CPU is bidirectionally authenticated, the authentication of the security CPU adopts at least 3 security measures (decryption of the second encrypted data, first check value verification, and second timestamp verification), and the authentication of the general CPU adopts at least 4 security measures (decryption of the first encrypted data, second check value verification, first timestamp verification, and third timestamp verification), and the first check value verification and the second check value verification are both generated based on multiple keys / algorithms, which increases the difficulty of cracking, and ultimately greatly improves the security of dual-CPU communication, thereby greatly improving payment security.

[0031] 2. The first random number is generated by the general CPU and the second random number is generated by the security CPU for two-way authentication, which can effectively prevent replay attacks and further improve the security of dual-CPU communication.

[0032] 3. The first key factor and the first random number are encrypted with an encryption key to obtain first encrypted data, which is sent to the general CPU. The first check value, the second key factor and the second random number are encrypted with a white box key to obtain second encrypted data, which is sent to the security CPU to prevent the plaintext from being stolen during the relevant data transmission process, greatly improve the security of data transmission, and thus greatly improve the security of dual CPU communication.

[0033] 4. The time stamps carried by the first, second, and third instructions are used for time validity verification to prevent replay attacks, which also increases the difficulty of attacks and further improves the security of dual CPU communication.

[0034] 5. By combining two key factors, sha256 calculation, and intercepting the preset length as the session key, at least three security measures are taken before and after to increase the complexity of session key generation, thereby reducing the possibility of session keys being cracked, ensuring the reliability of dual CPU authentication, and thus improving the security of dual CPU communication.

[0035] 6. By mixing the authentication with the negotiation process of the first session key and the second session key, the process is effectively streamlined, thereby greatly improving the efficiency of dual-CPU communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0037] Figure 1 The invention discloses a flow chart of a dual-CPU communication method based on a white box key. DETAILED DESCRIPTION

[0038] The technical solution in the embodiments of the present application has the following overall idea: based on the encryption key, the white box key, the first key factor, the second key factor, the first random number, the second random number, the first timestamp, the second timestamp, and the third timestamp, the serial port communication between the general CPU and the security CPU is bidirectionally authenticated, the authentication of the security CPU adopts at least three security measures (second encrypted data decryption, first check value verification, second timestamp verification), and the authentication of the general CPU adopts at least four security measures (first encrypted data decryption, second check value verification, first timestamp verification, and third timestamp verification), and the first check value verification and the second check value verification are both generated based on multiple keys / algorithms to increase the difficulty of cracking, so as to improve the security of dual CPU communication.

[0039] Please refer to Figure 1 As shown, a preferred embodiment of a dual CPU communication method based on a white box key of the present invention comprises the following steps:

[0040] Step S1, creating an encryption key, creating a white box key based on the encryption key and an encryption algorithm, presetting the encryption key into a security CPU, and presetting the white box key into a general CPU;

[0041] Step S2: The security CPU receives the first random number sent by the general CPU, generates a second random number and a first key factor, encrypts the first key factor and the first random number by using the encryption key to obtain first encrypted data, obtains a current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU;

[0042] The first random number is generated by the general CPU, and the second random number is generated by the security CPU for two-way authentication, which can effectively prevent replay attacks and further improve the security of dual-CPU communication.

[0043] Step S3: After verifying the received first instruction, the general-purpose CPU decrypts the first encrypted data to obtain a first key factor and a first random number, verifies the first random number, and generates a second key factor;

[0044] Step S4: The general CPU generates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU;

[0045] The first key factor and the first random number are encrypted with an encryption key to obtain first encrypted data, which are sent to the general CPU. The first check value, the second key factor and the second random number are encrypted with a white box key to obtain second encrypted data, which are sent to the security CPU. This prevents the plaintext from being stolen during the relevant data transmission process, greatly improves the security of data transmission, and thus greatly improves the security of dual CPU communication.

[0046] Step S5: After verifying the received second instruction, the security CPU decrypts the second encrypted data to obtain a first verification value, a second key factor, and a second random number, and verifies the second random number;

[0047] Step S6: The security CPU generates a second session key based on the first key factor and the second key factor, calculates a second check value of the second session key, obtains a current third timestamp after verifying the second check value, generates a third instruction based on the second check value and the third timestamp, and sends the third instruction to the general CPU;

[0048] The time stamps carried by the first instruction, the second instruction, and the third instruction are used to perform time verification to prevent replay attacks, which also increases the difficulty of attacks and further improves the security of dual CPU communication.

[0049] Step S7: Based on the third instruction, the general CPU establishes a secure communication channel between the general CPU and the security CPU and performs communication.

[0050] By mixing the authentication with the negotiation process of the first session key and the second session key, the process is effectively streamlined, thereby greatly improving the dual-CPU communication efficiency.

[0051] In the step S1, the encryption key is a symmetric key.

[0052] The white box key is divided into static white box and dynamic white box. The static white box is that the encryption key and the encryption algorithm are processed together through the white box key technology to form a specific white box library; the dynamic white box means that the encryption key and the encryption algorithm are processed separately through the white box key technology to generate the white box key and the white box library.

[0053] The step S2 is specifically as follows:

[0054] The general CPU generates a first random number through a random number generator, and sends the first random number to the security CPU in real time;

[0055] The security CPU receives the first random number sent by the general CPU in real time, generates a second random number through a random number generator, and generates a first key factor, encrypts the first key factor and the first random number through the encryption key to obtain first encrypted data, obtains the current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU in real time.

[0056] The step S3 is specifically as follows:

[0057] The general-purpose CPU receives the first instruction in real time, parses the first instruction to obtain first encrypted data, a second random number and a first timestamp, performs integrity verification through the first timestamp, decrypts the first encrypted data through the white box key to obtain a first key factor and a first random number, and determines whether the first random number obtained by decryption is consistent with the local first random number. If not, the verification fails and the process ends; if so, the verification succeeds and a second key factor is generated.

[0058] The step S4 is specifically as follows:

[0059] The general CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a first hash value, intercepts a preset length from the first hash value to negotiate a first session key, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU in real time.

[0060] The step S5 is specifically as follows:

[0061] The security CPU receives the second instruction in real time, parses the second instruction to obtain second encrypted data and a second timestamp, performs integrity verification using the second timestamp, decrypts the second encrypted data using the encryption key to obtain a first verification value, a second key factor, and a second random number, and determines whether the second random number obtained by decryption is consistent with the local second random number. If not, the verification fails and the process ends; if so, the verification succeeds.

[0062] The step S6 is specifically as follows:

[0063] The security CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a second hash value, intercepts a preset length from the second hash value to negotiate a second session key, calculates a second check value for the second session key, and determines whether the second check value is consistent with the first check value (i.e., the first check value is verified by the second check value). If not, the check fails and the process ends; if so, the check succeeds, the current third timestamp is obtained, a third instruction is generated based on the second check value and the third timestamp, and the third instruction is sent to the general CPU in real time.

[0064] Since the first session key and the second session key are both obtained by cutting off a preset length from a hash value obtained by concatenating the first key factor and the second key factor and performing sha256 calculation, the first session key and the second session key are the same pair of keys, and the first check value calculated based on the first session key should theoretically be equal to the second check value calculated based on the second session key; that is, the first check value / second check value is verified by the second check value / first check value, that is, whether the two values ​​are equal is compared.

[0065] The step S7 is specifically as follows:

[0066] The general-purpose CPU receives the third instruction in real time, parses the third instruction to obtain a second check value and a third timestamp, and after performing a time verification through the third timestamp, determines whether the first check value is consistent with the second check value. If not, the verification fails and the process ends; if so, the verification succeeds, and a secure communication channel is established between the general-purpose CPU and the security CPU, and the general-purpose CPU and the security CPU communicate through the secure communication channel.

[0067] The step S7 further comprises:

[0068] During the communication process, the communication data is encrypted and decrypted using the first session key and the second session key to prevent the communication data from being stolen in plain text.

[0069] In summary, the advantages of the present invention are:

[0070] 1. Create an encryption key and a white box key and pre-set them into the security CPU and the general CPU respectively; the security CPU receives a first random number sent by the general CPU, generates a second random number and a first key factor, encrypts the first key factor and the first random number by using the encryption key to obtain first encrypted data, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends it to the general CPU; then the general CPU verifies the first instruction, decrypts the first encrypted data to obtain the first key factor and the first random number, verifies the first random number, generates the second key factor, generates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, generates a second instruction based on the second encrypted data and the second timestamp, and sends it to the security CPU; then the security CPU verifies the second instruction, decrypts the second encrypted data to obtain the first check value, the second key factor and the second random number, verifies the second random number, and calculates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, generates a second instruction based on the second encrypted data and the second timestamp, and sends it to the security CPU; then the security CPU verifies the second instruction, decrypts the second encrypted data to obtain the first check value, the second key factor and the second random number, verifies the second random number, and calculates the first session key based on the first The key factor and the second key factor generate a second session key, calculate a second check value of the second session key, and after verifying the second check value, generate a third instruction based on the second check value and the third timestamp and send it to the general CPU; finally, the general CPU establishes a secure communication channel between the general CPU and the security CPU based on the third instruction and communicates; that is, based on the encryption key, the white box key, the first key factor, the second key factor, the first random number, the second random number, the first timestamp, the second timestamp, and the third timestamp, the serial port communication between the general CPU and the security CPU is bidirectionally authenticated, the authentication of the security CPU adopts at least 3 security measures (decryption of the second encrypted data, first check value verification, and second timestamp verification), and the authentication of the general CPU adopts at least 4 security measures (decryption of the first encrypted data, second check value verification, first timestamp verification, and third timestamp verification), and the first check value verification and the second check value verification are both generated based on multiple keys / algorithms, which increases the difficulty of cracking, and ultimately greatly improves the security of dual-CPU communication, thereby greatly improving payment security.

[0071] 2. The first random number is generated by the general CPU and the second random number is generated by the security CPU for two-way authentication, which can effectively prevent replay attacks and further improve the security of dual-CPU communication.

[0072] 3. The first key factor and the first random number are encrypted with an encryption key to obtain first encrypted data, which is sent to the general CPU. The first check value, the second key factor and the second random number are encrypted with a white box key to obtain second encrypted data, which is sent to the security CPU to prevent the plaintext from being stolen during the relevant data transmission process, greatly improve the security of data transmission, and thus greatly improve the security of dual CPU communication.

[0073] 4. The time stamps carried by the first, second, and third instructions are used for time validity verification to prevent replay attacks, which also increases the difficulty of attacks and further improves the security of dual CPU communication.

[0074] 5. By combining two key factors, sha256 calculation, and intercepting the preset length as the session key, at least three security measures are taken before and after to increase the complexity of session key generation, thereby reducing the possibility of session keys being cracked, ensuring the reliability of dual CPU authentication, and thus improving the security of dual CPU communication.

[0075] 6. By mixing the authentication with the negotiation process of the first session key and the second session key, the process is effectively streamlined, thereby greatly improving the efficiency of dual-CPU communication.

[0076] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A dual CPU communication method based on white box key, Features: The steps include: Step S1, creating an encryption key, creating a white box key based on the encryption key and an encryption algorithm, presetting the encryption key into a security CPU, and presetting the white box key into a general CPU; Step S2: The security CPU receives the first random number sent by the general CPU, generates a second random number and a first key factor, encrypts the first key factor and the first random number by using the encryption key to obtain first encrypted data, obtains a current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU; Step S3: After verifying the received first instruction, the general CPU decrypts the first encrypted data to obtain a first key factor and a first random number, verifies the first random number, and generates a second key factor; Step S4: The general CPU generates a first session key based on the first key factor and the second key factor, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number by using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU; Step S5: After verifying the received second instruction, the security CPU decrypts the second encrypted data to obtain a first verification value, a second key factor, and a second random number, and verifies the second random number; Step S6: The security CPU generates a second session key based on the first key factor and the second key factor, calculates a second check value of the second session key, obtains a current third timestamp after checking the second check value, generates a third instruction based on the second check value and the third timestamp, and sends the third instruction to the general CPU; Step S7: Based on the third instruction, the general CPU establishes a secure communication channel between the general CPU and the security CPU and performs communication.

2. A dual CPU communication method based on white box key as claimed in claim 1, Features: In the step S1, the encryption key is a symmetric key.

3. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S2 is specifically as follows: The general CPU generates a first random number through a random number generator, and sends the first random number to the security CPU in real time; The security CPU receives the first random number sent by the general CPU in real time, generates a second random number through a random number generator, and generates a first key factor, encrypts the first key factor and the first random number through the encryption key to obtain first encrypted data, obtains the current first timestamp, generates a first instruction based on the first encrypted data, the second random number and the first timestamp, and sends the first instruction to the general CPU in real time.

4. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S3 is specifically as follows: The general-purpose CPU receives the first instruction in real time, parses the first instruction to obtain first encrypted data, a second random number, and a first timestamp, performs integrity verification using the first timestamp, decrypts the first encrypted data using the white box key to obtain a first key factor and a first random number, and determines whether the first random number obtained by decryption is consistent with the local first random number. If not, the verification fails, and the process ends. If yes, the verification is successful and a second key factor is generated.

5. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S4 is specifically as follows: The general CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a first hash value, intercepts a preset length from the first hash value to negotiate a first session key, calculates a first check value of the first session key, encrypts the first check value, the second key factor and the second random number using the white box key to obtain second encrypted data, obtains a current second timestamp, generates a second instruction based on the second encrypted data and the second timestamp, and sends the second instruction to the security CPU in real time.

6. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S5 is specifically as follows: The security CPU receives the second instruction in real time, parses the second instruction to obtain the second encrypted data and the second timestamp, performs integrity check using the second timestamp, decrypts the second encrypted data using the encryption key to obtain the first check value, the second key factor, and the second random number, and determines whether the second random number obtained by decryption is consistent with the local second random number. If not, the check fails and the process ends; If yes, the verification is successful.

7. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S6 is specifically as follows: The security CPU performs sha256 calculation on the concatenation of the first key factor and the second key factor to obtain a second hash value, cuts a preset length from the second hash value to negotiate a second session key, calculates a second check value of the second session key, and determines whether the second check value is consistent with the first check value. If not, the check fails and the process ends; If so, the verification is successful, the current third timestamp is obtained, a third instruction is generated based on the second verification value and the third timestamp, and the third instruction is sent to the general CPU in real time.

8. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S7 is specifically as follows: The general-purpose CPU receives the third instruction in real time, parses the third instruction to obtain a second check value and a third timestamp, and after performing a time verification through the third timestamp, determines whether the first check value is consistent with the second check value. If not, the verification fails and the process ends; if so, the verification succeeds, and a secure communication channel is established between the general-purpose CPU and the security CPU, and the general-purpose CPU and the security CPU communicate through the secure communication channel.

9. A dual CPU communication method based on white box key as claimed in claim 1, Features: The step S7 further comprises: During the communication process, the communication data is encrypted and decrypted using the first session key and the second session key.

Citation Information

Cited By

  • Data transmission method and device and electronic equipment

    CN121462228A