Access control method and device, electronic equipment and storage medium
By generating an encryption key based on the attribute characteristics of the terminal device, encrypting the communication control module data and performing digital signature identity authentication, the problem of poor data security of the communication control module in the prior art is solved, and the security of the terminal device is significantly improved Sex and stability.
Patent Information
- Application Number
- CN202310566943.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, the data of the communication control module of the mobile phone terminal is stored in plain text, which poses a major security risk, which is easily breached and leads to leakage of network information, resulting in poor security.
By generating an encryption key based on the attribute characteristics of the terminal device, the device data of the communication control module is encrypted, and digital signature identity authentication is performed when a data access request is received, and access is allowed only if the authentication is passed.
Effectively prevent hackers from reversing the plaintext data, improve the security and reliability of the device data stored in the communication control module, and improve the overall security and stability of the terminal equipment.
Smart Images

Figure CN119011166A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an access control method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] The mobile terminal lock function is centralized, and the network connection of the terminal device can be controlled through the communication control module. Generally, the communication control module can be controlled by entering simple instructions and verification codes, which poses a great security risk.
[0003] In the related art, most of the data in the communication control module is stored in plain text. Once the communication control module is hacked, the relevant network information will be leaked, so the security is poor. Summary of the invention
[0004] The purpose of the present disclosure is to provide an access control method and device, an electronic device, and a computer-readable storage medium, thereby overcoming the problem of poor security caused by the limitations and defects of related technologies at least to a certain extent.
[0005] According to a first aspect of the present disclosure, there is provided an access control method, comprising: generating an encryption key corresponding to the terminal device based on attribute characteristics of the terminal device, and encrypting device data of a communication control module in the terminal device by means of the encryption key; receiving a data access request to the communication control module, and performing a digital signature authentication on the data access request to obtain an authentication result; and, under the condition that the authentication result is authentication passed, processing the device data corresponding to the data access request by means of the encryption key, and executing a target operation corresponding to the data access request on the processed device data.
[0006] According to a second aspect of the present disclosure, there is provided an access control device, comprising: a key generation module, for generating an encryption key corresponding to the terminal device based on the attribute characteristics of the terminal device, and encrypting the device data of the communication control module in the terminal device through the encryption key; an identity authentication module, for receiving a data access request to the communication control module, and performing a digital signature identity authentication on the data access request to obtain an identity authentication result; a data access module, for processing the device data corresponding to the data access request through the encryption key, under the condition that the identity authentication result is authentication passed, and executing the target operation corresponding to the data access request on the processed device data.
[0007] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods and possible implementations thereof by executing the executable instructions.
[0008] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the above and its possible implementation methods are implemented.
[0009] In the technical solution provided in the embodiment of the present disclosure, on the one hand, by generating a corresponding encryption key according to the attribute characteristics of the terminal device, and using the encryption key to encrypt the device data in the communication control module, since the encryption key is unique and unpredictable, it can prevent hackers from reverse cracking and restoring the plain text, thereby improving the security and reliability of the device data stored in the communication control module, and further improving the security of the product system of the terminal device. On the other hand, since when a data access request to the communication control module is received, the data access request can be digitally signed and authenticated, so that access to the communication control module is allowed only when the authentication result is authentication passed, the problem of illegal external parties accessing is avoided, and the overall security and stability of the system are improved.
[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0012] Figure 1 A schematic diagram showing an application scenario in which the access control method of the embodiment of the present disclosure can be applied.
[0013] Figure 2 A flowchart of an access control method according to an embodiment of the present disclosure is schematically shown.
[0014] Figure 3 A schematic diagram of a communication control module in an embodiment of the present disclosure is schematically shown.
[0015] Figure 4 A schematic diagram of performing digital signature identity authentication in an embodiment of the present disclosure is schematically shown.
[0016] Figure 5 The flowchart of data reading in the embodiment of the present disclosure is schematically shown.
[0017] Figure 6 The diagram schematically shows data writing in an embodiment of the present disclosure.
[0018] Figure 7 The overall flow chart of data processing in an embodiment of the present disclosure is schematically shown.
[0019] Figure 8 A block diagram of an access control device in an embodiment of the present disclosure is schematically shown.
[0020] Fig. 9 A block diagram of an electronic device in an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0021] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0022] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0023] In some embodiments of the present disclosure, the mobile phone terminal locking function is centralized with modern side control. Modern can be controlled by inputting simple instructions and verification codes, and the related control instructions below can unlock the machine, connect to the network, make calls and other functions. There are great security risks, and most of the data on the modern side is stored in plain text. Once modern is hacked, relevant network information, such as IMEI, network operator configuration and other information will be leaked, causing corresponding losses.
[0024] Since the protection of modern chips is stored in plain text, some simple checks can be used to bypass control. For example, some manufacturers can enter modern chips by simply comparing IMEI numbers or adding hash value checks. Through relevant network unlocking instructions, the entire modern chip can be controlled, and more relevant sensitive information stored in the modern chip can be obtained, such as the operator's network configuration, etc.
[0025] In order to solve the above technical problems, an access control method is provided in an embodiment of the present disclosure, which can be applied to a process in which an external party accesses a communication control module of a terminal device. Figure 1 A schematic diagram showing a system architecture to which the access control method and apparatus according to the embodiments of the present disclosure can be applied.
[0026] like Figure 1 As shown, an encryption key can be generated first, and the device data in the communication control module can be encrypted by the encryption key. An external party can send a data access request to the communication control module of the terminal device. The communication control module performs digital signature authentication on the data access request to obtain an authentication result. Whether access rights are granted is determined based on the authentication result.
[0027] It should be noted that the access control method provided in the embodiments of the present disclosure can be executed by a terminal device. The terminal device can be any type of device with a communication control module, such as a smart phone, computer, tablet computer, smart speaker, smart watch, vehicle-mounted device, monitoring device, and other smart devices.
[0028] Figure 2 The flowchart of image processing is schematically shown in FIG. Figure 2 As shown in , it mainly includes the following steps:
[0029] In step S210, an encryption key corresponding to the terminal device is generated based on the attribute characteristics of the terminal device, and the device data of the communication control module in the terminal device is encrypted by the encryption key;
[0030] In step S220, a data access request to the communication control module is received, and a digital signature identity authentication is performed on the data access request to obtain an identity authentication result;
[0031] In step S230, under the condition that the identity authentication result is authentication passed, the device data corresponding to the data access request is processed by using the encryption key, and the target operation corresponding to the data access request is performed on the processed device data.
[0032] In the disclosed embodiment, on the one hand, by generating a corresponding encryption key according to the attribute characteristics of the terminal device, and using the encryption key to encrypt the device data in the communication control module, since the encryption key is unique and unpredictable, it can prevent hackers from reverse cracking and restoring the plain text, thereby improving the security and reliability of the device data stored in the communication control module, and further improving the security of the product system of the terminal device. On the other hand, since when a data access request to the communication control module is received, the data access request can be digitally signed and authenticated, and access to the communication control module is allowed only when the authentication result is authentication passed, thereby avoiding the problem of illegal external parties accessing and improving the overall security and stability of the system.
[0033] Next, refer to Figure 2 As shown in , each step of the access control method is described in detail.
[0034] In step S210, an encryption key corresponding to the terminal device is generated based on the attribute characteristics of the terminal device, and the device data of the communication control module in the terminal device is encrypted by the encryption key.
[0035] In the embodiments of the present disclosure, the terminal device may be any type of intelligent device that can be used to perform communication functions, for example, the terminal device may be a mobile phone, a tablet computer, etc. The communication control module may be a modern module in the terminal device. The modern module may be a module in an integrated chip or a separate modern chip, which is not specifically limited here, as long as the communication function can be controlled. The communication control module is used to control the network connection function in the terminal device, for example, it can control the network connection status, Bluetooth, WiFi, etc. The communication control module may be a dynamic random access memory, refer to Figure 3 As shown in , the communication control module may include data such as device serial number IMEI, network operator configuration information and other sensitive information. For the data in the communication control module, encryption is required to improve security.
[0036] In some embodiments, the terminal device may include a research and development phase, a production phase, and a use phase. In the research and development phase of the terminal device, a SDK (Software Development Kit) may be embedded in the communication control module of the terminal device, and compiled and built into the chip firmware of the communication control module. The software development kit may be a software development kit based on a physically unclonable function PUF.
[0037] During the production phase of the terminal device, the communication control module calls the software development kit integrated through the firmware, and generates an encryption key for encrypting and decrypting the communication control module when it detects that the communication control module is powered on. For example, an encryption key can be generated based on the attribute characteristics of the terminal device using a PUF (Physical Unclonable Function) method. Since the terminal device contains a dynamic random access memory, the attribute characteristics refer to the power-on randomness of the dynamic memory.
[0038] Physical Unclonable Function (PUF) is a hardware security technology that uses inherent device variation to produce a unique device response to a given input that cannot be cloned. Currently, PUF is usually implemented as an integrated circuit and is often used in applications with high security requirements. A unique random number can be generated for the communication control module in each terminal device through the internal designation of the PUF and used as an encryption key.
[0039] Based on this, an encryption key can be generated based on the attribute characteristics of the DRAM (Dynamic Random Access Memory) itself in the terminal device. Specifically, a unique and unpredictable random number is generated for each terminal device based on the power-on randomness of the dynamic random access memory, and the random number is used as the encryption key of the communication control module. The random number can be a 32-byte random number.
[0040] It should be noted that the random number can be generated when the terminal device corresponding to the communication control module is powered on, and when the communication control module is powered off, the encryption key represented by the random number is lost. When it is detected that the communication control module is powered on again, the random number can be regenerated to use the random number as the encryption key. Among them, the encryption key generated during each power-on process can be the same, that is, for a communication control module, the random number generated according to the power-on randomness of the dynamic random memory is fixed and unchanged, and the encryption key corresponds to the communication control module one by one.
[0041] For example, if it is detected that the communication control module is powered on, a random number 1 can be generated as an encryption key; if the communication control module is powered off at this time, the random number 1 is discarded. After a period of time, if it is detected that the communication control module is powered on again, a random number 1 can be regenerated and used as a new encryption key. If there is no power failure, the random number 1 can be used for data encryption and decryption. If the communication control module is powered off, the random number 1 is discarded, and a random number is regenerated as an encryption key when it is powered on again.
[0042] A random number is generated based on the power-on randomness of the dynamic random access memory, and the random number is used as an encryption key to encrypt and protect the data in the entire communication control module. Since the random number changes with power-on and is unpredictable, and can be discarded when the communication control module loses power, it can prevent the data in the communication control module from being illegally read, thereby improving data security.
[0043] During the production phase of the communication control module, the device data of the communication control module can also be encrypted by an encryption key to store it in the flash memory of the communication control module. The flash memory can be a flash memory, which is a form of electronically erasable programmable read-only memory that allows multiple erasures or writes during operation. The device data may include, but is not limited to, factory-preset device serial numbers, operator configuration information, and other sensitive information. Exemplarily, an encryption key can be used to encrypt the device data using AES (Advanced Encryption Standard). AES encryption can be a symmetric encryption algorithm. The encryption mode of AES encryption can be any one of CBC (Cipher BlockChaining), CFB (Cipher FeedBack), OFB (OutputFeedBack), CTR (Counter), and ECB (Electronic Codebook Book), and the CBC mode is used as an example for illustration. CBC mode means that the plaintext (device data) is first divided into several small segments, and then each small segment is XORed with the initial block or the ciphertext segment of the previous segment, and then encrypted with the encryption key. Specifically, the plaintext represented by the device data can be divided into several groups of the same length. At this time, the initial vector IV is first XORed with the first group of data and then encrypted with the encryption key to generate C1. C1 is used as the initial vector and XORed with the second group of data and then encrypted with the encryption key to generate C2. Similarly, when the last group of data is encrypted with the encryption key, the encryption results are spliced into the final result, C = C1C2C3...Cn. When the device data is needed later, the internally integrated PUF software development kit can be called to generate the PUF encryption key, perform AES decryption operation on the device data, and restore it to the original plaintext data. Since modern data is encrypted and protected, and the encryption key is generated by PUF and lost immediately after power failure, hackers cannot obtain the key and cannot easily read critical business data.
[0044] In addition, the manufacturer's public key can be preset in the communication control module code firmware during the production stage. Firmware is a program written into EPROM (erasable programmable read-only memory) or EEPROM (electrically erasable programmable read-only memory). Firmware refers to the device driver stored inside the device. Only through the firmware operating system can the operation of a specific machine be realized according to the standard device driver. The manufacturer's RSA2018 public key can be preset in the communication control module code firmware.
[0045] In the disclosed embodiment, PUF generates a unique and unpredictable random number as a modern encryption key based on the random characteristics of DRAM when it is powered on. Once the power is off, the key is immediately lost and can be regenerated and used when it is powered on next time. The encryption key is used to encrypt and protect the entire communication control module to prevent data from being illegally read. By using the physical unclonable function technology to encrypt and protect the data transmitted between chips, attacks such as sniffing and capture are prevented, thereby improving security.
[0046] Next, in step S220, a data access request to the communication control module is received, and a digital signature authentication is performed on the data access request to obtain an authentication result.
[0047] In the disclosed embodiment, if an external party needs to access data stored in a storage area within a communication control module, it is necessary to send a data access request to the communication control module. The external party may be other modules or other devices outside the communication control module, as long as it is not the communication control module itself. The data access request may be a request for accessing device data within the communication control module, such as a data access request for a device serial number, or a data access request for other data in the communication control module.
[0048] When a data access request to the communication control module is received, the data access request can be authenticated to obtain an authentication result, so as to determine whether the access right is granted based on the authentication result. Exemplarily, the data access request can be verified by the public key of the communication control module. In order to improve security, the RSA2048 public key in the communication control module code firmware can be called for data verification. Only after the data verification is passed can the data access request be used to access the communication control module accordingly. Among them, the digital signature needs to be obtained through the corresponding data signature of the manufacturer's server, and the control right lies with the manufacturer.
[0049] The digital signature is generated by the manufacturer and is uniquely generated according to the device serial number through the manufacturer's corresponding backend server, that is, the digital signature of each terminal device is different, and there is a one-to-one correspondence between each terminal device and the digital signature. When a data access request is received, the device serial number IMEI (International Mobile Equipment Identity) of the external party that issued the data access request can be obtained. IMEI can be used to indicate the model of the mobile phone, the factory where the device was finally assembled, the factory serial number of the device, and the backup number of the device. The device serial number of each terminal device is unique.
[0050] The key required to generate the digital signature is stored in the manufacturer's internal server, and only the manufacturer can generate the corresponding digital signature. For example, a unique signature can be made through the device serial number IMEI number of the background server, that is, the digital signature can be uniquely generated through the device serial number of the background server, and one terminal device generates a digital signature, and the digital signatures generated by different terminal devices are completely different. By generating a unique digital signature for a terminal device, security and exclusivity can be improved.
[0051] In some embodiments, when performing digital signature authentication, it is first necessary to obtain a digital signature. The digital signature can be generated by an internal server within the manufacturer. Exemplarily, the device serial number corresponding to the data access request can be sent to the internal server, and the internal server generates a corresponding digital signature, and the digital signature is sent to the communication control module to determine the identity authentication result. Specifically, if the internal server generates a corresponding digital signature through the device serial number of the background server, the digital signature can be sent to the communication control module to facilitate digital signature identity authentication.
[0052] Since the digital signature is unique, during identity authentication, only the modern chip with the same mobile phone serial number IMEI will pass the signature verification, thus ensuring the security and controllability of data access requests.
[0053] In some embodiments, if the digital signature matches the device serial number of the communication control module, the identity authentication result can be considered as authentication success; when the internal server does not generate a digital signature, or the generated digital signature does not match the device serial number of the communication control module, the identity authentication result can be considered as authentication failure. For example, if the digital signature is generated by the internal server of another device, the digital signature does not match the device serial number of the communication control module, and the identity authentication result can be considered as authentication failure. Figure 4 As shown in , when a data access request is received, a digital signature is generated by the manufacturer's internal server and returned to the communication control module. The digital signature is further authenticated based on the communication control module to obtain an identity authentication result to determine whether the authentication is passed or not.
[0054] In the disclosed embodiment, when accessing the modern side, the modern access to the device identification code IMEI is authenticated through the RSA2048 digital signature scheme, and the digital signature key is stored in the manufacturer's internal server. Only the digital signature of the manufacturer's corresponding IMEI can be verified, so that external parties can access the communication control module, and only the same device serial number can be verified, thereby improving the security of the entire modern.
[0055] Continue to refer Figure 2 As shown in, in step S230, under the condition that the identity authentication result is authentication passed, the device data corresponding to the data access request is processed by using the encryption key, and the target operation corresponding to the data access request is performed on the processed device data.
[0056] In the disclosed embodiment, under the condition that the identity authentication result is authentication passed, the external party may be allowed to perform an access operation corresponding to the data access request on the communication control module. Exemplarily, the type of the data access request may be determined first, for example, whether the data access request is a data read request or a data write request. The data read request is used to read data from the communication control module, and the data write request is used to write data to the communication control module.
[0057] After determining the type of the data access request, the device data corresponding to the data access request can be processed according to the type of the data access request. Exemplarily, the device data corresponding to the data access request can be processed based on the encryption key. The device data corresponding to the data access request can be part of the device data in the communication control module, or other device data outside the communication control module and associated with the device data in the communication control module. For example, when the data access request is a data read request, the device data corresponding to the data access request can be part of the device data in the communication control module. When the data access request is a data write request, the device data corresponding to the data access request can be other device data outside the communication control module and associated with the device data. The other device data can be of the same type as the device data, but with different specific values, or can be of different types. Based on this, the device data in the communication control module can be modified based on the device data to modify the configuration information of the communication control module.
[0058] After determining the device data corresponding to the data access request, the corresponding encryption operation or decryption operation can be performed on the device data based on the determined encryption key. Exemplarily, when the data access request is a data read request, since the device data in the communication control module needs to be read, and the device data therein is already encrypted and stored, the required device data can be decrypted to obtain the original plaintext data and returned to the caller for use. Among them, which device data is required can be determined specifically based on the parameter identifier contained in the data access request. Specifically, when decrypting, the PUF encryption key can be used to perform AES decryption on the device data stored in the flash memory, and the key length of the AES decryption can be 32 bytes (ie 256 bits), and the AES decryption mode can be CBC mode. In addition, the key length used for decryption can also be 16 bytes or 24 bytes, which is not specifically limited here.
[0059] refer to Figure 5 As shown in , firstly, the device data can be determined from the communication control module, the device data is decrypted by the PUF encryption key to obtain the plaintext data as the processed device data, and the processed device data is read to be sent to an external party.
[0060] When the data access request is a data write request, since what needs to be written is other device data outside the communication control module, these other device data are external data and are not encrypted and stored, so when the device data is written to the communication control module, the device data can be encrypted to obtain ciphertext data, and in response to the data write request, the ciphertext data is written to store the ciphertext data in the flash memory in the communication control module. By writing the device data into the communication control module, the device data in the communication control module can be modified and updated, and the device data is encrypted by the encryption key to be stored in the flash memory in the communication control module, which can improve security. Specifically, when performing the encryption operation, the PUF encryption key can be used to perform AES encryption on other device data outside the flash memory, and the key length of the AES encryption can be 32 bytes (i.e. 256 bits), and the AES encryption mode can be CBC mode. In addition, the key length used for encryption can also be 16 bytes or 24 bytes, which is not specifically limited here, as long as encryption can be achieved.
[0061] refer to Figure 6 As shown in , the device data can be first determined, and the device data is encrypted by the PUF encryption key to obtain the ciphertext data as the device data to be processed, and the ciphertext data is stored in the flash memory in the communication control module to modify or update the original device data in the flash memory.
[0062] In the disclosed embodiment, after the device data is encrypted or decrypted by the encryption key to obtain the processed device data, the target operation corresponding to the data access request can be performed on the processed device data in response to the data access request. The target operation can be a data read operation or a data write operation.
[0063] Figure 7 A flowchart of data processing is schematically shown in FIG. Figure 7 As shown in , it mainly includes the following steps:
[0064] In step S702, a software development kit of a PUF solution is embedded in the communication control module.
[0065] In step S704, a software development kit is called to generate a PUF encryption key.
[0066] In step S706, a data access request sent by an external party is received, and a digital signature identity authentication is performed on the data access request.
[0067] In step S708, after the authentication is passed, the device data is encrypted using the encryption key.
[0068] Specifically, the device data may be encrypted and stored in the communication control module, for example, the device data may be stored in a flash memory of the communication control module. The device data may include a device serial number, network operator configuration information, and other sensitive information.
[0069] In step S710, the device data is decrypted using the encryption key.
[0070] Specifically, the device data is obtained from the communication control module, and the encryption key is used to decrypt the device data in the communication control module to obtain the service data.
[0071] In step S712, the processed device data is returned to the external party that sent the data access request.
[0072] The technical solution in the disclosed embodiment is that PUF can generate a unique unpredictable random number with physical characteristics for the terminal device as an encryption key, protect sensitive business data and store it securely in Flash, prevent hackers from reverse cracking and restoring the plaintext, and the encryption key generated by PUF disappears after power failure, which improves the security of the communication control module and the terminal device. The communication control module adds an external RSA2048 signature verification to prevent illegal external parties from accessing. Since the private key is stored on the manufacturer's server and the signature is controlled by the manufacturer, the modern access control right is in the hands of the manufacturer, and the signature cannot be forged from the outside, which ensures the overall security of the system. Through PUF technology + RSA2048 digital signature technology, security authentication is performed from both internal and external dimensions, building a safe and reliable environment for the device data stored in the communication control module, protecting key information from attacks and leaks, and improving the security of the product system.
[0073] The present disclosure provides an access control device, referring to Figure 8 As shown in , the access control device 800 may include: a key generation module 801, an identity authentication module 802 and a data access module 803, wherein:
[0074] The key generation module 801 is used to generate an encryption key corresponding to the terminal device based on the attribute characteristics of the terminal device, and encrypt the device data of the communication control module in the terminal device by using the encryption key;
[0075] The identity authentication module 802 is used to receive a data access request to the communication control module and perform a digital signature identity authentication on the data access request to obtain an identity authentication result;
[0076] The data access module 803 is used to process the device data corresponding to the data access request by using the encryption key under the condition that the identity authentication result is authentication passed, and execute the target operation corresponding to the data access request on the processed device data.
[0077] In an exemplary embodiment of the present disclosure, the key generation module includes: a random number generation module, which is used to generate a random number based on the power-on randomness of the terminal device according to a physical unclonable function when the communication control module is powered on, and determine the random number as the encryption key.
[0078] In an exemplary embodiment of the present disclosure, the encryption key is lost when the communication control module loses power.
[0079] In an exemplary embodiment of the present disclosure, the identity authentication module includes: a digital signature generation module, which is used to obtain the device serial number corresponding to the terminal device that issues a data access request, and call the public key in the firmware of the communication control module to generate a digital signature for the device serial number based on the internal server corresponding to the communication control module; a digital signature authentication module, which is used to perform identity authentication based on the digital signature to determine the identity authentication result.
[0080] In an exemplary embodiment of the present disclosure, the digital signature authentication module includes: a first authentication result determination module, used to determine that the identity authentication result is authentication passed when the digital signature matches the device serial number of the communication control module; a second authentication result determination module, used to determine that the identity authentication result is authentication failed when the digital signature does not exist or the digital signature does not match the device serial number of the communication control module.
[0081] In an exemplary embodiment of the present disclosure, the data access module includes: a device data determination module, used to determine the device data corresponding to the data access request according to the type of the data access request; an encryption and decryption processing module, used to perform encryption or decryption operations on the device data based on the encryption key to obtain processed device data.
[0082] In an exemplary embodiment of the present disclosure, the encryption and decryption processing module includes: an encryption operation module, which is used to perform an encryption operation on the device data according to the encryption key under the condition that the data access request is a data write request to determine the processed device data; a decryption operation module, which is used to perform a decryption operation on the device data in the communication control module according to the encryption key under the condition that the data access request is a data read request to obtain the processed device data.
[0083] It should be noted that the specific details of each part of the above-mentioned access control device have been described in detail in the implementation method of the access control method part. The undisclosed details can be found in the implementation method content of the method part, and will not be repeated here.
[0084] The exemplary embodiment of the present disclosure also provides an electronic device. The electronic device may be the above-mentioned terminal. Generally, the electronic device may include a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned access control method by executing the executable instructions.
[0085] Below Fig. 9 The mobile terminal 900 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig. 9 The construction in can also be applied to fixed type equipment.
[0086] like Fig. 9 As shown, the mobile terminal 900 may specifically include: a processor 901, a memory 902, a bus 903, a mobile communication module 904, an antenna 1, a wireless communication module 905, an antenna 2, a display screen 906, a camera module 907, an audio module 908, a power module 909 and a sensor module 910.
[0087] The processor 901 may include one or more processing units, for example, the processor 901 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The method in this exemplary embodiment may be executed by an AP, a GPU or a DSP. When the method involves processing related to a neural network, it may be executed by an NPU, for example, the NPU may load neural network parameters and execute algorithm instructions related to the neural network.
[0088] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of the image or video to restore the image or video data. The mobile terminal 900 can support one or more encoders and decoders, for example: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).
[0089] The processor 901 may be connected to the memory 902 or other components via a bus 903 .
[0090] The memory 902 may be used to store computer executable program codes, which may include instructions. The processor 901 executes various functional applications and data processing of the mobile terminal 900 by running the instructions stored in the memory 902. The memory 902 may also store application data, such as images, videos, and other files.
[0091] The communication function of the mobile terminal 900 can be implemented by the mobile communication module 904, antenna 1, wireless communication module 905, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 904 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 900. The wireless communication module 905 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 900.
[0092] The display screen 906 is used to implement display functions, such as displaying user interfaces, images, videos, etc. The camera module 907 is used to implement shooting functions, such as shooting images, videos, etc., and the camera module may include a color temperature sensor array. The audio module 908 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 909 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 910 may include one or more sensors for implementing corresponding sensing detection functions. For example, the sensor module 910 may include an inertial sensor, which is used to detect the motion posture of the mobile terminal 900 and output inertial sensing data.
[0093] It should be noted that a computer-readable storage medium is also provided in an embodiment of the present disclosure. The computer-readable storage medium may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.
[0094] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, 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 thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0095] The computer-readable storage medium can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments.
[0096] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0097] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0098] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0099] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.
[0100] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An access control method, characterized in that: include: Generate an encryption key corresponding to the terminal device based on the attribute characteristics of the terminal device, and encrypt the device data of the communication control module in the terminal device by using the encryption key; Receiving a data access request to the communication control module, and performing digital signature identity authentication on the data access request to obtain an identity authentication result; Under the condition that the identity authentication result is authentication passed, the device data corresponding to the data access request is processed by using the encryption key, and the target operation corresponding to the data access request is performed on the processed device data.
2. The access control method according to claim 1, characterized in that: The generating an encryption key corresponding to the terminal device based on the attribute characteristics of the terminal device includes: Under the condition that the communication control module is powered on, a random number is generated according to a physical unclonable function using the power-on randomness of the terminal device, and the random number is determined as the encryption key.
3. The access control method according to claim 1 or 2, characterized in that: The encryption key is lost when the communication control module loses power.
4. The access control method according to claim 1, characterized in that: The performing digital signature identity authentication on the data access request to obtain an identity authentication result includes: Obtaining a device serial number corresponding to the terminal device that issues a data access request, and calling a public key in the firmware of the communication control module to generate a digital signature for the device serial number based on an internal server corresponding to the communication control module; Identity authentication is performed based on the digital signature to determine the identity authentication result.
5. The access control method according to claim 1, characterized in that: The performing identity authentication based on the digital signature to determine the identity authentication result includes: In the case where the digital signature matches the device serial number of the communication control module, determining that the identity authentication result is authentication passed; When the digital signature does not exist or the digital signature does not match the device serial number of the communication control module, the identity authentication result is determined to be an authentication failure.
6. The access control method according to claim 1, characterized in that: The processing of the device data corresponding to the data access request by using the encryption key includes: Determining, according to the type of the data access request, the device data corresponding to the data access request; Based on the encryption key, an encryption operation or a decryption operation is performed on the device data to obtain processed device data.
7. The access control method according to claim 6, characterized in that: The performing an encryption operation or a decryption operation on the device data based on the encryption key to obtain processed device data includes: Under the condition that the data access request is a data write request, performing an encryption operation on the device data according to the encryption key to determine the processed device data; Under the condition that the data access request is a data read request, the device data in the communication control module is decrypted according to the encryption key to obtain processed device data.
8. An access control device, characterized in that: include: A key generation module, used to generate an encryption key corresponding to the terminal device based on the attribute characteristics of the terminal device, and encrypt the device data of the communication control module in the terminal device by using the encryption key; An identity authentication module, used to receive a data access request to the communication control module, and perform digital signature identity authentication on the data access request to obtain an identity authentication result; The data access module is used to process the device data corresponding to the data access request by using the encryption key under the condition that the identity authentication result is authentication passed, and execute the target operation corresponding to the data access request on the processed device data.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the access control method according to any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the access control method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Data processing method and device and related equipment
CN119885296A
