An encryption and decryption method of an eMMC controller based on random numbers

By using the eMMC controller's authentication and dual encryption algorithms, the risk of data leakage during data transmission is solved, achieving dual encryption protection for the data transmission path and content, thus improving data security.

CN115935382BActive Publication Date: 2026-11-27BEIJING UNIV OF TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211263373.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-15
Publication Date
2026-11-27
Estimated Expiration
2042-10-15

AI Technical Summary

Technical Problem

Traditional data transmission processes are susceptible to path interruption, leading to data leakage risks. Traditional password verification methods lack sufficient security and cannot meet the needs of high-level data protection.

Method used

An eMMC controller based on random numbers is used to achieve encryption and decryption of data transmission paths and content through user authentication, dual encryption algorithms and sequence generators, including address encryption and data encryption. An RFID module is used for user authentication and data storage management.

Benefits of technology

It improves the security of data transmission and storage, ensures dual protection of data in both transmission path and content, simplifies the calculation process, and is suitable for user needs in multiple fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115935382B_ABST
    Figure CN115935382B_ABST
Patent Text Reader

Abstract

The application discloses an encryption and decryption method of an eMMC controller based on random numbers, and requires user identity information identification when the user writes or reads data; the PICC identity authentication card of the user is verified by an RFID system. After successful authentication, the user can have the permission to write and read data. The written data is subjected to encryption processing of a transmission path and transmission content by a double encryption algorithm and a sequence generator. The sequence generator generates a ciphertext instruction, and stores the data into a corresponding storage address, which is address encryption; the ciphertext instruction indicates extraction of data corresponding position information and integration to a data tail, which is data encryption. The read data is subjected to decryption processing of a transmission path and transmission content by the ciphertext instruction, and is transmitted to a host computer. The application is simple in operation, only needs to extract data, has a wide application range of the RFID module, is high in recognition degree, and can provide technical support for user demands in multiple fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission security, and in particular to an encryption method for data transmission. Background Technology

[0002] Today, electronic information is developing rapidly and is closely related to all aspects of life, becoming an inseparable part of it. However, the diversity of electronic information and the increasingly complex network environment mean that even the smallest vulnerability during information transmission poses a risk of information leakage and tampering. Therefore, people are paying more attention to the security of data in electronic information transmission. Traditional password verification methods may be intercepted and tampered with due to insufficient security levels, and can no longer meet today's high-level data protection requirements. In response to the growing demand for encryption of electronic information data, encryption modules are usually added to the main control unit to store plaintext data in ciphertext. However, the possibility of data transmission being interrupted during transmission still exists, leading to potential leaks. Summary of the Invention

[0003] In response to the aforementioned security vulnerabilities in data transmission, the purpose of this invention is to achieve dual encryption protection for both the data transmission path and the transmitted content.

[0004] To address the above issues, this invention proposes an encryption / decryption method for an eMMC controller based on random numbers. The method is characterized by requiring user identification when writing or reading data; the user's PICC identity authentication card is verified by the system via RFID. Only after successful authentication is the user authorized to write and read data. The written data undergoes encryption processing of its transmission path and content using a dual encryption algorithm and a sequence generator. The sequence generator generates ciphertext instructions and stores the data in the corresponding storage address (address encryption); the ciphertext instructions then instruct the extraction of the corresponding data location information and its integration into the data appendix (data encryption). The read data undergoes decryption processing of its transmission path and content using ciphertext instructions before being transmitted to the host computer.

[0005] The encryption and decryption method for the eMMC controller based on random numbers is characterized by implementing the method through an eMMC encryption chip device, including a main controller, a dual encryption algorithm module, a sequence generator, Flash storage, an eMMC interface module (eMMC Interface), an SPI interface module (SPI Interface), and RFID. The main controller, dual encryption algorithm module, sequence generator, eMMC interface module (eMMC Interface), SPI interface module (SPI Interface), and RFID are all connected via an AHB bus; the eMMC interface module (eMMC Interface) is connected to an external host AP via an eMMC channel; the sequence generator is connected to the dual encryption algorithm module; the Flash storage is connected to the SPI interface module (SPI Interface) via an SPI channel; and the PICC and AHB bus are connected via the RFID module. The main controller controls the operating modes of each module in the chip; the eMMC interface module writes host data to the chip or reads stored data from the host, and encryption is required via the AHB bus during data transmission. For applications requiring high data read / write speeds, the chip accesses the Flash memory using a general-purpose SPI interface module as the data interaction protocol.

[0006] The dual encryption algorithm module is the core module, its main functions being address encryption and data encryption to improve the security of data transmission and storage, meeting user needs. This core module is triggered by a sequence generator, which generates random numbers as ciphertext instructions, indicating the data storage address and the encryption method for the data content. Flash storage is divided into multiple storage addresses; the ciphertext instructions control the data being written to the corresponding Flash address—this is address encryption. Data consists of multiple bits; the ciphertext instructions control the extraction of data from positions matching the last digit of the ciphertext instructions and integrate them to the end of the data, thus scattering and encrypting the written data—this is data encryption. The reading method is the same as writing, both guided by ciphertext instructions for decoding and reading.

[0007] This invention enhances the security of data transmission and storage by authenticating user information and encrypting / decrypting data transmission addresses and content, thereby protecting data security. Unlike cyclic redundancy check (CRC) encryption algorithms, this invention is computationally simple, requiring only data extraction and avoiding division and complex mathematical operations. Furthermore, RFID modules have a wide range of applications, high identification accuracy, and can efficiently provide technical support for user needs across multiple fields. Attached Figure Description

[0008] Figure 1 This is a schematic diagram of the eMMC encryption chip device.

[0009] Figure 2 This is a schematic diagram of the actual writing operation process of the eMMC encryption chip device.

[0010] Figure 3 This is a schematic diagram of the actual read operation process of the eMMC encryption chip device. Detailed Implementation

[0011] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0012] Figure 1 This is a schematic diagram of an eMMC encryption chip device, including a main controller, a dual encryption algorithm module, a sequence generator, Flash memory, an eMMC interface module (eMMC Interface), an SPI interface module (SPI Interface), and RFID. The main controller, dual encryption algorithm module, sequence generator, eMMC interface module (eMMC Interface), SPI interface module (SPI Interface), and RFID are all connected via the AHB bus; the eMMC interface module (eMMC Interface) is connected to the external host AP via an eMMC channel; the sequence generator is connected to the dual encryption algorithm module; the Flash memory is connected to the SPI interface module (SPI Interface) via an SPI channel; and the PICC and AHB bus are connected via the RFID module. The main controller executes various commands, controls the operation of each module, and realizes module management and control within the eMMC encryption chip. A sequence generator generates random numbers to provide ciphertext instructions to the dual encryption algorithm module, enabling encryption and decryption of data transmission paths and content. The dual encryption algorithm module encrypts and decrypts data, allocates data storage paths, and improves the security of data transmission. The Flash storage module stores ciphertext instructions and user data, among other related information. The RFID module authenticates user information, achieving consistent authentication and user management. The eMMC Interface enables data transmission with the AP host, and the SPI Interface enables data transmission with the Flash storage. This invention combines RFID user information authentication and the dual encryption algorithm module to improve user access security, protect data transmission paths, and enhance data encryption, providing comprehensive technical support for data security.

[0013] Figure 2This is a schematic diagram of the actual writing operation process of the eMMC encryption chip device. In actual operation, the AP host requests data to be written to the eMMC encryption chip. Before the eMMC main controller processes the data, the user uses the RFID module to sense the PICC identity authentication card and obtain user information, which is then verified by the main controller and the database. After successful authentication, the user can write data and transmit it to the AHB bus through the eMMC interface; if authentication fails, user operation is prohibited. The written data undergoes encryption of the transmission path and content using a dual encryption algorithm module. The encryption process is as follows: a sequence generator generates a random number, which serves as the ciphertext instruction and is appended to the end of the written data, instructing the data to be stored in a Flash storage unit consistent with the ciphertext instruction. This is the encryption of the data transmission path. This random number instructs the extraction of corresponding position data from the written data and appends it to the end of the data. This is the encryption of the data transmission content. For example, if the random number generated by the sequence generator is 3, then the 3rd, 13th, and 23rd positions of the data are extracted and appended to the end of the data. After the data is encrypted, it is sent to the SPI Interface in ciphertext form and stored in the corresponding Flash memory address, thus completing the write operation.

[0014] Figure 3 This is a schematic diagram of the actual readout operation of the eMMC encryption chip device. In actual operation, the AP host requests data to be read from the eMMC encryption chip. Before the eMMC main controller processes the data, the user uses the RFID module to sense the PICC identity authentication card and obtain user information. The main controller then verifies the user information against the database. After successful authentication, the user can read the data, which is transmitted from the Flash storage address consistent with the ciphertext instruction to the AHB bus via the SPI interface. If authentication fails, user operation is prohibited. The stored data is decrypted using the ciphertext instruction. The decryption process is as follows: a random number concatenated in the data serves as the ciphertext instruction. Information from the end of the data is integrated into the corresponding position in the data. Then, the ciphertext instruction is cut from the data; this is the decryption process. For example, if the random number is 3, the information from the end of the data is integrated into the 3rd, 13th, 23rd, etc., positions of the data. The decrypted data is sent to the eMMC interface and finally read into the AP, completing the readout operation.

[0015] The above-disclosed embodiments are merely one example of the present invention and should not be construed as limiting the scope of the invention. Those skilled in the art will understand that implementing all or part of the processes of the above embodiments and making equivalent changes in accordance with the claims of the present invention are still within the scope of the present invention.

Claims

1. An encryption / decryption method for an eMMC controller based on random numbers, characterized in that, When a user writes or reads data, the user is required to verify their identity information. The user's PICC identity authentication card is verified by the system via RFID. After successful authentication, the user is authorized to write and read data. The written data is encrypted using a dual encryption algorithm and a sequence generator to encrypt the transmission path and content. The sequence generator generates ciphertext instructions and stores the data in the corresponding storage address; this is address encryption. The ciphertext instructions instruct the extraction of the corresponding location information of the data and its integration into the end of the data; this is data encryption. The read data is decrypted using ciphertext instructions to decrypt the transmission path and content before being transmitted to the host. The external host AP requests data to be read from the eMMC encryption chip. Before the eMMC main controller processes the data, the user uses the RFID module to sense the PICC identity authentication card and obtain user information. The main controller then verifies the user information against the database. After successful authentication, the user can read the data, which is transmitted from the Flash storage address consistent with the ciphertext instruction to the AHB bus via the SPI interface. If authentication fails, user operation is prohibited. The stored data is decrypted using the ciphertext instruction. The decryption process is as follows: a random number concatenated in the data serves as the ciphertext instruction. Information from the end of the data is integrated into the corresponding position in the data. Then, the ciphertext instruction is cut from the data, which is the decryption process. The decrypted data is sent to the eMMC interface and finally read from the external host AP, completing the read operation.

2. The encryption and decryption method for an eMMC controller based on random numbers according to claim 1, characterized in that, This method is implemented using an eMMC encryption chip device, comprising a main controller, a dual encryption algorithm module, a sequence generator, Flash storage, an eMMC interface module (eMMC Interface), an SPI interface module (SPI Interface), and RFID. The main controller, dual encryption algorithm module, sequence generator, eMMC interface module (eMMC Interface), SPI interface module (SPI Interface), and RFID are all connected via an AHB bus. The eMMC interface module (eMMC Interface) is connected to an external host AP via an eMMC channel. The sequence generator is connected to the dual encryption algorithm module. The Flash storage is connected to the SPI interface module (SPI Interface) via an SPI channel. The PICC and AHB bus are connected via the RFID module. The main controller controls the operating modes of each module in the chip. The eMMC interface module writes host data to the chip or reads stored data back to the host. During data transmission, encryption is required via the AHB bus. When high data read / write speed is required, the chip accesses Flash using a general-purpose SPI interface module as the data interaction protocol.

3. The encryption and decryption method for an eMMC controller based on random numbers according to claim 1, characterized in that, The dual encryption algorithm module is the core module, which functions as address encryption and data encryption to improve the security of data transmission and storage, and meet user needs. This core module is triggered by a sequence generator, which generates random numbers as ciphertext instructions to indicate the storage address of the data and the encryption method of the data content. Flash storage is divided into multiple storage addresses. Data written under the control of ciphertext instructions is stored in the corresponding Flash address, which is address encryption. Data consists of multiple bits. Data at positions that match the bits of the ciphertext instructions are extracted from the data and integrated into the end of the data. The written data is then shuffled and encrypted, which is data encryption. The reading method is the same as the writing method, with ciphertext instructions indicating decoding and reading.

Citation Information

Patent Citations

  • Data encryption control system based on USB interface and chip

    CN112329038A

  • Encryption Method for Execute-In-Place Memories

    US20150371063A1