Touch data transmission method and device

By receiving and encrypting touch coordinates on the touch chip, and decrypting them on the host side, the problems of touch data theft and high cost in the existing technology are solved, and data security and cost-effectiveness are improved.

CN118606967APending Publication Date: 2024-09-06SHENZHEN GOODIX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410675411.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

During the existing touch data interaction process, touch data faces the risk of theft. Existing protection methods such as multiple packaging and hard protection have problems such as possible data leakage or high manufacturing costs.

Method used

By receiving the sensing signal on the touch chip, the touch coordinates are obtained through processing, and the coordinates are encrypted using the coordinate encryption key and reported to the host. After receiving, the host decrypts the original coordinates to ensure data security and accuracy and avoid hardware encapsulation. and high costs.

Benefits of technology

Effectively prevent touch data leakage, improve data security and accuracy, reduce equipment manufacturing costs and production costs, and improve production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606967A
    Figure CN118606967A
Patent Text Reader

Abstract

The embodiment of the invention provides a touch data transmission method and device, and relates to the technical field of touch data security. The specific implementation mode of the method comprises the following steps: receiving an induction signal of an induction electrode, and processing the induction signal to obtain a touch coordinate; encrypting the touch coordinates by using a coordinate encryption key to obtain encrypted coordinates; and reporting the encrypted coordinates to a host. According to the embodiment, the application firmware of the touch chip can be prevented from being tampered, safety and reliability of the firmware are guaranteed, safety and reliability of touch data are improved, hardware processing does not need to be added, extra consumption of hardware manufacturing and replacement cost is avoided, and production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of touch data security, and in particular to a touch data transmission method and device. Background Art

[0002] Touch data refers to the interactive data in the touch device. The touch device includes a host (i.e., the HOST end) and a touch component. The touch component includes a touch panel, a touch chip (i.e., Touch IC) and a flash memory (i.e., Flash). During interaction, the Touch IC first downloads the Touch IC application firmware from the Flash, and then uses the Touch IC application firmware to process the sensing signal received from the touch panel. After obtaining the touch data, it is transmitted in plain text to the Host end for use by the Host end.

[0003] In the existing touch data interaction process, due to the generation and transmission path of touch data, the thief will steal touch data through the interface between Touch IC and Flash, and between Touch IC and Host, which makes the touch data face a high risk of leakage. In order to prevent data leakage, commonly used protection methods include: (1) separately encapsulating the Host and touch components and then encapsulating them as a whole; (2) overall hard protection, which will be immediately damaged once the cover is violently opened, and the touch data will also be burned.

[0004] However, once the shell of the single package + overall package method is opened, the interface between the Touch IC and the Host is still prone to data leakage; although the touch data is protected by the overall hard protection, the manufacturing cost is extremely high, and once the touch device is disassembled, it is immediately scrapped and needs to be replaced, resulting in huge equipment costs. Summary of the invention

[0005] In view of this, the embodiments of the present disclosure provide a method and device for transmitting touch data, which can solve the problem that existing protection measures still have the possibility of data leakage, or the problem that the manufacturing cost and equipment cost are high.

[0006] To achieve the above objective, according to one aspect of the present disclosure, a method for transmitting touch data is provided. The method is applied to a touch chip, and the method includes:

[0007] receiving a sensing signal from the sensing electrode, and processing the sensing signal to obtain a touch coordinate;

[0008] Encrypting the touch coordinates using a coordinate encryption key to obtain encrypted coordinates;

[0009] The encrypted coordinates are reported to the host.

[0010] According to another aspect of the present disclosure, a method for transmitting touch data is provided. The method is applied to a host and includes:

[0011] Receiving one or more encrypted coordinates reported by the touch chip;

[0012] The touch coordinates are decrypted using the coordinate encryption key to obtain the touch coordinates.

[0013] According to another aspect of the present disclosure, a device for transmitting touch data is provided. The device is applied to a touch chip, and the device includes:

[0014] A receiving module, used for receiving a sensing signal from a sensing electrode, processing the sensing signal, and obtaining a touch coordinate;

[0015] An encryption module, used to encrypt the touch coordinates using a coordinate encryption key to obtain encrypted coordinates;

[0016] The reporting module is used to report the encrypted coordinates to the host.

[0017] According to another aspect of the present disclosure, a touch data transmission device is provided, the transmission device is applied to a host, and the transmission device includes:

[0018] A receiving module, used for receiving one or more encrypted coordinates reported by the touch chip;

[0019] The decryption module is used to decrypt the touch coordinates using the coordinate encryption key to obtain the touch coordinates.

[0020] One or more technical solutions provided in the embodiments of the present application verify the signature of the signed firmware through the touch chip to determine the touch chip application firmware that has been successfully verified; execute the firmware program, process the sensing signal to obtain the touch coordinates, encrypt the touch coordinates to obtain the encrypted coordinates and report them to the host, so as to prevent the touch chip application firmware from being tampered with, ensure the security and reliability of the firmware, and improve the security and reliability of touch data without increasing hardware processing, avoiding the extra consumption of hardware manufacturing and replacement costs, and improving the technical effect of production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0022] Figure 1 A flow chart showing a method for transmitting touch data according to an exemplary embodiment of the present disclosure is shown;

[0023] Figure 2 A schematic diagram showing a touch device according to an exemplary embodiment of the present disclosure is shown;

[0024] FIG. 3( a ) shows a schematic diagram of a touch control chip according to an exemplary embodiment of the present disclosure. Figure 1 ;

[0025] FIG. 3( b ) shows a schematic diagram of a touch control chip according to an exemplary embodiment of the present disclosure. Figure 2 ;

[0026] FIG3( c ) shows a third schematic diagram of a touch control chip according to an exemplary embodiment of the present disclosure;

[0027] FIG. 3( d ) shows a schematic diagram of storing a coordinate key according to an exemplary embodiment of the present disclosure. Figure 1 ;

[0028] FIG. 3( e ) shows a schematic diagram of storing a coordinate key according to an exemplary embodiment of the present disclosure. Figure 2 ;

[0029] Figure 4 A flowchart of a method for verifying a signature of a touch chip application firmware according to an exemplary embodiment of the present disclosure is shown;

[0030] Figure 5 A flowchart showing a method for generating encrypted coordinates according to a first exemplary embodiment of the present disclosure is shown;

[0031] Figure 6 A flowchart showing a method for generating encrypted coordinates according to a second exemplary embodiment of the present disclosure is shown;

[0032] Figure 7 A flow chart showing a method for transmitting touch data according to a second exemplary embodiment of the present disclosure is shown;

[0033] Figure 8 A flowchart showing a method for decrypting encrypted coordinates according to a first exemplary embodiment of the present disclosure is shown;

[0034] Fig. 9 A flow chart of a method for shipping a touch device according to an exemplary embodiment of the present disclosure is shown;

[0035] Fig.10 A flowchart showing a method for decrypting encrypted coordinates according to a second exemplary embodiment of the present disclosure is shown;

[0036] Fig.11 A flow chart of a flash memory update method according to an exemplary embodiment of the present disclosure is shown;

[0037] Fig.12 A schematic block diagram of a touch data transmission device according to a first exemplary embodiment of the present disclosure is shown;

[0038] Fig.13A schematic block diagram of a touch data transmission device according to a second exemplary embodiment of the present disclosure is shown;

[0039] FIG. 14( a ) shows a schematic diagram of a touch device according to an exemplary embodiment of the present disclosure;

[0040] FIG14( b ) shows a schematic diagram of a touch device according to another exemplary embodiment of the present disclosure;

[0041] FIG14( c ) shows a schematic diagram of a touch device according to yet another exemplary embodiment of the present disclosure;

[0042] FIG14( d ) shows a schematic diagram of a touch device according to yet another exemplary embodiment of the present disclosure;

[0043] Fig.15 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0044] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0045] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0046] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "in the embodiment of the present disclosure" means "at least one embodiment"; the term "another exemplary embodiment" means "at least one other embodiment". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0047] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0048] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0049] Firmware: Firmware refers to the program code stored in non-volatile memory such as ROM or Flash in an embedded system to execute corresponding functions. Correspondingly, application firmware is the program code corresponding to the application program, which can execute the application functions corresponding to the application program.

[0050] IIC interface: a data communication interface that uses the Inter-Integrated Circuit protocol. The IIC protocol is a serial communication protocol used to connect microcontrollers and peripheral devices.

[0051] SPI interface: Serial Peripheral Interface, also known as serial peripheral interface, is a communication protocol first defined by Motorola and widely used in various electronic devices. SPI interface is a synchronous serial bus, mainly used for data exchange between MCU (microcontroller unit) and various peripheral devices.

[0052] TX channel, RX channel: TX stands for Transmit, RX stands for Receive, which refer to the sending channel and receiving channel inside the hardware, respectively, for data sending and receiving operations. TX channel and RX channel usually appear in pairs, TX is used to send signals, and RX is used to receive signals.

[0053] OTA upgrade: Over-the-Air Technology is a technology that updates the software or firmware of a device through a wireless network, allowing the device to receive and install software updates without connecting to any physical media, thereby improving the convenience and efficiency of updates.

[0054] ROM: Read-Only Memory, ROM works in a non-destructive read mode, which can only read but not write information. Once the information is written, it is fixed and will not be lost even if the power is cut off, so it is also called fixed memory.

[0055] RAM: Random Access Memory, whose main function is to temporarily store running programs and data so that the CPU can quickly read and write this information.

[0056] DES: Data Encryption Standard, which is a block algorithm that uses key encryption.

[0057] 3DES: Triple DES or DESede, a symmetric encryption algorithm. 3DES is an enhanced version of DES. It improves security through three DES encryption operations and can use keys of different lengths.

[0058] AES: Advanced Encryption Standard, a widely used symmetric encryption algorithm that supports key lengths of 128, 192, or 256 bits.

[0059] RC5: Rivest Cipher 5, is a symmetric encryption algorithm with variable parameters that allows users to select different key lengths and number of cycles to meet different security requirements.

[0060] RC6: An upgraded version of RC5, providing higher security and faster processing speed.

[0061] IDEA: International Data Encryption Algorithm, which is an international data encryption algorithm, is a symmetric key block cipher that uses a 128-bit key to provide high security.

[0062] RSA, ECC, DSA and ElGamal: All are asymmetric encryption algorithms, also known as public key encryption algorithms. They are encryption methods that use different keys for encryption and decryption, and are usually used to securely transmit symmetric encryption keys or digital signatures. Among them, the RSA algorithm was proposed by Rivest, Shamir and Adleman. It is based on the problem of large prime number decomposition and is one of the most widely used asymmetric encryption algorithms. It can be used for encryption and digital signatures. The full name of the ECC algorithm is Elliptic Curve Cryptography, which is a public key encryption technology based on the discrete logarithm problem on the elliptic curve. The full name of the DSA algorithm is Digital Signature Algorithm, which is a standard for digital signatures and uses the discrete logarithm problem. The ElGamal algorithm is an asymmetric encryption algorithm based on the discrete logarithm problem.

[0063] MD5, MD4, MD2, SHA1, SHA256, SHA384, SHA224, SHA512: All are hash algorithms widely used in current cryptography, used to map input data of any length to fixed-length output. The output value is also called hash value or hash code, and is widely used in ensuring data integrity and security. Among them, MD5, Message-Digest Algorithm 5, has an output length of 128 bits and is less secure; MD4, Message-Digest Algorithm 4, Message Digest Algorithm 4; MD2, Message-Digest Algorithm 2, Message Digest Algorithm 2; SHA, Secure Hash Algorithm 1, includes multiple different versions - SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512, etc. Different versions correspond to hash values ​​of different output lengths - 160 bits, 224 bits, 256 bits, 384 bits, 512 bits.

[0064] In the existing touch data interaction process, when touch data is generated, the thief will modify the Touch IC application firmware through the interface between the Touch IC and Flash to reversely crack the touch data; in the transmission path of the touch data, the thief will capture the transmission signal between the Touch IC and the Host through a probe, oscilloscope, etc., perform logical analysis on the transmission signal and then obtain the touch data, resulting in the leakage of the touch data.

[0065] Due to the high security requirements for touch data, such as POS machines, in order to prevent leakage of the interface between Touch IC and Flash, and between Touch IC and Host, the existing protection methods use multiple packaging and hard protection. However, once the shell of the multiple packaging is violently opened, the interface between Touch IC and Host is still likely to leak; once the hard protection is violently opened, the touch data will be burned, which can protect the security of touch data, but its manufacturing cost is too high, and once it is opened, it will be damaged immediately and need to be replaced, which consumes a lot of equipment cost.

[0066] Through the touch data transmission method disclosed in the present invention, it is possible to prevent touch data leakage, improve the security of touch data, and prevent application firmware from being tampered with, thereby ensuring the accuracy of touch data, thereby preventing problems before they occur, reducing the manufacturing cost and equipment cost of touch devices, avoiding the high cost and production time consumption of touch devices, and improving production efficiency.

[0067] Aspects of the present disclosure are described below with reference to the accompanying drawings.

[0068] Figure 1 FIG. 1 shows a flow chart of a method for transmitting touch data according to a first exemplary embodiment of the present disclosure. Figure 1 As shown, the touch data transmission method of the first embodiment of the present disclosure includes the following steps:

[0069] In the embodiments of the present disclosure, the methods of various embodiments of the present disclosure are executed by a touch device, such as Figure 2 As shown, the touch device disclosed in the present invention includes a host (or HOST end) and a touch component, and the touch component includes a touch chip (or TouchIC), a touch panel (or Touch Panel) and a flash memory (or Flash). Among them, the host and the touch component can be connected and communicated through an IIC interface, an SPI interface, etc.; the touch chip and the flash memory are connected and communicated through an SPI interface, etc.; the touch chip and the touch panel communicate through TX electrodes and RX electrodes. The touch panel is a capacitive touch screen, which is arranged with horizontal electrodes and vertical electrodes. Capacitors are formed where the two electrodes intersect. When the touch panel is touched, the electrode coupling at the touched position changes, that is, the capacitance between the horizontal electrode and the vertical electrode corresponding to the touched position changes. Therefore, the touch chip can calculate the touch coordinates corresponding to the touched position based on the capacitance change. Specifically:

[0070] When in use, the touch chip sends an excitation signal to the Tx electrode in the touch panel and receives a sensing signal from the Rx electrode in the touch panel. The touch chip determines the touch coordinates of the touched position based on the signal change of the received sensing signal.

[0071] Furthermore, the touch chip and flash memory can be combined into one chip or packaged separately. In view of the fact that the data content stored in the flash memory can be updated regularly or irregularly, the touch device disclosed in the present invention can be suitable for use scenarios where there is a need for updating, and the corresponding update method can be selectively set as needed, for example, the update method is OTA upgrade.

[0072] Furthermore, the touch data transmission method of the first embodiment of the present disclosure is executed by a touch chip of the touch device.

[0073] Step 101: receiving a sensing signal from a sensing electrode, and processing the sensing signal to obtain a touch coordinate.

[0074] In the disclosed embodiment, the touch chip processes the sensing signal returned by the RX electrode according to a set program to obtain the touch coordinates of the touched position of the touch panel.

[0075] Furthermore, as shown in FIG3(a), the touch chip includes a boot program (or Bootloader) for performing functions such as power-on, transmission, and loading, which is implemented in the form of ROM, and uses the read-only and information-fixed characteristics of ROM to ensure the accuracy, safety, and reliability of the boot loader, and to achieve stable startup and loading functions each time the power is on. Each time the touch device is powered on, the touch chip is powered on, and the boot program automatically loads the touch chip application firmware from the flash memory. Subsequently, the touch chip can use the firmware program preset in the touch chip application firmware to perform sensing signal processing, encryption operations, and other processes. Accordingly, before the sensing signal of the receiving sensing electrode is received, it also includes:

[0076] Load the signed firmware and extract the touch chip application firmware and digital signature from the signed firmware. Figure 2 In the touch device shown, signed firmware is stored in the flash memory, which is generated by the production tool before the touch device leaves the factory and written into the flash memory through the startup program. Accordingly, the signed firmware can be updated regularly or irregularly to match different sensing signal processing methods, encryption operation methods, etc.

[0077] Furthermore, the touch chip after loading the touch chip application firmware is shown in FIG3(b). After the startup program loads the touch chip application firmware, the touch chip executes the firmware program in the touch chip application firmware, thereby processing the sensing signal and obtaining the touch coordinates. However, in order to prevent the touch chip application firmware from being tampered with and causing the touch coordinates to be leaked, before the touch chip executes the firmware program in the touch chip application firmware, the startup program verifies the signature of the touch chip application firmware to ensure that the touch chip application firmware has not been modified and is still the original factory setting, so as to ensure the accuracy and security of the touch data. Therefore, after the touch chip application firmware is loaded and before the sensing signal of the sensing electrode is received, it also includes:

[0078] Read an asymmetric encryption public key and an asymmetric public key hash value, and verify the asymmetric encryption public key using the asymmetric public key hash value to determine whether the asymmetric encryption public key is a legal key;

[0079] In the case where the asymmetric encryption public key is a legitimate key, the digital signature is decrypted using the asymmetric public key, and the touch chip application firmware is verified by the signature decryption result. Figure 4 As shown, the touch chip application firmware verification method disclosed in the present invention includes the following steps:

[0080] In the embodiment of the present disclosure, the signature verification method of the touch chip application firmware of the present disclosure is executed by a startup program of the touch chip.

[0081] Step 401, read an asymmetric encryption public key and an asymmetric public key hash value.

[0082] In the disclosed embodiment, since the startup program is usually mass-produced and fixed, the program is fixed when it leaves the factory and is not easy to change. The memory of the touch chip itself is RAM. Once the power is off, the data on the RAM will be lost, and the RAM storage capacity is small. Therefore, in order to ensure the stability and smoothness of the encryption operation and thus ensure the security of the touch data, as shown in Figure 3(c), the touch chip is also provided with a one-time memory for storing asymmetric encryption public keys and public key hash values, and for verifying the signature of the touch chip application firmware. It can be written once and read repeatedly without being restricted by power off, storage capacity, etc.

[0083] Furthermore, since the asymmetric encryption public key does not need to be updated frequently and will not threaten the security of touch data even if it is leaked, it is usually set when the touch device leaves the factory. Different manufacturers can generate asymmetric encryption public keys of the required number of bits as needed and write them into the one-time memory of the touch chip. The subsequent startup program can read and use them from the one-time memory each time the signature is verified. Similarly, the asymmetric public key hash value is obtained by processing the asymmetric public key and is also written into the one-time memory of the touch chip when the touch device leaves the factory. The subsequent startup program can read and use them from the one-time memory each time the signature is verified.

[0084] Furthermore, the interface of the one-time storage device is not visible to the outside, thereby ensuring the data security of the one-time storage device and preventing external theft.

[0085] Step 402: Use a first digest algorithm to perform hash processing on the asymmetric encryption public key to obtain a hash value of the public key to be compared.

[0086] In the disclosed embodiment, the startup program uses the first digest algorithm to hash the asymmetric encryption public key to obtain the hash value of the public key to be compared. The first digest algorithm can be selected as needed and specified by the safety production tool.

[0087] Step 403, compare the public key hash value to be compared with the asymmetric public key hash value to determine whether the public key hash value to be compared is the same as the asymmetric public key hash value. If yes, go to step 404; if not, go to step 409.

[0088] Step 404: Decrypt the digital signature using the asymmetric public key to obtain a signature decryption result.

[0089] In the disclosed embodiment, when the public key hash value to be compared is the same as the asymmetric public key hash value, the boot program determines that the asymmetric public key is a legitimate key and can be used as a decryption key for the digital signature of the subsequent firmware verification.

[0090] Furthermore, when the asymmetric encryption public key is legal, the digital signature extracted from the signed firmware is decrypted using the asymmetric public key to obtain a signature decryption result.

[0091] Step 405: Use a second digest algorithm to perform hash processing on the touch control chip application firmware to obtain a firmware hash value to be compared.

[0092] In the disclosed embodiment, the touch chip application firmware is a binary file, and the startup program can directly perform hash processing on the touch chip application firmware using the second digest algorithm to obtain the hash value of the firmware to be compared. The second digest algorithm can be selected as needed and specified by the safety production tool.

[0093] Step 406, compare the firmware hash value to be compared with the signature decryption result to determine whether the firmware hash value to be compared is the same as the signature decryption result, if yes, go to step 407; if not, go to step 408.

[0094] Step 407: Determine whether the signature verification result of the touch chip application firmware is successful.

[0095] In the embodiment of the present disclosure, when the hash value of the firmware to be compared is the same as the signature decryption result, the startup program determines that the signature verification result of the touch chip application firmware is successful, indicating that the touch chip application firmware has not been tampered with. The touch chip can then use the firmware program of the touch chip application firmware to perform sensing signal processing, encryption operations and other processes.

[0096] Step 408: Determine that the signature verification result of the touch chip application firmware is a signature verification failure.

[0097] In the disclosed embodiment, when the hash value of the firmware to be compared is different from the signature decryption result, the startup program determines that the signature verification result of the touch chip application firmware is a signature verification failure, indicating that there is a risk of tampering with the touch chip application firmware. Accordingly, there is a possibility of leakage of touch data. Therefore, the firmware program of the touch chip application firmware is refused to execute sensing signal processing, encryption operations and other processes to prevent leakage of touch data and ensure the security of touch data.

[0098] Step 409: determine that the asymmetric public key is an illegal key.

[0099] In the disclosed embodiment, when the public key hash value to be compared is different from the asymmetric public key hash value, the startup program determines that the asymmetric encryption public key is an illegal key and cannot be used as a decryption key for subsequent firmware signature verification. Therefore, the touch chip should not use the firmware program of the touch chip application firmware to process the touch coordinates, but should trigger the alarm mode to alert operators, developers, production tools, etc. to re-update various keys, touch chip application firmware, etc., to prevent touch data leakage and ensure touch data security.

[0100] In the disclosed embodiment, through the signature verification method of the touch chip application firmware of the disclosed embodiment, the asymmetric public key is first hashed and compared with the asymmetric public key hash value to determine the legitimacy of the asymmetric public key; then the legal asymmetric public key is used to decrypt the digital signature, and the hash result of the firmware is verified to judge the legitimacy of the firmware, which can effectively determine whether there is a risk of tampering with the firmware, avoid leakage of touch data, and improve the security of touch data.

[0101] Furthermore, when the signature verification result of the touch chip application firmware is successful, as described in step 101, the touch chip receives the sensing signal and processes it to obtain the touch coordinates.

[0102] Step 102: Encrypt the touch coordinates using a coordinate encryption key to obtain encrypted coordinates.

[0103] In the embodiment of the present disclosure, after receiving the touch coordinates obtained in step 101, the touch chip continues to encrypt the touch coordinates using the coordinate encryption key obtained by scrambling the coordinate key and the coordinate key component according to the firmware program to obtain the encrypted coordinates. Figure 5 As shown, the method for generating encrypted coordinates of the first embodiment of the present disclosure includes the following steps:

[0104] In the embodiment of the present disclosure, the method for generating encrypted coordinates of the first embodiment of the present disclosure is executed by a touch control chip.

[0105] Step 501, read the coordinate key and coordinate key components.

[0106] In the disclosed embodiment, in order to improve the security of touch coordinates, the coordinate key can be updated regularly or irregularly. It is generated by the production tool before the touch device leaves the factory and written into the flash memory through the startup program to ensure the transmission security of the touch coordinates and prevent the leakage of touch data. Therefore, as shown in FIG3(d), the coordinate key is stored in the flash memory.

[0107] Furthermore, when encrypting touch coordinates, in order to improve the security of touch data, the coordinate encryption key is generated by combining the coordinate key and the coordinate key component to encrypt the touch coordinates. Since the coordinate key can be updated at any time, the coordinate key component does not need to be updated frequently for the consideration of balancing security and computing resource allocation. Therefore, as shown in Figure 3(e), the coordinate key component is stored in the one-time memory of the touch chip, generated by the production tool before the touch device leaves the factory, and written to the one-time memory through the startup program. The touch chip can subsequently read from the one-time memory multiple times to perform encryption operations.

[0108] Furthermore, the touch control chip reads the coordinate key from the flash memory and simultaneously reads the coordinate key component from the one-time memory according to the firmware program.

[0109] Step 502: Scramble the coordinate key and the coordinate key component to obtain a coordinate encryption key.

[0110] In the disclosed embodiment, the touch chip continues to scramble the coordinate key and the coordinate key component according to the firmware program to obtain the coordinate encryption key. The scrambling algorithm of the scrambling process may include one or more of bit operation, XOR, addition and subtraction, shift operation, insertion, etc., which can be selected according to security requirements and pre-agreed by the host and the touch chip.

[0111] Step 503: symmetrically encrypt the touch coordinates using the coordinate encryption key to generate the encrypted coordinates.

[0112] In the disclosed embodiment, the touch chip continues to symmetrically encrypt the touch coordinates using the coordinate encryption key according to the firmware program to generate encrypted coordinates. The encryption algorithm of the symmetrical encryption can be DES, 3DES, AES, RC4, RC5, RC6, IDEA, etc., preferably AES.

[0113] Furthermore, the touch chip application firmware may encrypt all touch coordinates, or may selectively encrypt part of the touch coordinates, depending on actual encryption requirements, computing resources, and the like.

[0114] Furthermore, or, the scrambling process can be performed by the scrambling software in the touch chip, and accordingly, step 501 and step 502 are performed by the scrambling software, and the touch chip receives the coordinate encryption key obtained by the scrambling software according to the firmware program, and directly executes step 503.

[0115] In the embodiments of the present disclosure, through the method for generating encrypted coordinates of the first embodiment of the present disclosure, by utilizing the scrambling processing of the coordinate key and the coordinate key component and the symmetric encryption of the touch coordinates, multiple protections for the touch data are implemented, which can improve the security of the touch data, reduce the risk of leakage of the touch data, and avoid the consumption of manufacturing and replacement costs of the equipment.

[0116] In an embodiment of the present disclosure, the method for generating encrypted coordinates of the present disclosure can determine whether to execute according to the mode instruction of the host. The host sends an instruction to enter the coordinate encryption mode, and the touch chip enters the coordinate encryption mode. After obtaining the touch coordinates, the touch coordinates are encrypted and reported to the host; the host sends an instruction to exit the coordinate encryption mode, and the touch chip exits the coordinate encryption mode. After obtaining the touch coordinates, no encryption operation is performed and the touch coordinates are directly transmitted to the host in plain text.

[0117] Furthermore, the instructions for entering the coordinate encryption mode and exiting the coordinate encryption mode can correspond to the actual usage scenarios. For occasions with high security requirements, such as POS machines, the host sends an instruction to enter the coordinate encryption mode and performs touch coordinate encryption operations to ensure the security of touch data transmission; for occasions with lower security requirements, such as gaming devices, the host sends an instruction to exit the coordinate encryption mode and does not perform touch coordinate encryption operations, which can reduce data transmission costs and reduce the burden on system computing resources.

[0118] In the disclosed embodiment, the coordinate encryption mode instruction may include a coordinate encryption random number for encrypting the touch coordinates. The coordinate encryption random number of each coordinate encryption mode instruction is constantly changing to improve the security of the touch data. Alternatively, the coordinate encryption mode instruction and the corresponding coordinate encryption random number may be sent separately, and the selection may be made according to the actual usage scenario. Accordingly, after obtaining the touch coordinates, the touch chip continues to encrypt the touch coordinates according to the firmware program to obtain the encrypted coordinates, such as Figure 6 As shown, the method for generating encrypted coordinates of the second embodiment of the present disclosure includes the following steps:

[0119] In the embodiment of the present disclosure, the method for generating encrypted coordinates of the second embodiment of the present disclosure is also executed by the touch control chip.

[0120] Step 601, read the coordinate key and coordinate key components.

[0121] In the embodiment of the present disclosure, step 601 is the same as step 501 and will not be described again here.

[0122] Step 602: Obfuscate the coordinate key and the coordinate key component to obtain a coordinate encryption key.

[0123] In the embodiment of the present disclosure, step 602 is the same as step 502 and will not be described again here.

[0124] Step 603: splice the touch coordinates and the coordinate encrypted random number to obtain a splicing result.

[0125] In the disclosed embodiment, the touch chip continues to splice the touch coordinates and the coordinate encrypted random numbers according to the firmware program to obtain a splicing result. The splicing method of the touch coordinates and the coordinate encrypted random numbers can be selectively set as needed and can be pre-agreed by the host and the touch chip. For example, the coordinate encrypted random numbers are spliced ​​after the touch coordinates, the coordinate encrypted random numbers are spliced ​​before the touch coordinates, the coordinate encrypted random numbers are inserted into the preset data position of the touch coordinates, and the coordinate encrypted random numbers are scattered and inserted into multiple data positions of the touch coordinates.

[0126] Step 604: symmetrically encrypt the stitching result using the coordinate encryption key to generate the encrypted coordinates.

[0127] In the disclosed embodiment, the touch chip continues to use the coordinate encryption key to symmetrically encrypt the spliced ​​touch coordinates and the coordinate encryption random number according to the firmware program to generate encrypted coordinates. The encryption algorithm of the symmetric encryption can be DES, 3DES, AES, RC4, RC5, RC6, IDEA, etc., preferably AES.

[0128] Furthermore, the touch chip application firmware may encrypt all touch coordinates, or may selectively encrypt part of the touch coordinates, depending on actual encryption requirements, computing resources, and the like.

[0129] In the embodiment of the present disclosure, through the method for generating encrypted coordinates of the second embodiment of the present disclosure, by utilizing the obfuscation processing of the coordinate key and the coordinate key component, the splicing of the touch coordinates and the coordinate encryption random number, and the symmetric encryption of the coordinate encryption key, triple protection of the touch data is achieved, which can improve the security of the touch data, reduce the risk of leakage of the touch data, and at the same time avoid the consumption of equipment manufacturing and replacement costs.

[0130] Step 103: reporting the encrypted coordinates to a host.

[0131] In the disclosed embodiment, after the encrypted coordinates are generated, the touch chip reports the encrypted coordinates to the host, which is used by the host's system chip to perform payment, unlocking, switching and other operations in the corresponding usage scenarios.

[0132] In the embodiments of the present disclosure, through the touch data transmission method of the first embodiment of the present disclosure, the touch chip can perform multiple protections on the touch data to obtain highly secure encrypted data, avoid leakage of plain text transmitted data, reduce the risk of leakage, and ensure the safe transmission of touch data. At the same time, since there is no need to adopt multiple packaging or hard protection methods, the consumption of manufacturing and replacement costs is avoided, and the security cost and time cost can be reduced.

[0133] In the disclosed embodiment, after receiving the encrypted coordinates, the host decrypts the encrypted coordinates and extracts the touch coordinates for use, such as Figure 7 As shown, the touch data transmission method of the second embodiment of the present disclosure includes the following steps:

[0134] In the embodiment of the present disclosure, the method for transmitting touch data in the second embodiment of the present disclosure is as follows: Figure 2 The host is executed in the touch device shown.

[0135] Step 701: Receive one or more encrypted coordinates reported by the touch chip.

[0136] In the disclosed embodiment, the host receives the encrypted coordinates reported by the touch chip.

[0137] Step 702: Decrypt the touch coordinates using the coordinate encryption key to obtain the touch coordinates.

[0138] In the disclosed embodiment, after receiving the encrypted coordinates, the host reads the local coordinate key and coordinate key component for scrambling, and uses the encryption key obtained by the scrambling process to decrypt the encrypted coordinates to obtain the touch coordinates. Figure 8 As shown, the decryption method of the encrypted coordinates of the first embodiment of the present disclosure includes the following steps:

[0139] Step 801, read the coordinate key and coordinate key components.

[0140] In the disclosed embodiment, when the touch device leaves the factory, an asymmetric public key, an asymmetric private key, an asymmetric public key hash value, a coordinate key, a coordinate key component, and a signature firmware are generated by a production tool and sent to a host. After the host retains the coordinate key and the coordinate key component, the asymmetric public key, the asymmetric public key hash value, the coordinate key, the coordinate key component, and the signature firmware are sent to the touch chip. The startup program of the touch chip writes the coordinate key and the signature firmware into the flash memory, and writes the asymmetric public key, the asymmetric public key hash value, and the coordinate key component into the one-time memory of the touch chip.

[0141] Furthermore, if Fig. 9 As shown, the factory delivery method of the touch device disclosed in the present invention includes the following steps:

[0142] In the embodiment of the present disclosure, the factory delivery method of the touch control device of the present disclosure is executed by a production tool.

[0143] Step 901, generate an asymmetric public key, an asymmetric private key, a coordinate key, and a coordinate key component.

[0144] In the disclosed embodiment, the generation algorithm of the asymmetric public key and the asymmetric private key is a key generation algorithm of a general asymmetric encryption algorithm, and can be processed according to the selection of the asymmetric encryption algorithm. For example, if the asymmetric encryption algorithm is RSA, the generation algorithm of the asymmetric public key and the asymmetric private key is the key generation algorithm of RSA. Among them, the asymmetric encryption algorithm can be selectively set as needed, for example, the asymmetric encryption algorithm is RSA, ECC, DSA and ElGamal, etc.

[0145] The coordinate key generation algorithm is a key generation algorithm of a general symmetric encryption algorithm, and can be processed according to the selection of the symmetric encryption algorithm. For example, if the symmetric encryption algorithm is AES, the coordinate key generation algorithm is the key generation algorithm of AES. Among them, the symmetric encryption algorithm can be selectively set as needed. For example, the encryption algorithm of the symmetric encryption can be DES, 3DES, AES, RC4, RC5, RC6, IDEA, etc., preferably AES.

[0146] The generation algorithm of the coordinate key component is a digest algorithm. The algorithm type of the digest algorithm can be selectively set as needed. For example, the generation algorithm of the coordinate key component is MD5, MD4, MD2, SHA1, SHA256, SHA384, SHA224, SHA512, etc., and SHA256 is preferably used.

[0147] Step 902: Use a first digest algorithm to perform hash processing on the asymmetric public key to obtain an asymmetric public key hash value.

[0148] In the embodiment of the present disclosure, the first digest algorithm can be selectively set as needed. For example, the first digest algorithm is MD5, MD4, MD2, SHA1, SHA256, SHA384, SHA224, SHA512, etc., with SHA256 being preferred.

[0149] Step 903: Use the asymmetric private key to encrypt the touch chip application firmware processed by the second digest algorithm to obtain a digital signature of the touch chip application firmware, and combine the digital signature with the touch chip application firmware to obtain a signed firmware.

[0150] In the embodiment of the present disclosure, step 903 includes steps 9031 to 9033.

[0151] Step 9031, generating touch chip application firmware according to the sensing signal processing process and the touch coordinate encryption process.

[0152] In the disclosed embodiment, since the firmware program of the touch chip application firmware is used to execute processes such as sensing signal processing and encryption operations, before the touch device leaves the factory, the firmware program is generated by a production tool to obtain the touch chip application firmware. The production tool may be a PC tool or the like.

[0153] Furthermore, touch devices with different security levels correspond to production environments with different degrees of closure. The higher the security level of the touch device, the more closed the corresponding production environment. For example, the security level requirement of a POS machine is higher than that of a smartphone. Accordingly, the degree of closure of the production environment of a POS machine is also higher than that of a smartphone.

[0154] Step 9032: Use a second digest algorithm to perform hash processing on the touch control chip application firmware to obtain an intermediate hash result.

[0155] In the disclosed embodiment, the production tool performs hash processing on the touch chip application firmware to obtain an intermediate hash result. The second digest algorithm can be selectively set as needed, for example, the second digest algorithm is MD5, MD4, MD2, SHA1, SHA256, SHA384, SHA224, SHA512, etc., and SHA256 is preferably used.

[0156] Step 9033: Use the asymmetric private key to encrypt the intermediate hash result to obtain a digital signature.

[0157] Step 904: Combine the firmware identifier, the digital signature, and the touch chip application firmware to obtain signed firmware.

[0158] Step 905: write the asymmetric public key, the coordinate key component and the asymmetric public key hash value into the one-time memory of the touch chip through the startup program of the touch chip, and write the coordinate key and the signature firmware into the flash memory through the startup program of the touch chip.

[0159] In the disclosed embodiment, the production tool sends a transparent transmission instruction to the host, and the transparent transmission instruction includes a coordinate key, a coordinate key component, an asymmetric public key, an asymmetric public key hash value, and a signature firmware. The host retains the coordinate key and the coordinate key component locally, and sends the coordinate key, the coordinate key component, the asymmetric public key, the asymmetric public key hash value, and the signature firmware to the startup program of the touch chip in the form of a write command. The write command includes a corresponding write location, and the startup program of the touch chip writes the coordinate key, the coordinate key component, the asymmetric public key, the asymmetric public key hash value, and the signature firmware to the corresponding storage location. For example, the startup program writes the asymmetric public key, the coordinate key component, and the asymmetric public key hash value into a one-time storage, and writes the coordinate key and the signature firmware into a flash memory.

[0160] In the embodiment of the present disclosure, through the factory delivery method of the touch device disclosed in the present disclosure, the production tool generates touch chip application firmware, an asymmetric public key, an asymmetric private key, a coordinate key, and a coordinate key component, and uses the asymmetric private key to process the touch chip application firmware to generate signature firmware; and processes the asymmetric public key to obtain an asymmetric public key hash value; finally, the asymmetric public key, the coordinate key component, and the asymmetric public key hash value that do not require updating are written into a one-time memory through the startup program of the touch chip, and the coordinate key and signature firmware that can be updated are written into the flash memory, thereby realizing the factory settings of the touch device. Subsequently, the touch device can perform firmware signature verification, touch coordinate encryption and decryption and other operations based on the factory settings, thereby ensuring the security of touch data, avoiding the consumption of high manufacturing and replacement costs, and improving production efficiency.

[0161] Step 802: Scramble the coordinate key and the coordinate key component to obtain a coordinate encryption key.

[0162] In the disclosed embodiment, the host scrambles the coordinate key and the coordinate key component according to an agreed scrambling algorithm to obtain a coordinate encryption key.

[0163] Step 803: symmetrically decrypt the encrypted coordinates using the coordinate encryption key to obtain touch coordinates.

[0164] In the disclosed embodiment, the host uses the coordinate encryption key to symmetrically decrypt the encrypted coordinates to obtain the touch coordinates.

[0165] In the embodiments of the present disclosure, through the decryption method of encrypted coordinates of the first embodiment of the present disclosure, the touch coordinates are obtained by scrambling the coordinate key and the coordinate key component and symmetric decryption of the coordinate encryption key, which can ensure the security and accuracy of the touch data, reduce the risk of leakage of the touch data, and avoid the consumption of equipment manufacturing and replacement costs.

[0166] In the embodiment of the present disclosure, or, in the case where the instruction to enter the coordinate encryption mode includes the corresponding coordinate encryption random number, the decryption of the encrypted coordinates also includes a splitting step, such as Fig.10 As shown, the decryption method of the encrypted coordinates of the second embodiment of the present disclosure includes the following steps:

[0167] Step 1001, read the coordinate key and coordinate key components.

[0168] In the embodiment of the present disclosure, step 1001 is the same as step 801 and will not be described again here.

[0169] Step 1002: Scramble the coordinate key and the coordinate key component to obtain a coordinate encryption key.

[0170] In the embodiment of the present disclosure, step 1002 is the same as step 802 and will not be described again here.

[0171] Step 1003: symmetrically decrypt the encrypted coordinates using the coordinate encryption key to obtain an intermediate decryption result.

[0172] In the disclosed embodiment, the host uses the coordinate encryption key to symmetrically decrypt the encrypted coordinates to obtain an intermediate decryption result of the encrypted coordinates.

[0173] Step 1004: extracting touch coordinates from the intermediate decryption result.

[0174] In the disclosed embodiment, the host separates the touch coordinates from the intermediate decryption result according to the agreed splicing method. For example, the splicing method is that the coordinate encryption random number is spliced ​​after the touch coordinates, and according to the number of digits of the coordinate encryption random number, the host starts counting forward from the end of the intermediate decryption result, and determines that the content before the same number of characters as the number of digits of the coordinate encryption random number is the touch coordinates; for another example, the splicing method is that the coordinate encryption random number is spliced ​​before the touch coordinates, and according to the number of digits of the coordinate encryption random number, the host starts counting backward from the beginning of the intermediate decryption result, and determines that the content after the same number of characters as the number of digits of the coordinate encryption random number is the touch coordinates.

[0175] Furthermore, in order to further improve the security of touch data, the host can also split the encrypted random numbers to be compared except for the touch coordinates from the intermediate decryption results, compare the encrypted random numbers to be compared with the coordinate encrypted random numbers, and determine whether the encrypted random numbers to be compared and the coordinate encrypted random numbers are the same. If the two are the same, the touch coordinates are determined to be safe and can be used directly; otherwise, it is determined that the touch coordinates are at risk of tampering or leakage and cannot be used directly, triggering the alarm mode alarm to re-update various keys, touch chip application firmware, etc., to achieve another layer of protection for touch data, prevent touch data leakage, and ensure touch data security.

[0176] Furthermore, the splitting of the encrypted random number to be compared and the touch coordinates is performed synchronously. For example, the splicing method is that the coordinate encrypted random number is spliced ​​after the touch coordinates, and the host starts counting forward from the end of the intermediate decryption result to determine that the characters with the same number of digits as the coordinate encrypted random number are the encrypted random number to be compared, and the rest are the touch coordinates; for another example, the splicing method is that the coordinate encrypted random number is spliced ​​before the touch coordinates, and the host starts counting backward from the beginning of the intermediate decryption result to determine that the characters with the same number of digits as the coordinate encrypted random number are the encrypted random number to be compared, and the rest are the touch coordinates.

[0177] In the embodiment of the present disclosure, through the decryption method of encrypted coordinates of the second embodiment of the present disclosure, the touch coordinates are obtained by utilizing obfuscation processing of the coordinate key and the coordinate key components, symmetric decryption, and splitting of the intermediate decryption results, which can ensure the security and accuracy of the touch data, reduce the risk of leakage of the touch data, and avoid the consumption of equipment manufacturing and replacement costs.

[0178] In the disclosed embodiment, whether the touch device encrypts the touch coordinates can be selectively set as needed. For areas with higher security requirements, encrypted reporting of the touch coordinates is selected to ensure the security of the touch coordinates. For areas with lower security requirements, traditional plain text reporting can still be used to ensure data transmission efficiency.

[0179] Furthermore, the host can control whether the touch coordinates of the touch chip are reported in encrypted form or in plain text by sending a command to enter or exit the coordinate encryption mode. Accordingly, when the host sends a command to enter the coordinate encryption mode to the touch chip, the touch chip enters the coordinate encryption mode.

[0180] Furthermore, in the coordinate encryption mode, the host sends a coordinate encryption random number to the touch chip, so that the touch chip uses the coordinate encryption random number to encrypt and report the touch coordinates. Accordingly, after the host sends the command to enter the coordinate encryption mode, it also includes:

[0181] Use random number generation algorithm to generate coordinate encrypted random numbers;

[0182] In the disclosed embodiment, the host uses a random number generation algorithm to arbitrarily generate a coordinate encryption random number. Among them, the random number generation algorithm, as well as the characters and bytes of the coordinate encryption random number can be selectively set according to security requirements. For example, the random number generation algorithm is a linear congruential method, a Mersenne prime rotation method, an XorShift algorithm, a multiplication congruential method, a square middle method, a polynomial congruential method, a Fibonacci sequence method, an inverse transformation method, a Monte Carlo method, etc., and the byte number of the coordinate encryption random number is 64 bytes.

[0183] In an embodiment of the present disclosure, alternatively, unlike the above-mentioned instruction to enter coordinate encryption mode and the coordinate encryption random number being sent separately, the coordinate encryption random number and the instruction to enter coordinate encryption mode can be sent together. For example, the coordinate encryption random number is added to the instruction to enter coordinate encryption mode, and the selection can be made according to the actual usage scenario.

[0184] Furthermore, after the touch chip enters the coordinate encryption mode corresponding to the coordinate encryption mode entry instruction, the coordinate encryption random number used for each symmetric encryption is the same.

[0185] In the embodiment of the present disclosure, through the touch data transmission method of the second embodiment of the present disclosure, the encrypted coordinates obtained by the host are highly secure encrypted data, which avoids the leakage of data transmitted in plain text, reduces the risk of leakage, and ensures the safe transmission of touch data. At the same time, since there is no need to adopt multiple packaging or hard protection methods, the consumption of manufacturing and replacement costs is avoided, which can reduce security costs and time costs.

[0186] In the embodiment of the present disclosure, when there is a need to update the touch chip application firmware and / or the coordinate key (for example, the touch device is returned to the factory for OTA upgrade, etc.), the startup program of the touch chip receives an update command issued by the production tool, and the update command includes the signature firmware to be updated and / or the coordinate key to be updated, such as Fig.11 As shown, the flash memory update method disclosed in the present invention includes the following steps:

[0187] In the embodiment of the present disclosure, the flash memory update method of the present disclosure is executed by a touch control chip.

[0188] Step 1101, receiving the signature firmware to be updated and / or the coordinate key to be updated.

[0189] In the disclosed embodiment, the startup program of the touch control chip receives the signature firmware to be updated and / or the coordinate key to be updated.

