CN116305221B - Encryption method and related device of image processing chip system - Google Patents

Encryption method and related device of image processing chip system Download PDF

Info

Publication number
CN116305221B
CN116305221B CN202310562403.4A CN202310562403A CN116305221B CN 116305221 B CN116305221 B CN 116305221B CN 202310562403 A CN202310562403 A CN 202310562403A CN 116305221 B CN116305221 B CN 116305221B
Authority
CN
China
Prior art keywords
image processing
key
touch display
processing chip
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310562403.4A
Other languages
Chinese (zh)
Other versions
CN116305221A (en
Inventor
吕振华
陈阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xihua Technology Co Ltd
Original Assignee
Shenzhen Xihua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xihua Technology Co Ltd filed Critical Shenzhen Xihua Technology Co Ltd
Priority to CN202310562403.4A priority Critical patent/CN116305221B/en
Publication of CN116305221A publication Critical patent/CN116305221A/en
Application granted granted Critical
Publication of CN116305221B publication Critical patent/CN116305221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application provides an encryption method of an image processing chip system and a related device, which are applied to a processor in the image processing chip system, wherein the method comprises the following steps: reading a first device identifier and a first constant in an image processing chip, and processing the first device identifier and the first constant by using a preset algorithm to obtain a first key; controlling the burner to write a chip running program and a first key in an image processing chip system into a shared memory; when a touch display running program is started to initialize, reading a second equipment identifier and a first key of the current equipment; processing the second equipment identifier and the second constant by using a preset algorithm according to the second equipment identifier and the second constant to obtain a second key; comparing the first key with the second key, and determining the starting state of the touch display running program according to the comparison result. Therefore, the burning procedure is simplified, the burning efficiency is improved, and the safety of the core data in the chip is improved.

Description

Encryption method and related device of image processing chip system
Technical Field
The application relates to the technical field of general data processing in the Internet industry, in particular to an encryption method and a related device of an image processing chip system.
Background
At present, in the electronic screen maintenance market, a common system architecture adopts a traditional plug-in memory mode, and because the memory is connected outside a chip through an interface, the computer has high production cost, and in the process of burning the chip, multiple times of memory burning is required, and meanwhile, the plug-in memory is easy to copy, so that the data security cannot be ensured.
Disclosure of Invention
The application provides an encryption method and a related device of an image processing chip system, which are used for reducing the production cost, simplifying the burning step and effectively improving the safety of kernel data in a chip.
In a first aspect, an embodiment of the present application provides an encryption method of an image processing chip system, which is applied to a processor in the image processing chip system, where the image processing chip system includes: the processor is in communication connection with the image processing chip through the burner; the encryption method comprises the following steps:
reading a first device identifier and a first constant in the image processing chip, and processing the first device identifier and the first constant by using a preset algorithm to obtain a first key, wherein the first device identifier refers to the first device identifier of the shared memory;
Controlling the burner to write a chip running program and the first key in an image processing chip system of the shared memory into the shared memory, wherein the chip running program comprises: touch control displays an operation program;
when the touch display operation program is started to initialize, a second device identifier of the current device and the first key are read, wherein the second device identifier refers to a device identifier of a memory for storing the touch display operation program; the method comprises the steps of,
processing the second equipment identifier and the second constant by using the preset algorithm according to the second equipment identifier and the second constant to obtain a second key;
and comparing the first key with the second key, and determining the starting state of the touch display running program according to a comparison result.
In a second aspect, an embodiment of the present application provides an image processing chip system, including: an image processing chip, a touch display chip, a substrate and a display panel, wherein,
the image processing chip is used for receiving the image data signals transmitted by the substrate, transmitting the image data signals to the touch display chip after format conversion, and a shared memory is arranged in the image processing chip;
The touch display chip is used for receiving the image data signals subjected to format conversion and outputting target signals to the display panel;
the substrate is in communication connection with the image processing chip, the image processing chip is in communication connection with the touch display chip, and the touch display chip is in communication connection with the display panel.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps described in the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the embodiment of the present application, first, a first device identifier and a first constant are read by a processor, a first key is generated according to a preset algorithm, then a chip running program and the first key in a system are written into a memory of an image processing chip through a burner, when a touch display running program is started, a second device identifier and the first key are read, a second key is generated according to the second constant and the second device identifier, the first key is compared with the second key, and a starting state of the touch display running program is determined according to a comparison result. Therefore, whether the hardware environment of the current running touch display program is the original hardware environment or not can be obtained by comparing the first key with the second key, and the running program is exited if the hardware environment is not the original hardware environment, so that the program is prevented from being plagiarized and cracked, the safety of core data in the chip is improved, and meanwhile, the plug-in memory is integrated into the chip, the burning efficiency is improved, and the cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a shared memory image processing chip system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an encryption method of an image processing chip system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a start-up procedure of an operation program according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a frame of an image processing chip system according to an embodiment of the present application;
FIG. 5a is an encryption device of an image processing chip system according to an embodiment of the present application;
FIG. 5b is an illustration of an encryption device of another image processing chip system provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The term "at least one" in the present application means one or more, and a plurality means two or more. In the present application and/or describing the association relationship of the association object, the representation may have three relationships, for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one (item) below" or the like, refers to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein each of a, b, c may itself be an element, or may be a collection comprising one or more elements.
It should be noted that, the equality in the embodiment of the present application may be used with a greater than or less than the technical scheme adopted when the equality is greater than or equal to the technical scheme adopted when the equality is less than the technical scheme, and it should be noted that the equality is not used when the equality is greater than the technical scheme adopted when the equality is greater than or equal to the technical scheme adopted when the equality is greater than the technical scheme; when the value is equal to or smaller than that used together, the value is not larger than that used together. "of", corresponding "and" corresponding "in the embodiments of the present application may be sometimes used in combination, and it should be noted that the meaning to be expressed is consistent when the distinction is not emphasized.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following description will first be made of the relevant terms that the present application relates to.
TDDI: i.e. touch and display driver integration (Touch and Display Driver Integration). At present, the touch control and display functions of the smart phone are independently controlled by two chips, and the TDDI is characterized in that the touch control chip and the display chip are integrated into a single chip.
Scaler: the video decoding device is used as an image processing chip for image decompression, video format, resolution and refresh rate conversion, image quality enhancement and the like, is widely applied to decoding bridging between different systems and format display equipment, and comprises a smart phone, a game machine, a projector, a display glass test board and the like in the application field.
MD5: open source asymmetric encryption algorithm.
The Flash chip is one of the memory chips, and can modify the data inside through a specific program, and at present, the Flash chip mainly comprises two Nor Flash chips and Nand Flash chips, belongs to a non-volatile Flash memory technology, and has the characteristics of large capacity and fast read-write acquisitions.
Flash Unique ID: in Nor Flash, there is typically a Unique ID parameter, which is a Unique identification of Flash.
At present, the TDDI chip adopts a plug-in flash memory chip mode, and the display processing chip Scaler chip also adopts a plug-in flash memory chip mode, so that the cost of the plug-in flash chip, the Bill of materials (Bill of materials) is too high, and the stored data is easy to be plagiated and cracked due to the adoption of the plug-in flash memory chip mode by the TDDI chip.
In view of the foregoing, the present application provides an encryption method and related device for an image processing chip system, which are described in detail below.
Referring to fig. 1, fig. 1 is a block diagram of an image processing chip system with shared memory according to an embodiment of the present application. As shown in fig. 1, the image processing chip system 10 with shared memory includes a processor 110, a burner 120, an image processing chip 130, and a touch display chip 140.
The processor 110 is in communication connection with the burner 120, the image processing chip 130 and the touch display chip 140 through a communication interface, wherein the processor 110 is used for controlling the burner 120 to execute a burning process and starting a starting program of the touch display chip 140; specifically, the processor 110 may be connected to the burner 120 through a USB interface.
The burner 120 is connected to the image processing chip 130 through an SDIO (Secure Digital Input and Output, i.e., secure digital input output interface) protocol, and the burner 120 is configured to respond to a control instruction of the processor 110 to perform a burning procedure to the image processing chip 130.
The image processing chip 130 includes a first storage area (Flash 1) 131, a second storage area (Flash 2) 132, and a key storage area 133, and in a specific embodiment, the first storage area 131 may be communicatively connected to the touch display chip 140 through an SPI interface, so as to store data generated in the touch display chip 140.
An encryption method of an image processing chip system provided by an embodiment of the present application is described below.
Referring to fig. 2, fig. 2 is a flowchart of an encryption method of an image processing chip system according to an embodiment of the present application, where the method is applied to a processor 110 in the image processing chip system 10 of the shared memory shown in fig. 1, and the method includes:
step 201, a first device identifier and a first constant in the image processing chip are read, and the first device identifier and the first constant are processed by using a preset algorithm to obtain a first key, where the first device identifier refers to a first device identifier of the shared memory.
The image processing chip 130 may be a Scaler chip, which is used as an image processing chip for image decompression, video format, resolution and refresh rate conversion, image quality enhancement, etc., in the case that a user replaces a non-original mobile phone screen, the touch display chip 140 in the replaced non-original mobile phone screen has a difference with the format of an image signal supported by an original mobile phone substrate of the mobile phone, specifically, the format, resolution, frame rate, etc. of an image signal supported by the touch display chip 140 is different from the format, resolution, frame rate, etc. supported by a mobile phone substrate, so that the touch display chip 140 and a mobile phone substrate cannot be adapted, further, the replaced mobile phone screen cannot normally display an image, for example, when the original mobile phone substrate supports a MIPI (Mobile Industry Processor Interface) signal with a high resolution (for example: 1440 x 3200) and a high frame rate (for example: 90 HZ) and a mobile industry processor interface at this time, but the non-original mobile phone screen can only support a low resolution (720 x 1560) and a low frame rate (60 HZ) MIPI signal, the mobile phone substrate can not support a high resolution MIPI signal, and thus the MIPI signal can not be converted into a pi signal with the mobile phone substrate to a specific format when the mobile phone substrate is not be converted into a pi signal to a specific format, and the mobile phone substrate can not be used for processing the image signal when the mobile phone substrate is attached to the mobile phone substrate to a display 130, and the mobile phone substrate can not be converted into a high format and the image signal can be displayed, one implementation of the touch display chip 140 may employ a touch and display driver integrated TDDI chip.
The built-in shared memory may be a Flash chip, which is inside the image processing chip 130, and is used for storing codes required by the running program of the image processing chip 130 and codes required by the running program of the touch display chip 140.
The device identifier refers to a Flash UID of a first storage area (Flash 1) in the image processing chip 130, the Flash UID is a unique identifier for indicating the Flash storage area, and the Flash UID of each memory when produced and shipped is different; the first constant is a program password set by a user according to a start program when the chip leaves the factory when the start program is initially set for the touch display chip 140.
The preset algorithm may be an open source asymmetric encryption algorithm MD5, and a string of characters is obtained as a first key according to the input Flash UID and a first constant.
Step 202, controlling the burner to write a chip running program and the first key in the image processing chip system of the shared memory into the shared memory, where the chip running program includes: and displaying the running program in a touch mode.
The storage area in the image processing chip includes a first storage area 131, a second storage area 132, and a key storage area 133, and when the burner is controlled to perform program burning, the image processing running program is written into the second storage area to be stored, the touch display running program is written into the first storage area to be stored, and meanwhile, the first key is written into the key storage area 133.
Step 203, when the touch display operation program is started to initialize, reading a second device identifier of the current device and the first key, where the second device identifier refers to a device identifier of a memory storing the touch display operation program.
When the system is initialized, a touch display operation program is started to read a Flash UID of the current equipment, and a first key in a first storage area is obtained; it should be understood that the current device may be the same device in the above-mentioned burning process, or may be another device, and because of the uniqueness of the Flash UID, it may be determined whether the current device is the same device by the Flash UID.
And 204, processing the second equipment identifier and the second constant by using the preset algorithm according to the second equipment identifier and the second constant to obtain a second key.
The second constant is a program starting password arranged in the touch display program; the preset algorithm is the same as the above-mentioned preset algorithm, for example, MD5 algorithm.
And step 205, comparing the first key with the second key, and determining the starting state of the touch display running program according to the comparison result.
Wherein, the comparison result comprises: the first key is equal to the second key, and the system architecture of the current running touch display running program is consistent with the system architecture when the running program is burnt, so that the starting environment of the running program is safe; the comparison result also comprises: the first key is unequal to the second key, which indicates that the system architecture of the currently running touch display program is replaced, and the possible reason is that the program is started in other hardware systems after being plagiarized, so that the starting environment is at risk, the running program is exited, and the program is locked.
It can be seen that in the embodiment of the present application, first, a first device identifier and a first constant are read by a processor, a first key is generated according to a preset algorithm, then a chip running program and the first key in a system are written into a memory of an image processing chip through a burner, when a touch display running program is started, a second device identifier and the first key are read, a second key is generated according to the second constant and the second device identifier, the first key is compared with the second key, and a starting state of the touch display running program is determined according to a comparison result. Therefore, whether the hardware environment of the current running touch display program is the original hardware environment or not can be obtained by comparing the first key with the second key, and the running program is exited if the hardware environment is not the original hardware environment, so that the program is prevented from being plagiarized and cracked, the safety of core data in the chip is improved, and meanwhile, the plug-in memory is integrated into the chip, the burning efficiency is improved, and the cost is reduced.
In one possible example, the shared memory in the image processing chip includes a first storage area for storing touch display chip data and a second storage area for storing the image processing chip data; the shared memory also comprises a key storage area, wherein the key storage area is used for storing the first key.
In a specific embodiment, the first storage area and the second storage area operate in a time-sharing partition mode, are relatively independent, and have no influence when data storage is performed or an operation program is started.
The first storage area and the touch display chip can be connected through a synchronous Serial Peripheral Interface (SPI) to store data, programs and the like generated by the touch display chip; a second storage area may be provided, and the second storage area may store data, programs, and the like generated by the image processing chip; the method also comprises a placement space for setting the first secret key.
In this example, the memory originally hung is set inside the image processing chip, and the memories are set in different areas, so that the two memories work independently, the probability of copying or copying the data in the memories is reduced, the safety of data storage is ensured, and meanwhile, the burning activities of the image processing chip 130 and the touch display chip 140 can be performed simultaneously by adopting the mode of the built-in memories, thereby improving the burning efficiency and reducing the production cost.
In one possible example, the writing the chip running program in the image processing chip system of the shared memory and the first key into the shared memory includes: writing the touch display operation program into the first storage area through the burner for storage; and writing the first key into the key storage area through the burner.
In this example, the memory space inside the image processing chip is partitioned into the first memory area and the second memory area, and the program and the data are written into the corresponding memory areas during the burning, so that the data storage is prevented from being mixed, the accuracy during the reading or calling of the data is improved, and the running efficiency of the program is improved.
In one possible example, the touch display running program start-up state includes: a start state and a lock state; the determining the starting state of the touch display running program according to the comparison result comprises the following steps:
judging whether the comparison result represents that the first key is equal to the second key;
if yes, handshake with the touch display operation program is successful, and the touch display operation program is started;
If not, the handshake with the touch display operation program fails, and the touch display operation program enters the locking state.
Referring to fig. 3, fig. 3 is a schematic diagram of a start-up flow of an operation program according to an embodiment of the present application, as shown in fig. 3, in a process of starting up a touch display operation program, the method includes:
step 301, power-on reset is started, and a system is initialized;
step 302, reading a Flash UID and simultaneously reading a first key; the Flash UID refers to a device identifier of a memory (Flash) for storing the running program;
step 303, calculating to obtain a second key according to the program built-in password and the Flash UID of the current device; the method comprises the steps that a program built-in password is an operation program starting password preset when a chip leaves a factory, and a Flash UID of current equipment is an equipment identifier of a memory (Flash) for starting the operation program;
step 304, judging whether the first key is equal to the second key, if so, jumping to step 305; if not, jumping to step 306;
step 305, handshaking with the touch display operation program is successful, and the touch display operation program is started;
step 306, handshake with the touch display running program fails, and the touch display running program enters a lock state.
The first key is a key character obtained by a Flash UID of a first storage area in the image processing chip and a preset running program starting password when the chip is manufactured and delivered through an encryption algorithm; the second key is a key character obtained by a Flash UID of a memory of a current running program and a program starting password arranged in the current running program through an encryption algorithm, wherein the first key and the second key are obtained through the same encryption algorithm, if the current running environment is not in an original hardware system architecture, the starting password arranged in the running program cannot be obtained through quick cracking, meanwhile, the memory device identifier of the current stored program is not equal to the original memory device identifier, and the second key is not equal to the first key.
In this example, the comparison result of the first key and the second key is judged to realize the judgment of whether the program running environment is in the original hardware, if the first key is equal to the second key, the running environment when the program is currently being burned is indicated, and if the first key is not equal to the second key, the running environment which is not currently under the original hardware system architecture is indicated, so that the program running process is exited, the running program is prevented from being plagiarized by others, and the normal starting of the running program is not possible after the plagiarism, and the security of the core data in the chip is improved.
In one possible example, the preset algorithm is at least one of an asymmetric encryption algorithm, a hash algorithm, or a custom encryption algorithm; the first constant is a password set by a user and used for starting the touch display operation program, and the second constant is a built-in password of the touch display operation program.
In a specific embodiment, the first constant is a program password set by the user according to the start program when the touch display chip 140 is initially set by the start program when the chip leaves the factory; the second constant is a program start password which is arranged in the touch display program currently in an operating state.
When the chip developer leaves the factory, the running program in the chip can be provided with a running program password by the system, and the user password is informed of the running program password, and when the running program of the chip is burnt, the user inputs the password to complete the burning, that is, the built-in password does not exist in other hardware architectures, and even if the password is broken rapidly through a super computer, the protection of the data in the chip is realized.
Among the hash algorithms commonly used for encryption are MD5 (MD 5 Message-Digest algorism) and SHA (Secure Hash Algorithm ); in the encryption hash algorithm, the defect that the original data is difficult to reversely deduce according to the hash value exists, and meanwhile, the probability of hash collision is small.
The MD5 is an irreversible encryption algorithm, because the MD5 is a hash function, the hash algorithm is used, part of information of an original text inevitably lacks in the calculation process, the MD5 encryption algorithm is used for processing an input device identification ID and a first constant to obtain a string of first keys with the length of 16 bytes (128 bits), the MD5 encryption algorithm can be used for processing a built-in password of the input program and the device identification ID of the current device in the subsequent process to obtain a second key with the length of 16 bytes (128 bits), the second keys are visually fed back to the running program through comparison among the keys, and the processor judges whether to start the running program.
In this example, the input device identifier and the built-in password are encrypted by using an asymmetric encryption algorithm to obtain a first key for representing the running environment of the original running program and a second key for representing the running environment of the current running program, whether the program is plagiarized or not can be quickly confirmed by comparing the keys, and if the program is in the non-original running environment, the program cannot be started, so that property safety of a scheme developer is protected, and by adopting the asymmetric encryption algorithm, other people cannot quickly crack the keys, and protectiveness for the touch display running program is improved.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the mobile electronic device, in order to achieve the above-described functionality, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Referring to fig. 4, fig. 4 is a schematic frame diagram of an image processing chip system according to an embodiment of the present application, and as shown in fig. 4, the image processing chip system 41 includes: the image processing chip 420, the touch display chip 430, the substrate 410, and the display panel 440, it should be understood that the image processing chip 420 in fig. 4 is the image processing chip 130 in the structural block diagram shown in fig. 1, and similarly, the first storage area 431 in fig. 4 corresponds to the first storage area 131 in the structural block diagram shown in fig. 1, the second storage area 422 in fig. 4 corresponds to the second storage area 132 in the structural block diagram shown in fig. 1, the key storage area 423 in fig. 4 corresponds to the key storage area 133 in the structural block diagram shown in fig. 1, and the touch display chip 430 in fig. 4 corresponds to the touch display chip 140 in the structural block diagram shown in fig. 1, wherein,
the image processing chip 420 is configured to receive an image data signal transmitted by the substrate 410, and transmit the image data signal to the touch display chip 430 after format conversion, where a shared memory 421 is disposed in the image processing chip 420;
the touch display chip 430 is configured to receive the image data signal after format conversion and output a target signal to the display panel 440;
The substrate 410 is in communication connection with the image processing chip 420, the image processing chip 420 is in communication connection with the touch display chip 430, and the touch display chip 430 is in communication connection with the display panel 440.
The image signal may be an MIPI signal, and the display screen 40 may be a TFT (Thin Film Transistor ) panel.
In one possible example, the shared memory 421 includes a first storage area 431, a second storage area 422, and a key storage area 423, where the first storage area 431 is used to store data of the touch display chip 430, the second storage area 422 is used to store the image processing chip 420, and the key storage area 423 is used to store a first key, where the first key is a key obtained by processing a device identifier and a first constant through a preset algorithm.
Specifically, the first storage area 431 is connected to the touch display chip 430 through a serial peripheral interface SPI, the first storage area 431 may receive first data and store the first data, the touch display chip 430 accesses the shared memory 421 through the SPI when running a program, the image processing chip 420 accesses the shared memory 421 from the first storage area 431, and the second data is obtained from the second storage area 422, where in a specific example, the first data may be data required for running the program of the touch display chip 430, and the second data may be data required for running the running program of the image processing chip 420.
In one possible example, the shared memory 421 corresponds to a default mode and an external mode; the touch display chip 430 is configured to obtain the touch display chip 430 data of the first storage area 431 in the external mode of the shared memory 421;
the image processing chip 420 is configured to acquire the image processing chip 420 data of the second storage area 422 in the default mode of the shared memory 421.
The shared memory 421 can only be used by the image processing chip 420 or the touch display chip 430 at the same time, and the image processing chip 420 and the touch display chip 430 cannot access the built-in shared memory 421 at the same time.
Specifically, the shared memory 421 is a default usage mode when started, only the image processing chip 420 can access the shared memory 421, after the image processing chip 420 accesses the shared memory 421 and obtains the second data from the second storage area 422, the image processing chip 420 controls the shared memory 421 to convert the default usage mode into an external usage mode, the image processing chip 420 simultaneously sends storage usage information to the touch display chip 430, and the touch display chip 430 accesses the shared memory 421 through the SPI interface after receiving the storage usage information that can access the shared memory 421, so as to obtain the first data from the first storage area 431.
Referring to fig. 5a, fig. 5a is an encryption device of an image processing chip system according to an embodiment of the present application, which is applied to a processor in the image processing chip system, and the device 50 includes: a first calculating unit 510, configured to read a first device identifier and a first constant in the image processing chip, and process the first device identifier and the first constant with a preset algorithm to obtain a first key, where the first device identifier is a first device identifier of the shared memory; a writing unit 520, configured to control the writer to write a chip running program in the image processing chip system of the shared memory and the first key into the shared memory, where the chip running program includes: touch control displays an operation program; a starting unit 530, configured to read a second device identifier of a current device and the first key when the touch display operation program is started for initialization, where the second device identifier is a device identifier of a memory storing the touch display operation program; and a second calculating unit 540, configured to process, according to the second device identifier and a second constant, the second device identifier and the second constant by using the preset algorithm to obtain a second key; and the comparing unit 550 is configured to compare the first key with the second key, and determine a start state of the touch display operation program according to a comparison result.
In one possible example, the shared memory in the image processing chip includes a first storage area for storing touch display chip data and a second storage area for storing the image processing chip data; the shared memory also comprises a key storage area, wherein the key storage area is used for storing the first key.
In one possible example, the writing the chip running program and the first key in the image processing chip system of the shared memory into the shared memory, the writing unit 520 is specifically configured to: writing the touch display operation program into the first storage area through the burner for storage; and writing the first key into the key storage area through the burner.
In one possible example, the touch display running program start-up state includes: a start state and a lock state; the comparing unit 550 is specifically configured to determine the start state of the touch display operation program according to the comparison result:
judging whether the comparison result represents that the first key is equal to the second key;
If yes, handshake with the touch display operation program is successful, and the touch display operation program is started;
if not, the handshake with the touch display operation program fails, and the touch display operation program enters the locking state.
In one possible example, the preset algorithm is at least one of an asymmetric encryption algorithm, a hash algorithm, or a custom encryption algorithm; the first constant is a password set by a user and used for starting the touch display operation program, and the second constant is a built-in password of the touch display operation program.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, which is not described herein.
In the case of using an integrated unit, refer to fig. 5b, fig. 5b is an encryption device of another image processing chip system according to an embodiment of the present application. In fig. 5b, the encryption device 51 of the image processing chip system includes: a communication module 511 and a processing module 512. The processing module 512 is configured to control and manage actions of the encryption device of the image processing chip system, for example: the steps of the first computing unit 510, the burning unit 520, the starting unit 530, the second computing unit 540, and the comparing unit 550, and/or other processes for performing the techniques described herein. The communication module 511 is used to support interaction between the encryption apparatus of the image processing chip system and other devices. As shown in fig. 5b, the encryption device 51 of the image processing chip system may further comprise a memory module 513, the memory module 513 being for storing program codes and data of the encryption device of the image processing chip system.
The processing module 512 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 511 may be a transceiver, an RF circuit, a communication interface, or the like. The memory module 513 may be a memory.
All relevant contents of each scenario related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein. The encryption device 51 of the image processing chip system may perform the encryption method of the image processing chip system shown in fig. 2.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 600 may be as shown in fig. 6, and the electronic device 600 may include one or more of the following components: a processor 601, a memory 602 coupled to the processor 601, wherein the memory 602 may store one or more computer programs that may be configured to implement the methods as described in the embodiments above when executed by the one or more processors 601. The electronic device 600 may implement the method shown in fig. 2, for example.
The processor 601 may include one or more processing cores, it being understood that the processor 601 corresponds to the processor 110 in the block diagram shown in FIG. 1. The processor 601 utilizes various interfaces and lines to connect various portions of the overall electronic device 600, perform various functions of the electronic device 600 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 602, and invoking data stored in the memory 602. Alternatively, the processor 601 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-Programmable gate array (FPGA), programmable Logic Array (PLA). The processor 601 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 601 and may be implemented solely by a single communication chip.
The Memory 602 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 602 may be used to store instructions, programs, code, a set of codes, or a set of instructions. The memory 602 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the electronic device 600 in use, and the like.
It is to be understood that the electronic device 600 may include more or less structural elements than those described in the above-described block diagrams, and is not limited in this regard.
The embodiments of the present application also provide a computer storage medium having stored thereon a computer program/instruction which, when executed by a processor, performs part or all of the steps of any of the methods described in the method embodiments above.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, magnetic disk, optical disk, volatile memory or nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of random access memory (random access memory, RAM) are available, such as Static RAM (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), synchronous Link DRAM (SLDRAM), direct memory bus RAM (DR RAM), and the like, various mediums that can store program code.
Although the present invention is disclosed above, the present invention is not limited thereto. Variations and modifications, including combinations of the different functions and implementation steps, as well as embodiments of the software and hardware, may be readily apparent to those skilled in the art without departing from the spirit and scope of the invention.

Claims (9)

1. An encryption method of an image processing chip system, characterized in that the encryption method is applied to a processor in the image processing chip system, the image processing chip system comprising: the processor is in communication connection with the image processing chip through the burner; the encryption method comprises the following steps:
reading a first device identifier and a first constant in the image processing chip, and processing the first device identifier and the first constant by using a preset algorithm to obtain a first key, wherein the first device identifier refers to the first device identifier of the shared memory;
controlling the burner to write a chip running program and the first key in an image processing chip system of the shared memory into the shared memory, wherein the chip running program comprises: touch control displays an operation program;
When the touch display operation program is started to initialize, a second device identifier of the current device and the first key are read, wherein the second device identifier refers to a device identifier of a memory for storing the touch display operation program; the method comprises the steps of,
processing the second equipment identifier and the second constant by using the preset algorithm according to the second equipment identifier and the second constant to obtain a second key;
comparing the first key with the second key, and judging whether the comparison result represents that the first key is equal to the second key;
if yes, handshake with the touch display operation program is successful, and the touch display operation program is started;
if not, the handshake with the touch display operation program fails, and the touch display operation program enters a locking state.
2. The method according to claim 1, wherein a first storage area for storing touch display chip data and a second storage area for storing the image processing chip data are included in the shared memory in the image processing chip;
the shared memory also comprises a key storage area, wherein the key storage area is used for storing the first key.
3. The method of claim 2, wherein writing the chip run program and the first key in the image processing chip system of the shared memory into the shared memory comprises:
writing the touch display operation program into the first storage area through the burner for storage;
and writing the first key into the key storage area through the burner.
4. The method of claim 1, wherein the predetermined algorithm is at least one of an asymmetric encryption algorithm, a hash algorithm, or a custom encryption algorithm;
the first constant is a password set by a user and used for starting the touch display operation program, and the second constant is a built-in password of the touch display operation program.
5. An image processing chip system for performing the encryption method according to any one of claims 1 to 4, characterized in that the image processing chip system comprises: an image processing chip, a touch display chip, a substrate and a display panel, wherein,
the image processing chip is used for receiving the image data signals transmitted by the substrate, transmitting the image data signals to the touch display chip after format conversion, and a shared memory is arranged in the image processing chip;
The touch display chip is used for receiving the image data signals subjected to format conversion and outputting target signals to the display panel;
the substrate is in communication connection with the image processing chip, the image processing chip is in communication connection with the touch display chip, and the touch display chip is in communication connection with the display panel.
6. The image processing chip system of claim 5, wherein the shared memory includes a first memory area, a second memory area, and a key memory area, wherein,
the first storage area is used for storing the touch display chip data, the second storage area is used for storing the image processing chip data, the key storage area is used for storing a first key, and the first key is obtained by processing the equipment identifier and the first constant through a preset algorithm.
7. The image processing chip system of claim 6, wherein the shared memory corresponds to a default mode and an external mode;
the touch display chip is used for acquiring the touch display chip data of the first storage area in the external mode of the shared memory;
The image processing chip is used for acquiring the image processing chip data of the second storage area in the default mode of the shared memory.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the instructions of the steps in the method according to any one of claims 1-4.
CN202310562403.4A 2023-05-18 2023-05-18 Encryption method and related device of image processing chip system Active CN116305221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310562403.4A CN116305221B (en) 2023-05-18 2023-05-18 Encryption method and related device of image processing chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310562403.4A CN116305221B (en) 2023-05-18 2023-05-18 Encryption method and related device of image processing chip system

Publications (2)

Publication Number Publication Date
CN116305221A CN116305221A (en) 2023-06-23
CN116305221B true CN116305221B (en) 2023-08-29

Family

ID=86815273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310562403.4A Active CN116305221B (en) 2023-05-18 2023-05-18 Encryption method and related device of image processing chip system

Country Status (1)

Country Link
CN (1) CN116305221B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075924B (en) * 2023-08-15 2024-03-19 杭州凡诺电子有限公司 Chip ID processing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425895A (en) * 2007-10-29 2009-05-06 展讯通信(上海)有限公司 Cipher generating device, ciphering and deciphering method for electronic equipment software
CN109429222A (en) * 2017-08-22 2019-03-05 马鞍山明阳通信科技有限公司 A kind of pair of Wireless Communication Equipment upgrade procedure and the method for communication data encryption
CN113518061A (en) * 2020-10-16 2021-10-19 腾讯科技(深圳)有限公司 Data transmission method, device, apparatus, system and medium in face recognition
CN113676326A (en) * 2020-05-13 2021-11-19 深圳曦华科技有限公司 TDDI chip
CN114008570A (en) * 2020-05-28 2022-02-01 京东方科技集团股份有限公司 Touch display device, touch response method and system thereof, and storage medium
CN114662135A (en) * 2022-05-19 2022-06-24 深圳市航顺芯片技术研发有限公司 Data access method, computer device and readable storage medium
CN115600228A (en) * 2022-10-24 2023-01-13 西安重装伟肯电气有限责任公司(Cn) Method for realizing single chip microcomputer program encryption through secondary burning
CN116011001A (en) * 2021-10-22 2023-04-25 美光科技公司 Authentication reading of memory system data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100559229B1 (en) * 2003-04-01 2006-03-15 비오이 하이디스 테크놀로지 주식회사 The Tuning Device for Control signals Of LCD
MX2019003822A (en) * 2016-10-07 2019-11-28 Rovi Guides Inc Systems and methods for selectively storing specific versions of previously stored media assets based on pre-defined differences in characteristics.

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425895A (en) * 2007-10-29 2009-05-06 展讯通信(上海)有限公司 Cipher generating device, ciphering and deciphering method for electronic equipment software
CN109429222A (en) * 2017-08-22 2019-03-05 马鞍山明阳通信科技有限公司 A kind of pair of Wireless Communication Equipment upgrade procedure and the method for communication data encryption
CN113676326A (en) * 2020-05-13 2021-11-19 深圳曦华科技有限公司 TDDI chip
CN114008570A (en) * 2020-05-28 2022-02-01 京东方科技集团股份有限公司 Touch display device, touch response method and system thereof, and storage medium
CN113518061A (en) * 2020-10-16 2021-10-19 腾讯科技(深圳)有限公司 Data transmission method, device, apparatus, system and medium in face recognition
CN116011001A (en) * 2021-10-22 2023-04-25 美光科技公司 Authentication reading of memory system data
CN114662135A (en) * 2022-05-19 2022-06-24 深圳市航顺芯片技术研发有限公司 Data access method, computer device and readable storage medium
CN115600228A (en) * 2022-10-24 2023-01-13 西安重装伟肯电气有限责任公司(Cn) Method for realizing single chip microcomputer program encryption through secondary burning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
视频压缩技术及高清数字电视解码芯片设计;彭玮玮;《中国优秀硕士学位论文全文数据库信息科技辑》(第08期);I136-347 *

Also Published As

Publication number Publication date
CN116305221A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US10657260B2 (en) Electronic devices and methods supporting unsecured system-on-chip secure boot functionalities
EP3547195A1 (en) System-on-chip and method for switching secure operating systems
CN116305221B (en) Encryption method and related device of image processing chip system
US8176278B2 (en) Information processing apparatus, information processing method and record medium
CN112416279B (en) Server display method, device, equipment and storage medium
CN104766021A (en) Authority control system and method
WO2018000843A1 (en) Mobile payment method, system on chip and terminal
US10929566B2 (en) Information processing device and information processing system
US20150121474A1 (en) Processor security authentication area
US9852119B2 (en) Device for securing contents of a web page
CN108229190B (en) Transparent encryption and decryption control method, device, program, storage medium and electronic equipment
CN107688756B (en) Hard disk control method, equipment and readable storage medium storing program for executing
CN112835628A (en) Server operating system booting method, device, equipment and medium
CN113344764B (en) Secure graphics processor, processor chip, display card, apparatus, method, and storage medium
JP2006268861A (en) Method and control device for controlling access of computer to user data
US11582041B2 (en) Electronic device and control method thereof
US20110289591A1 (en) Software Validity Period Changing Apparatus, Method,and Installation Package
US9064118B1 (en) Indicating whether a system has booted up from an untrusted image
US20210350027A1 (en) Information processing apparatus, information processing method and non-transitory recording medium
CN111176738B (en) Display card display method and system of UEFI mode and related components thereof
CN109460262B (en) Method, system, android device and medium for verifying validity of main system image
CN110688663A (en) Execution command protection method and device, android device and storage medium
US11768968B2 (en) Secure starting of an electronic circuit
JP2018166714A (en) Connection control system
CN111291363B (en) Communication module operation processing method and device, communication module and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant