Dual-encryption intelligent door lock terminal and data processing method
By adopting a dual encryption scheme in the smart door lock system and using SM1 and SM4 algorithms to encrypt and decrypt the data, the problem of physical connection data transmission security in the door lock system is solved, and the secure transmission of data between various functional units is realized , improves the security and protection performance of the system.
Patent Information
- Application Number
- CN202411400315.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-10-09
AI Technical Summary
In the smart door lock system, despite the network communication encryption, there is a security loophole in the physical connection data transmission between the door lock MCU and the communication module, which is easy to intercept. The data transmission between the MCU and the encryption chip is plain text, which lacks effectiveness. The encryption protection results in insufficient security of personal privacy information.
Using a dual encryption scheme, the SM1 encryption and decryption between the chip and the door lock MCU, and the SM4 encryption and decryption between the communication module and the door lock MCU, ensure the dual encryption transmission of data between each functional unit, using SPI Conduct board-level communication with the UART interface.
It improves the data security of the smart door lock system, ensures the secure transmission of data at the link layer, prevents malicious interception and attacks, and enhances the security protection performance of the system.
Smart Images

Figure CN118972164A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of networked intelligent door locks, and in particular to a dual-encrypted networked intelligent door lock terminal, and a dual-encrypted intelligent door lock data processing method based on the terminal. Background Art
[0002] With the increasing popularity of smart door locks, the security of smart door locks has been paid more and more attention. However, in smart door lock systems, storage security and external network communication security are often emphasized, while the security of board-level communication data between chip modules is ignored. For example, there are often encryption methods for network communication between the door lock MCU and the communication module, and between the communication module and the system platform. However, if the communication protocol is open, the confidentiality of the network encryption method will be invalid in the physical connection between the door lock MCU and the communication module, and it is easy to be intercepted. For another example, some smart door locks will add encryption chips to the circuit board level design to enhance data encryption, but they often ignore the physical communication between the door lock MCU and the encryption chip. After the encryption chip decrypts the data and transmits it to the door lock MCU, the data communication is in plain text and can be easily intercepted.
[0003] At the same time, more and more personal privacy information is stored in smart door locks, such as facial features, fingerprint features, etc. These private information can be easily exploited when the system is unsafe, causing significant losses. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a smart door lock with dual data encryption and decryption with higher security, which can improve the security of key data of the networked smart door lock system and has the advantages of easy implementation and low cost.
[0005] To achieve the above object, the present invention adopts the following technical solutions: A double-encrypted smart door lock terminal of the present invention comprises an encryption and decryption chip, a door lock MCU, a communication module, and an induction recognition module. The communication module is used for input and output communication of data between the door lock and the Internet of Things platform; The encryption and decryption chip is used to perform SM1 encryption and decryption on input data; The door lock MCU is used for door lock control; the door lock MCU has a built-in SM4 encryption and decryption unit, and the SM4 encryption and decryption unit is used to perform SM4 encryption and decryption on input data; The sensing and recognition module is used to collect, store and recognize biometric information; The encryption and decryption chip and the door lock MCU are connected via a first board-level communication interface, and the communication module and the door lock MCU are connected via a second board-level communication interface.
[0006] Preferably, it also includes a motor drive module, an alarm module, a password input module, and a radio frequency card identification module.
[0007] Preferably, the first board-level communication interface may adopt an SPI bus interface, but is not limited to the SPI bus.
[0008] Preferably, the second board-level communication interface may adopt a UART connection interface, but is not limited to a UART connection.
[0009] Preferably, the sensing and recognition module includes a face acquisition and recognition module and / or a fingerprint acquisition and recognition module, etc.
[0010] The present invention also provides a double-encrypted smart door lock data processing method, which is characterized in that the method includes a processing method for sending data and a processing method for reporting data; The method for processing the sent data specifically includes the following steps: Step 101, the platform application service sends a data message, and the platform encryption and decryption service first encrypts the sent data message with the national secret SM4, and then encrypts the SM4 encrypted data with the national secret SM1; Step 102, the platform encryption and decryption service forwards the ciphertext doubly encrypted by SM1 and SM4 to the platform application service; the platform application service sends the ciphertext doubly encrypted by SM1 and SM4 to the corresponding door lock; Step 103: the door lock MCU receives the ciphertext sent down and forwards the ciphertext to the encryption and decryption chip; Step 104, the encryption and decryption chip performs SM1 decryption on the received ciphertext, and then forwards the SM1 decrypted ciphertext to the door lock MCU; Step 105, the door lock MCU performs SM4 decryption on the ciphertext decrypted by SM1, and the plaintext data message obtained after SM4 decryption is sent by the platform application service; The method for processing reported data specifically includes the following steps: Step 201, the door lock MCU performs SM4 encryption on the reported data message, and forwards the SM4 encrypted ciphertext to the encryption and decryption chip; Step 202, the encryption and decryption chip performs SM1 encryption on the ciphertext encrypted by SM4 and forwards it to the door lock MCU; Step 203, the door lock MCU reports the double-encrypted ciphertext of SM1 and SM4 to the platform application service; Step 204: the platform application service forwards the double-encrypted ciphertext to the platform encryption and decryption service. The platform encryption and decryption service first performs SM1 decryption on the ciphertext data; and then performs SM4 decryption on the ciphertext decrypted by SM1. Step 205: the platform encryption and decryption service reports the plaintext data after the two decryptions to the platform application service, and the platform application service parses and processes the reported plaintext data according to the agreed protocol definition.
[0011] The intelligent door lock of the present invention performs multiple encryption on the data, thus ensuring the data security of the link layer between the functional units; the present invention has high efficiency and strong practicality; the implementation scheme is simple and easy, and the reliability is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The present invention is a circuit principle block diagram of a double-encrypted intelligent door lock terminal.
[0013] Figure 2 Another circuit principle block diagram of the present invention.
[0014] Figure 3 The present invention is a flowchart of a method for processing data sent in a double-encrypted smart door lock data processing method.
[0015] Figure 4 The present invention is a flowchart of a method for processing reported data in a double-encrypted smart door lock data processing method.
[0016] In the figure: 101, encryption and decryption chip; 102, first board-level communication interface; 103, door lock MCU; 104, motor drive module; 105, induction recognition module; 106, second board-level communication interface; 107, communication module; 108, alarm module; 109, password input module; 110, radio frequency card recognition module; 111, power control module. DETAILED DESCRIPTION
[0017] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0018] like Figure 1 As shown, a double-encrypted smart door lock terminal of the present invention includes an encryption and decryption chip 101, a door lock MCU 103, a communication module 107, a sensing identification module 105, and a motor drive module 104 arranged on a main control board. MCU is the abbreviation of Microcontroller Unit, also known as a single chip microcomputer (Single Chip Microcomputer) or a single chip microcomputer, which appropriately reduces the frequency and specifications of the central processing unit (CPU), and integrates peripheral interfaces such as memory, timer, USB, A / D conversion, UART, PLC, DMA, and even LCD drive circuits on a single chip to form a chip-level computer, which performs different combination controls for different application scenarios.
[0019] The communication module 107 is used for input and output communication of data between the door lock and the IoT platform. The communication module 107 can be in the form of a Wi-Fi module, a Cat.1 module, a NB-IoT module, etc. according to the application scenario requirements.
[0020] The encryption and decryption chip 101 is used to perform SM1 encryption and decryption on input data. The SM1 algorithm is a block cipher algorithm with a block length of 128 bits and a key length of 128 bits. The algorithm security and confidentiality strength and related software and hardware implementation performance are comparable to AES. The algorithm is not public and only exists in the chip in the form of an IP core. The algorithm has developed a series of chips, smart IC cards, smart password keys, encryption cards, encryption machines and other security products, which are widely used in various application fields of e-government, e-commerce and the national economy. Therefore, the encryption and decryption chip 101 in this implementation can use the existing mature SM1 encryption and decryption chip.
[0021] The door lock MCU103 is used for door lock control; the door lock MCU103 has a built-in SM4 encryption and decryption unit, and the SM4 encryption and decryption unit is used to perform SM4 encryption and decryption on input data.
[0022] The SM4 algorithm is a packet algorithm used in wireless LAN products. The packet length of the algorithm is 128 bits and the key length is 128 bits. Both the encryption algorithm and the key expansion algorithm use a 32-round nonlinear iterative structure. The decryption algorithm has the same structure as the encryption algorithm, except that the order of the round keys is reversed. The decryption round key is the reverse order of the encryption round key.
[0023] The sensing and recognition module 105 is used to collect, store and recognize biometric information.
[0024] The encryption and decryption chip 101 and the door lock MCU 103 are connected via a first board-level communication interface 102. The communication method between the encryption and decryption chip 101 and the door lock MCU 103 only needs to meet the data communication rate requirement, that is, it is not limited to a specific communication connection method, such as SPI, UART, CAN, I2C, etc. In a preferred embodiment, the first board-level communication interface 102 adopts an SPI bus interface.
[0025] The communication module 107 and the door lock MCU 103 are connected via the second board-level communication interface 106. The communication connection mode between the communication module and the door lock MCU is not limited to a specific mode, such as UART, SPI, CAN, I2C and other communication modes. In a preferred embodiment, the second board-level communication interface 106 adopts a UART connection interface.
[0026] like Figure 2As shown, in another preferred embodiment, the double-encrypted smart door lock terminal also includes an alarm module 108, a password input module 109, a radio frequency card identification module 110 and a power control module 111.
[0027] The induction recognition module 105, the alarm module 108, the password input module 109, the radio frequency card recognition module 110 and the power control module 111 are respectively connected to the door lock MCU 103 through the connection circuits on the circuit board. The power control module 111 is used to supply power to each circuit module.
[0028] The sensing and recognition module 105 includes a face acquisition and recognition module and / or a fingerprint acquisition and recognition module, etc.
[0029] The intelligent door lock of the present invention performs multiple encryption on the data, thus ensuring the data security of the link layer between the functional units; the present invention has high efficiency and strong practicality; the implementation scheme is simple and easy, and the reliability is high.
[0030] A double-encrypted smart door lock terminal of this embodiment implements the following functions for the key data sent by the server: The door lock communication module 107 receives the ciphertext sent by the server; The door lock communication module 107 forwards the ciphertext to the door lock MCU 103; The door lock MCU 103 forwards the ciphertext to the encryption and decryption chip 101; The encryption and decryption chip 101 performs SM1 decryption on the received ciphertext; The encryption and decryption chip 101 then forwards the ciphertext decrypted by SM1 to the door lock MCU 103; The door lock MCU103 then performs SM4 decryption on the ciphertext decrypted by SM1. The plaintext data message obtained after SM4 decryption is sent by the server. Therefore, the door lock MCU can parse and process these plaintext data according to the agreed protocol definition; When the door lock MCU103 transfers key data to the sensing recognition module, because the data interaction with the sensing recognition module requires access authentication and the sensing recognition module provides data encryption and decryption functions, calling these functions can ensure the security of data interaction between the MCU and the sensing recognition module.
[0031] A double-encrypted smart door lock terminal of this embodiment implements the following functions for the key data reported by the smart door lock: The door lock MCU103 performs SM4 encryption on the reported data message; The door lock MCU 103 forwards the ciphertext encrypted by SM4 to the encryption and decryption chip 101; The encryption and decryption chip 101 performs SM1 encryption on the ciphertext encrypted by SM4; The encryption and decryption chip 101 forwards the ciphertext encrypted by SM1 to the door lock MCU; The door lock MCU103 reports the double-encrypted ciphertext of SM1 and SM4 to the server.
[0032] Furthermore, the above-mentioned functions are always transmitted in encrypted form during the data interaction process of the smart door lock, thereby ensuring the data security of the link layer between the functional units.
[0033] like Figure 3 As shown, the present invention implements a double-encrypted smart door lock data processing method. This method is implemented based on the double-encrypted smart door lock terminal in this embodiment. Relying on its double encryption function, the data messages sent and reported are encrypted twice by SM1 and SM4 algorithms to maintain the security of transmission between data chip modules, prevent leakage, avoid malicious intrusion into the smart door lock system, ensure the data security of the messages received by the smart door lock terminal, and avoid malicious attacks on the board-level data communication of the smart door lock. Double protection of data is achieved in the data processing process of the smart door lock system, which improves the security protection performance of the smart door lock system and the terminal and avoids malicious attacks.
[0034] The method includes a processing method for sending data and a processing method for reporting data.
[0035] like Figure 4 As shown, the method for processing the sent data specifically includes the following steps: Step 101, the platform application service sends a data message, and the platform encryption and decryption service first encrypts the sent data message with the national secret SM4, and then encrypts the SM4 encrypted data with the national secret SM1; Step 102, the platform encryption and decryption service forwards the ciphertext doubly encrypted by SM1 and SM4 to the platform application service; the platform application service sends the ciphertext doubly encrypted by SM1 and SM4 to the corresponding door lock; Step 103, the door lock MCU 103 receives the ciphertext sent down and forwards the ciphertext to the encryption and decryption chip 101; Step 104, the encryption / decryption chip 101 performs SM1 decryption on the received ciphertext, and then forwards the SM1 decrypted ciphertext to the door lock MCU 103; Step 105, the door lock MCU 103 performs SM4 decryption on the ciphertext decrypted by SM1, and the plaintext data message obtained after SM4 decryption is sent by the platform application service; like Figure 4 As shown, the method for processing reported data specifically includes the following steps: Step 201, the door lock MCU 103 performs SM4 encryption on the reported data message, and forwards the SM4 encrypted ciphertext to the encryption and decryption chip 101; Step 202, the encryption / decryption chip 101 performs SM1 encryption on the ciphertext encrypted by SM4, and forwards it to the door lock MCU 103; Step 203, the door lock MCU 103 reports the double-encrypted ciphertext of SM1 and SM4 to the platform application service; Step 204: the platform application service forwards the double-encrypted ciphertext to the platform encryption and decryption service. The platform encryption and decryption service first performs SM1 decryption on the ciphertext data; and then performs SM4 decryption on the ciphertext decrypted by SM1. Step 205: the platform encryption and decryption service reports the plaintext data after the two decryptions to the platform application service, and the platform application service parses and processes the reported plaintext data according to the agreed protocol definition.
[0036] The method of the present application performs double encryption and decryption processing on the sent and reported data messages to prevent data from being leaked, especially strengthen the communication security between the board levels, prevent the smart door lock system from being maliciously invaded, and make the data messages sent and received by the smart door lock terminal safe in the entire communication link. The security protection performance of the smart door lock system and the terminal is improved to avoid malicious attacks.
[0037] Because the door lock terminal receives and sends ciphertexts encrypted by SM1 and SM4 from the platform, they cannot be intercepted during the communication transmission process of the communication module 107. The data received by the door lock MCU 103 from the communication module 107 and forwarded to the door lock encryption and decryption chip 101 are also ciphertexts encrypted by SM1 and SM4, and the ciphertexts transmitted to the encryption and decryption chip 101 after being decrypted by SM1 are still SM4 encrypted ciphertexts, so the data transmitted to the door lock MCU 103 through the first board-level communication interface 102 after being decrypted by SM1 by the encryption and decryption chip 101 is also ciphertexts encrypted by SM4, and the communication process is also safe.
[0038] Similarly, the door lock MCU103 performs SM4 encryption on the reported data, and then transmits it to the door lock encryption and decryption chip 101 through the first board-level communication interface 102, which is also ciphertext transmission, and has the same security. The SM4 ciphertext is further encrypted by SM1 by the door lock encryption and decryption chip 101 to obtain a double-encrypted ciphertext, and then transmitted to the door lock MCU103 through the first board-level communication interface 102, which is also ciphertext transmission, which is safe. Therefore, the door lock board-level encryption and decryption solution is ciphertext transmission in the entire board-level transmission process, which can ensure the security of data.
[0039] The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A double-encrypted smart door lock terminal, characterized in that: The terminal comprises an encryption and decryption chip (101), a door lock MCU (103), a communication module (107), and an induction recognition module (105). The communication module (107) is used for data input and output communication between the door lock and the Internet of Things platform; The encryption and decryption chip (101) is used to perform SM1 encryption and decryption on input data; The door lock MCU (103) is used for door lock control; the door lock MCU (103) has a built-in SM4 encryption and decryption unit, and the SM4 encryption and decryption unit is used for performing SM4 encryption and decryption on input data; The sensing and recognition module (105) is used to collect, store and recognize biometric information.
2. According to claim 1, a double-encrypted smart door lock terminal is characterized in that: The encryption / decryption chip (101) and the door lock MCU (103) are connected via a first board-level communication interface (102), and the communication module (107) and the door lock MCU (103) are connected via a second board-level communication interface (106).
3. According to claim 1, a double-encrypted smart door lock terminal is characterized in that: It also includes a motor drive module (104), an alarm module (108), a password input module (109), a radio frequency card identification module (110) and a power supply control module (111).
4. According to claim 2, a double-encrypted smart door lock terminal is characterized in that: The first board-level communication interface (102) may adopt an SPI bus interface, but is not limited to the SPI bus.
5. A double-encrypted smart door lock terminal according to claim 2, characterized in that: The second board-level communication interface (106) may adopt a UART connection interface, but is not limited to a UART connection.
6. A double-encrypted smart door lock terminal according to claim 1, characterized in that: The sensing and recognition module (105) comprises a face collection and recognition module and / or a fingerprint collection and recognition module.
7. A double-encrypted smart door lock data processing method, characterized in that: The method includes a processing method for sending data and a processing method for reporting data; The method for processing the sent data specifically includes the following steps: Step 101, the platform application service sends a data message, and the platform encryption and decryption service first encrypts the sent data message with the national secret SM4, and then encrypts the SM4 encrypted data with the national secret SM1; Step 102, the platform encryption and decryption service forwards the ciphertext doubly encrypted by SM1 and SM4 to the platform application service; the platform application service sends the ciphertext doubly encrypted by SM1 and SM4 to the corresponding door lock; Step 103, the door lock MCU (103) receives the ciphertext sent down and forwards the ciphertext to the encryption and decryption chip (101); Step 104, the encryption / decryption chip (101) performs SM1 decryption on the received ciphertext, and then forwards the SM1 decrypted ciphertext to the door lock MCU (103); Step 105, the door lock MCU (103) performs SM4 decryption on the ciphertext decrypted by SM1, and the plaintext data message obtained after SM4 decryption is sent by the platform application service; The method for processing reported data specifically includes the following steps: Step 201, the door lock MCU (103) performs SM4 encryption on the reported data message, and forwards the SM4 encrypted ciphertext to the encryption and decryption chip (101); Step 202, the encryption / decryption chip (101) performs SM1 encryption on the ciphertext encrypted by SM4 and forwards it to the door lock MCU (103); Step 203, the door lock MCU (103) reports the ciphertext after double encryption of SM1 and SM4 to the platform application service; Step 204: the platform application service forwards the double-encrypted ciphertext to the platform encryption and decryption service. The platform encryption and decryption service first performs SM1 decryption on the ciphertext data; and then performs SM4 decryption on the ciphertext decrypted by SM1. Step 205: the platform encryption and decryption service reports the plaintext data after the two decryptions to the platform application service, and the platform application service parses and processes the reported plaintext data according to the agreed protocol definition.
Citation Information
Patent Citations
Door lock, key terminal, door lock system, control method of door lock system and server
CN111739196A
Encryption system based on CAN bus transmission
CN114095302A
Using method of intelligent encryption network card based on national cryptographic algorithm
CN117040753A
High-speed data encryption communication method
CN117714031A
Intelligent safety lock based on hardware random encryption and decryption technology
CN211956581U