[0190] Furthermore, the production tool sends an update command through the host, so the host receives the signed firmware to be updated and / or the coordinate key to be updated sent by the production tool, and the startup program of the touch chip receives the signed firmware to be updated and / or the coordinate key to be updated sent by the host.

[0191] Step 1102: Overwrite the signature firmware with the signature firmware to be updated, and / or overwrite the coordinate key with the coordinate key to be updated.

[0192] In the disclosed embodiment, the startup program overwrites the original signature firmware with the signature firmware to be updated, and / or overwrites the original coordinate key with the coordinate key to be updated.

[0193] Furthermore, the production tool sends an update command through the host, whereby the host overwrites the original coordinate key with the coordinate key to be updated. In the disclosed embodiment, the touch chip application firmware and / or the coordinate key are updated through the flash memory update method disclosed in the present disclosure, thereby realizing the update of the sensing signal processing, encryption operation and other processes, which can improve the security of touch data and reduce the risk of touch data leakage.

[0194] Fig.12 is a schematic diagram of main modules of a touch data transmission device according to a first embodiment of the present disclosure, such as Fig.12 As shown, the touch data transmission device 1200 of the first embodiment of the present disclosure is applied to a touch chip, and the touch data transmission device 1200 includes:

[0195] The receiving module 1201 is used to receive the sensing signal from the sensing electrode, and process the sensing signal to obtain the touch coordinates.

[0196] The encryption module 1202 is used to encrypt the touch coordinates using a coordinate encryption key to obtain encrypted coordinates.

[0197] The reporting module 1203 is used to report the encrypted coordinates to the host.

[0198] Fig.13 is a schematic diagram of main modules of a touch data transmission device according to a second embodiment of the present disclosure, such as Fig.13 As shown, the touch data transmission device 1300 of the second embodiment of the present disclosure is applied to a host, and the touch data transmission device 1300 includes:

[0199] The receiving module 1301 is used to receive one or more encrypted coordinates reported by the touch control chip.

[0200] The decryption module 1302 is used to decrypt the touch coordinates using the coordinate encryption key to obtain the touch coordinates.

[0201] In the embodiment of the present disclosure, FIG. 14( a) shows Figure 2 The detailed diagram of the touch device shown in FIG14( a ) shows that the interaction process within the touch device includes:

[0202] The startup program of the touch chip loads the signed firmware and extracts the touch chip application firmware and the digital signature from the signed firmware;

[0203] The startup program reads the asymmetric encryption public key and the asymmetric public key hash value in the one-time storage, and performs hash processing on the asymmetric encryption public key using the first digest algorithm to obtain the public key hash value to be compared;

[0204] The startup program compares the public key hash value to be compared with the asymmetric public key hash value to determine whether the public key hash value to be compared is the same as the asymmetric public key hash value;

[0205] When the hash value of the public key to be compared is the same as the hash value of the asymmetric public key, the startup program uses the asymmetric public key to decrypt the digital signature to obtain a signature decryption result; uses the second digest algorithm to hash the touch chip application firmware to obtain a hash value of the firmware to be compared; compares the hash value of the firmware to be compared with the signature decryption result to determine whether the hash value of the firmware to be compared is the same as the signature decryption result; when the hash value of the firmware to be compared is the same as the signature decryption result, the startup program determines that the signature verification result of the touch chip application firmware is a successful verification; otherwise, the startup program determines that the signature verification result of the touch chip application firmware is a failed verification.

[0206] When the public key hash value to be compared is different from the asymmetric public key hash value, the startup program determines that the asymmetric public key is an illegal key, and the signature verification result of the touch chip application firmware is signature verification failure.

[0207] The host uses a random number generation algorithm to generate coordinate encrypted random numbers;

[0208] The host sends a command to enter the coordinate encryption mode and the coordinate encryption random number.

[0209] When the signature verification result of the touch chip application firmware is successful, the touch chip executes the firmware program of the touch chip application firmware, including:

[0210] receiving a sensing signal from the sensing electrode, and processing the sensing signal to obtain a touch coordinate;

[0211] Receive an instruction to enter a coordinate encryption mode and a coordinate encryption random number issued by a host, respond to the instruction to enter a coordinate encryption mode, read a coordinate key in a flash memory and a coordinate key component in a one-time memory, perform obfuscation processing on the coordinate key and the coordinate key component to obtain a coordinate encryption key; splice the touch coordinates and the coordinate encryption random number to obtain a splicing result; symmetrically encrypt the splicing result using the coordinate encryption key to generate the encrypted coordinates; and send the encrypted coordinates to the host.

[0212] The host receives one or more encrypted coordinates reported by the touch chip;

[0213] The locally stored coordinate key and coordinate key component are read, and the coordinate key and the coordinate key component are obfuscated to obtain a coordinate encryption key; the encrypted coordinates are symmetrically decrypted using the coordinate encryption key to obtain an intermediate decryption result; and the touch coordinates and the encrypted random number to be compared are separated from the intermediate decryption result.

[0214] The touch chip receives the signature firmware to be updated and / or the coordinate key to be updated;

[0215] The startup program overwrites the signature firmware with the signature firmware to be updated, and / or overwrites the coordinate key with the coordinate key to be updated.

[0216] It should be noted that the asymmetric public key, coordinate key, coordinate key component, asymmetric public key hash value, and whether the touch device's application firmware is updated can be selectively set based on actual update requirements, confidentiality requirements, and process requirements. Therefore:

[0217] In another embodiment of the present disclosure, when the asymmetric public key, coordinate key, coordinate key component and asymmetric public key hash value of the touch device do not need to be updated, and the touch chip application firmware needs to be updated, the touch device can be as shown in FIG. 14(b), where the asymmetric public key, coordinate key, coordinate key component and asymmetric public key hash value are all stored in the one-time memory of the touch chip, and the signature firmware is stored in the flash memory. Accordingly, the difference from the touch device shown in FIG. 14(a) is that the touch chip directly reads the coordinate key from the one-time memory when executing the encryption operation process of the firmware program.

[0218] In another embodiment of the present disclosure, when the asymmetric public key, coordinate key, coordinate key component, asymmetric public key hash value, and touch chip application firmware of the touch device all need to be updated, the touch device can be as shown in FIG14(c), the touch chip of the touch component does not include a disposable memory, and the asymmetric public key, coordinate key, coordinate key component, asymmetric public key hash value, and signature firmware are all stored in the flash memory. Accordingly, the difference from the touch device shown in FIG14(a) is that the startup program of the touch chip directly reads the asymmetric public key and the asymmetric public key hash value from the flash memory when verifying the touch chip application firmware; the touch chip directly reads the coordinate key from the flash memory when executing the encryption operation process of the firmware program.

[0219] In another embodiment of the present disclosure, when the asymmetric public key, coordinate key, coordinate key component, asymmetric public key hash value, and touch chip application firmware of the touch device do not need to be updated, the touch device can be as shown in FIG. 14(d), where the touch component only includes the touch chip, and the asymmetric public key, coordinate key, coordinate key component, asymmetric public key hash value, and signature firmware are all stored in a disposable memory, that is, the touch device does not include flash memory and can be used in a one-time factory and lifelong use scenario. Accordingly, the difference from the touch device shown in FIG. 14(a) is that the startup program of the touch chip directly reads the signature firmware from the disposable memory when verifying the touch chip application firmware; the touch chip directly reads the coordinate key from the disposable memory when executing the encryption operation process of the firmware program.

[0220] In the embodiments of the present disclosure, each touch device in the embodiments of the present disclosure can be applied to various fields requiring touch display, such as consumer electronics, industrial control and medical, automotive, smart home, etc., especially fields with extremely high requirements for the security of touch data, such as POS machines.

[0221] The exemplary embodiment of the present disclosure further provides a touch control chip, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a startup program and a touch control chip application firmware that can be executed by the at least one processor, and the startup program and the firmware program of the touch chip application firmware are used to enable the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0222] The exemplary embodiment of the present disclosure also provides a host, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method according to the embodiment of the present disclosure.

[0223] The exemplary embodiment of the present disclosure also provides an electronic device, including: a touch chip and a host. As an example but not a limitation, the electronic device in the embodiment of the present disclosure can be a portable or mobile computing device such as a terminal device, a mobile phone, a POS machine, a tablet computer, a laptop computer, a desktop computer, a gaming device, a vehicle-mounted electronic device or a wearable smart device, as well as other electronic devices such as an electronic database, a car, and an ATM.

[0224] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.

[0225] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.

[0226] refer to Fig.15 , a block diagram of an electronic device 1500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0227] like Fig.15 As shown, the electronic device 1500 includes a computing unit 1501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1502 or a computer program loaded from a storage unit 1508 into a random access memory (RAM) 1503. In the RAM 1503, various programs and data required for the operation of the device 1500 can also be stored. The computing unit 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0228] Multiple components in the electronic device 1500 are connected to the I / O interface 1505, including: an input unit 1506, an output unit 1507, a storage unit 1508, and a communication unit 1509. The input unit 1506 can be any type of device that can input information to the electronic device 1500, and the input unit 1506 can receive input digital or character information, and generate key signal input related to the user settings and / or function control of the electronic device. The output unit 1507 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1508 can include but is not limited to a disk, an optical disk. The communication unit 1509 allows the electronic device 1500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0229] The computing unit 1501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1501 performs the various methods and processes described above. For example, in some embodiments, Figure 1 , Figures 4 to 11 The method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 1508. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 1500 via ROM 1502 and / or communication unit 1509. In some embodiments, computing unit 1501 can be configured to execute by any other appropriate means (for example, by means of firmware). Figure 1 , Figures 4 to 11 method.

[0230] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0231] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0232] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0233] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0234] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0235] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A method for transmitting touch data, characterized in that: The transmission method is applied to a touch control chip, and the transmission method includes: receiving a sensing signal from the sensing electrode, and processing the sensing signal to obtain a touch coordinate; Encrypting the touch coordinates using a coordinate encryption key to obtain encrypted coordinates; The encrypted coordinates are reported to the host.

2. The transmission method according to claim 1, characterized in that: The step of encrypting the touch coordinates by using a coordinate encryption key includes: Reading coordinate keys and coordinate key components; Scrambling the coordinate key and the coordinate key component to obtain a coordinate encryption key; The touch coordinates are symmetrically encrypted using the coordinate encryption key.

3. The transmission method according to claim 2, characterized in that: Before reading the coordinate key and the coordinate key component, the method further includes: Receiving an instruction to enter a coordinate encryption mode and a coordinate encryption random number corresponding to the instruction to enter the coordinate encryption mode; In response to the instruction to enter the coordinate encryption mode, the coordinate encryption mode is entered. In the coordinate encryption mode, the coordinate encryption random number used for each symmetric encryption is the same.

4. The transmission method according to claim 3, characterized in that: The using the coordinate encryption key to symmetrically encrypt the touch coordinates includes: Splicing the touch coordinates and the coordinate encrypted random number to obtain a splicing result; The stitching result is symmetrically encrypted using the coordinate encryption key to generate the encrypted coordinates.

5. The transmission method according to claim 3, characterized in that: Also includes: The coordinate encryption random number corresponding to each instruction to enter the coordinate encryption mode is different.

6. The transmission method according to claim 2, characterized in that: The reading of the coordinate key and the coordinate key component includes: Read the coordinate key from the flash memory and read the coordinate key component from the one-time memory of the touch chip; or, Reading the coordinate key and coordinate key components from a flash memory; or, The coordinate key and the coordinate key component are read from a one-time memory of the touch control chip.

7. The transmission method according to claim 1, characterized in that: Before receiving the sensing signal from the sensing electrode, the method further includes: Load the signed firmware, and extract the touch chip application firmware and digital signature from the signed firmware; Read an asymmetric public key hash value and an asymmetric encryption public key, and verify the asymmetric encryption public key using the asymmetric public key hash value to determine whether the asymmetric encryption public key is a legal key; In the case that the asymmetric encryption public key is a legitimate key, the digital signature is decrypted using the asymmetric public key, and the touch chip application firmware is verified using the signature decryption result.

8. The transmission method according to claim 7, characterized in that: The reading of the asymmetric public key hash value and the asymmetric encryption public key comprises: Read the asymmetric public key hash value and the asymmetric encryption public key from the one-time memory of the touch control chip; or, The asymmetric public key hash value and the asymmetric encryption public key are read from flash memory.

9. The transmission method according to claim 1, characterized in that: Before receiving the sensing signal from the sensing electrode, the method further includes: Receiving a write instruction; wherein the write instruction includes a coordinate key, a coordinate key component, an asymmetric public key, an asymmetric public key hash value and a signature firmware; In response to the write instruction, write the coordinate key and the signature firmware into a flash memory, and write the coordinate key component, the asymmetric public key and the asymmetric public key hash value into a one-time memory of the touch control chip; or, In response to the write instruction, write the signature firmware into a flash memory, and write the coordinate key, the coordinate key component, the asymmetric public key, and the asymmetric public key hash value into a one-time memory of the touch control chip; or, In response to the write instruction, the coordinate key, the coordinate key component, the asymmetric public key, the asymmetric public key hash value and the signature firmware are written into a flash memory.

10. A method for transmitting touch data, characterized in that: The transmission method is applied to a host, and the transmission method comprises: Receiving one or more encrypted coordinates reported by the touch chip; The touch coordinates are decrypted using the coordinate encryption key to obtain the touch coordinates.

11. The transmission method according to claim 10, characterized in that: The decrypting the touch coordinates by using the coordinate encryption key includes: Read the local coordinate key and coordinate key components; Scrambling the coordinate key and the coordinate key component to obtain a coordinate encryption key; The encrypted coordinates are symmetrically decrypted using the coordinate encryption key.

12. The transmission method according to claim 10, characterized in that: Before receiving the one or more encrypted coordinates reported by the touch chip, the method further includes: Use random number generation algorithm to generate coordinate encrypted random numbers; Send an instruction to enter the coordinate encryption mode and generate the coordinate encryption random number.

13. The transmission method according to claim 12, characterized in that: Also includes: The coordinate encryption random number corresponding to each instruction to enter the coordinate encryption mode is different.

14. The transmission method according to claim 12, characterized in that: Also includes: The touch coordinates are separated from the intermediate decryption result of the symmetric decryption.

15. The transmission method according to claim 10, characterized in that: Before receiving the one or more encrypted coordinates reported by the touch chip, the method further includes: Receive a transparent transmission instruction; wherein the transparent transmission instruction includes a coordinate key, a coordinate key component, an asymmetric public key, an asymmetric public key hash value and a signature firmware; In response to the transparent transmission instruction, the coordinate key, the coordinate key component, the asymmetric public key, the asymmetric public key hash value and the signature firmware are sent to the touch control chip, and the coordinate key and the coordinate key component are stored locally.

16. A touch data transmission device, characterized in that: The transmission device is applied to a touch control chip, and the transmission device includes: A receiving module, used for receiving a sensing signal from a sensing electrode, processing the sensing signal, and obtaining a touch coordinate; An encryption module, used to encrypt the touch coordinates using a coordinate encryption key to obtain encrypted coordinates; The reporting module is used to report the encrypted coordinates to the host.

17. A touch data transmission device, characterized in that: The transmission device is applied to a host, and the transmission device comprises: A receiving module, used for receiving one or more encrypted coordinates reported by the touch chip; The decryption module is used to decrypt the touch coordinates using the coordinate encryption key to obtain the touch coordinates.