Method, device, equipment and storage medium for locating key modules in cryptographic chips

By dividing the grid on the cryptographic chip and analyzing the voltage signals under non-encrypted and encrypted decrypted instructions, and calculating the correlation coefficient, the problem of low positioning accuracy in the existing technology is solved, and high accuracy positioning of key modules is achieved .

CN113960455BActive Publication Date: 2024-11-26ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111469344.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-11-26
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

The accuracy of the positioning methods of key modules in existing cryptographic chips is not high, resulting in the positioning modules that are often not the key modules that perform sensitive information operations such as encryption and decryption.

Method used

By dividing the surface of the cryptographic chip into a grid, non-encryption and encryption and decryption instructions are sent, voltage curves are collected, and the position information of the key module is determined based on the correlation coefficient.

Benefits of technology

The positioning accuracy of key modules is improved to ensure that the positioned module can perform sensitive information operations such as encryption and decryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113960455B_ABST
    Figure CN113960455B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for locating a key module in a cryptographic chip. The method includes: dividing the surface of the cryptographic chip into grids to obtain a plurality of grids; sending a first instruction to the cryptographic chip, and collecting a first voltage curve when the cryptographic chip executes the first instruction at each of the grids, wherein the first instruction is not an encryption or decryption instruction; sending an encryption or decryption instruction to the cryptographic chip, and collecting a second voltage curve when the cryptographic chip executes the encryption or decryption instruction at each of the grids; calculating the correlation coefficient corresponding to each of the grids based on the first voltage curve and the second voltage curve corresponding to each of the grids; determining the location information of the key module based on the correlation coefficient. The method solves the technical problem that the accuracy of the existing method for locating the key module in the cryptographic chip is not high, resulting in the located module often not being a key module for performing sensitive information operations such as encryption or decryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a method, device, equipment and storage medium for locating a key module in a cryptographic chip. Background Art

[0002] With the development of information technology, information security has become increasingly important. Encryption is an important method to ensure information security. Cryptographic chips are integrated circuit chips with cryptographic computing functions and are an effective way to implement cryptographic technology. At present, cryptographic chips are widely used in e-commerce, e-government, communications, the military and other fields that require the realization of sensitive information such as images, voices, and data.

[0003] The key module of the cryptographic chip is the module that performs encryption and decryption, generates random numbers and processes key information. Research on this module is conducive to improving the security of the cryptographic chip. Therefore, how to locate the key module in the cryptographic chip is a hot topic in this field. However, the accuracy of the existing positioning method is not high, and the located module is often not the key module that performs sensitive information operations such as encryption and decryption. Summary of the invention

[0004] In view of this, the present application provides a method, device, equipment and storage medium for locating key modules in a cryptographic chip, which solves the technical problem that the accuracy of the existing method for locating key modules in cryptographic chips is low, resulting in the located modules often not being the key modules for performing sensitive information operations such as encryption and decryption.

[0005] The first aspect of the present application provides a method for locating a key module in a cryptographic chip, comprising:

[0006] Divide the surface of the cryptographic chip into grids to obtain a number of grids;

[0007] Sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction, wherein the first instruction is not an encryption or decryption instruction;

[0008] Sending encryption and decryption instructions to the cryptographic chip, and collecting a second voltage curve at each of the grids when the cryptographic chip executes the encryption and decryption instructions;

[0009] Calculating a correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid;

[0010] Based on the correlation coefficient, the location information of the key module is determined.

[0011] Optionally, sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction, specifically includes:

[0012] Step S0, sending a first instruction to the cryptographic chip, so that the cryptographic chip executes the first instruction;

[0013] Step S2, collecting a first voltage curve when the cryptographic chip executes the first instruction at the (i, j)th grid;

[0014] Step S4, repeat the operation of step S2 L times;

[0015] Step S6, traverse all grids to obtain L first voltage curves corresponding to each grid.

[0016] Optionally, an encryption and decryption instruction is sent to the cryptographic chip, and a second voltage curve when the cryptographic chip executes the encryption and decryption instruction is collected at each of the grids.

[0017] Step S1, sending encryption and decryption instructions to the cryptographic chip, so that the cryptographic chip executes the encryption and decryption instructions;

[0018] Step S3, collecting a second voltage curve when the cryptographic chip executes the encryption and decryption instructions at the (i, j)th grid;

[0019] Step S5, repeat the operation of step S3 L times;

[0020] Step S7, traverse all grids to obtain L second voltage curves corresponding to each grid.

[0021] Optionally, calculating the correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid specifically includes:

[0022] Obtaining L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculating a correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve;

[0023] All grids are traversed to obtain the correlation coefficient corresponding to each grid.

[0024] Optionally, obtaining L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculating the correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve, specifically includes:

[0025] Obtain L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculate corresponding correlation coefficients at each sampling data point on the curves according to the first voltage curve and the second voltage curve;

[0026] The maximum value of the correlation coefficients corresponding to the sampling data points is taken as the correlation coefficient corresponding to the (i, j)th grid.

[0027] Optionally, based on the correlation coefficient, determining the location information of the key module specifically includes:

[0028] The grid with the smallest correlation coefficient is used as the location information of the key module.

[0029] The second aspect of the present application provides a positioning device for a key module in a cryptographic chip, comprising:

[0030] A division unit, used for dividing the surface of the cryptographic chip into grids to obtain a plurality of grids;

[0031] A first sending unit, used for sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction, wherein the first instruction is not an encryption or decryption instruction;

[0032] A second sending unit, used for sending encryption and decryption instructions to the cryptographic chip, and collecting a second voltage curve at each of the grids when the cryptographic chip executes the encryption and decryption instructions;

[0033] A first calculation unit, configured to calculate a correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid;

[0034] The determining unit is used to determine the location information of the key module based on the correlation coefficient.

[0035] Optionally, the determining unit is specifically configured to use the grid with the smallest correlation coefficient as the position information of the key module.

[0036] A third aspect of the present application provides a positioning device for a key module in a cryptographic chip, including a processor and a memory;

[0037] The memory is used to store program code and transmit the program code to the processor;

[0038] The processor is used to execute any one of the methods for locating a key module in a cryptographic chip described in the first aspect according to the instructions in the program code.

[0039] A fourth aspect of the present application provides a storage medium, wherein the storage medium is used to store program code, and the program code is used to execute any method for locating a key module in a cryptographic chip described in the first aspect.

[0040] It can be seen from the above technical solutions that this application has the following advantages:

[0041] The present application provides a method for positioning a key module in a cryptographic chip, firstly, the surface of the cryptographic chip is divided into grids to obtain a plurality of grids, then a first instruction is sent to the cryptographic chip, and a first voltage curve when the cryptographic chip executes the first instruction is collected at each grid, then an encryption and decryption instruction is sent to the cryptographic chip, and a second voltage curve when the cryptographic chip executes the encryption and decryption instruction is collected at each grid, then based on the first voltage curve and the second voltage curve corresponding to each grid, the correlation coefficient corresponding to each grid is calculated, and finally based on the correlation coefficient, the location information of the key module is determined. In the present application, the voltage signal of the cryptographic chip in two different states, encryption and decryption and non-encryption and decryption, is analyzed to locate the key module, and the positioning accuracy is high, thereby solving the technical problem that the positioning method of the key module in the existing cryptographic chip has a low accuracy, resulting in the located module often not being the key module for performing sensitive information operations such as encryption and decryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0043] Figure 1 This is a flow chart of a first embodiment of a method for locating a key module in a cryptographic chip according to an embodiment of the present application;

[0044] Figure 2 This is a flow chart of a second embodiment of a method for locating a key module in a cryptographic chip according to an embodiment of the present application;

[0045] Figure 3 This is a schematic diagram of the structure of a positioning device for a key module in a cryptographic chip in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The embodiments of the present application provide a method, device, equipment and storage medium for locating key modules in a cryptographic chip, which solves the technical problem that the accuracy of the existing method for locating key modules in cryptographic chips is low, resulting in the located modules often not being the key modules for performing sensitive information operations such as encryption and decryption.

[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] A first aspect of the embodiments of the present application provides an embodiment of a method for locating a key module in a cryptographic chip.

[0049] See also Figure 1 , a flow chart of embodiment 1 of a method for locating a key module in a cryptographic chip in an embodiment of the present application.

[0050] The method for locating the key module in the cryptographic chip in this embodiment includes:

[0051] Step 101: Divide the surface of the cryptographic chip into grids to obtain a plurality of grids.

[0052] In this embodiment, the surface of the password chip is divided into m×n grids. It can be understood that the m×n grids are of the same size. The grid is recorded as (i, j), where i = 1, 2, ..., m; j = 1, 2, ..., n. The size of the specific grid is the moving step length when applying electromagnetic scanning to the password chip.

[0053] Step 102: Send a first instruction to the cryptographic chip, and collect a first voltage curve at each grid when the cryptographic chip executes the first instruction.

[0054] In this embodiment, the first instruction is not an encryption or decryption instruction. In this embodiment, the key module is located by comparing the change of the surface voltage signal when the key module executes the encryption or decryption instruction and the non-encryption or decryption instruction.

[0055] Step 103: Send the encryption and decryption instructions to the cryptographic chip, and collect the second voltage curve at each grid when the cryptographic chip executes the encryption and decryption instructions.

[0056] Step 104: Calculate the correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid.

[0057] After obtaining the first voltage curve of each grid when the cryptographic chip executes non-encryption and decryption instructions and the second voltage curve of each grid when executing encryption and decryption instructions, the correlation coefficient corresponding to each grid can be calculated according to the first voltage curve and the second voltage curve.

[0058] Step 105: Determine the location information of the key module based on the correlation coefficient.

[0059] In this embodiment, the surface of the password chip is firstly divided into grids to obtain a plurality of grids, then a first instruction is sent to the password chip, and a first voltage curve when the password chip executes the first instruction is collected at each grid, then an encryption and decryption instruction is sent to the password chip, and a second voltage curve when the password chip executes the encryption and decryption instruction is collected at each grid, and then based on the first voltage curve and the second voltage curve corresponding to each grid, the correlation coefficient corresponding to each grid is calculated, and finally based on the correlation coefficient, the position information of the key module is determined. In this application, the voltage signal of the password chip in two different states of encryption and decryption and non-encryption and decryption is analyzed, so as to locate the key module, and the positioning accuracy is high, thereby solving the technical problem that the positioning method of the key module in the existing password chip has a low accuracy, resulting in the located module often not being the key module for performing sensitive information operations such as encryption and decryption.

[0060] The above is Example 1 of a method for locating a key module in a cryptographic chip provided in an embodiment of the present application. The following is Example 2 of a method for locating a key module in a cryptographic chip provided in an embodiment of the present application.

[0061] See also Figure 2 , a flow chart of embodiment 2 of a method for locating a key module in a cryptographic chip in an embodiment of the present application.

[0062] The method for locating the key module in the cryptographic chip in this embodiment includes:

[0063] Step 201: Divide the surface of the cryptographic chip into grids to obtain a plurality of grids.

[0064] It should be noted that the description of step 201 is the same as that of step 101 in the first embodiment. For details, please refer to the description of the above step 101, which will not be repeated here.

[0065] Step 202: Send a first instruction to the cryptographic chip so that the cryptographic chip executes the first instruction.

[0066] It is understandable that the first instruction here is an instruction other than the encryption and decryption instruction, for example, an instruction for initialization, loading parameters, etc. This embodiment does not make a specific limitation on this.

[0067] Step 203 : collecting a first voltage curve when the cryptographic chip executes a first instruction at the (i, j)th grid.

[0068] It can be understood that the first voltage curve is collected in the following manner: the magnetic field probe is placed above the grid (i, j), the magnetic field probe is connected to an amplifier, and the output end of the amplifier is connected to an oscilloscope, so that the data collected by the magnetic field probe is amplified by the amplifier and then collected and output by the oscilloscope. The number of data in the first voltage curve is the number of sampling points of the oscilloscope.

[0069] Step 204: Repeat the operation of step 203 L times.

[0070] By performing the operation of step 203 L times at the grid (i, j), L first voltage curves corresponding to the grid (i, j) can be obtained.

[0071] Step 205 , traverse all grids to obtain L first voltage curves corresponding to each grid.

[0072] After collecting the first voltage curve matrix L times for all grids, L first voltage curves corresponding to each grid can be obtained.

[0073] Step 206: Send the encryption and decryption instructions to the cryptographic chip, so that the cryptographic chip executes the encryption and decryption instructions.

[0074] Step 207 : collecting a second voltage curve when the cryptographic chip executes encryption and decryption instructions at the (i, j)th grid.

[0075] Step 208: Repeat the operation of step 207 L times.

[0076] Step 209: Obtain L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculate the correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve.

[0077] It can be understood that the collection of the second voltage curve is the same as the collection of the first voltage curve, and reference may be made to the above description, which will not be repeated here.

[0078] It should be noted that obtaining L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculating the correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve, specifically includes:

[0079] Obtain L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculate corresponding correlation coefficients at each sampling data point on the curves according to the first voltage curve and the second voltage curve;

[0080] The maximum value of the correlation coefficients corresponding to the sampling data points is taken as the correlation coefficient corresponding to the (i, j)th grid.

[0081] It can be understood that the correlation coefficient in this embodiment is specifically the Pearson correlation coefficient, and its corresponding calculation formula is as follows:

[0082]

[0083] Wherein, r is the correlation coefficient, X represents the vector formed by the data points on the first voltage curve, and Y represents the vector formed by the data points on the second voltage curve. is the mean value of X, is the mean value of Y, n is the number of data points in X and Y, X i is any data point of the first voltage curve X, Y i is any data point of the second voltage curve Y.

[0084] Step 210: traverse all grids to obtain the correlation coefficient corresponding to each grid

[0085] Step 211: Use the grid with the smallest correlation coefficient as the position information of the key module.

[0086] In this embodiment, the surface of the password chip is firstly divided into grids to obtain a plurality of grids, then a first instruction is sent to the password chip, and a first voltage curve when the password chip executes the first instruction is collected at each grid, then an encryption and decryption instruction is sent to the password chip, and a second voltage curve when the password chip executes the encryption and decryption instruction is collected at each grid, and then based on the first voltage curve and the second voltage curve corresponding to each grid, the correlation coefficient corresponding to each grid is calculated, and finally based on the correlation coefficient, the position information of the key module is determined. In this application, the voltage signal of the password chip in two different states of encryption and decryption and non-encryption and decryption is analyzed, so as to locate the key module, and the positioning accuracy is high, thereby solving the technical problem that the positioning method of the key module in the existing password chip has a low accuracy, resulting in the located module often not being the key module for performing sensitive information operations such as encryption and decryption.

[0087] A second aspect of the embodiments of the present application provides an embodiment of a positioning device for a key module in a cryptographic chip.

[0088] See also Figure 3 , a structural diagram of a positioning device for a key module in a cryptographic chip in an embodiment of the present application.

[0089] A positioning device for a key module in a cryptographic chip in this embodiment includes:

[0090] A division unit, used for dividing the surface of the cryptographic chip into grids to obtain a plurality of grids;

[0091] A first sending unit is used to send a first instruction to the cryptographic chip, and collect a first voltage curve at each grid when the cryptographic chip executes the first instruction, wherein the first instruction is not an encryption or decryption instruction;

[0092] A second sending unit is used to send encryption and decryption instructions to the cryptographic chip, and collect a second voltage curve at each grid when the cryptographic chip executes the encryption and decryption instructions;

[0093] A first calculation unit, configured to calculate a correlation coefficient corresponding to each grid based on a first voltage curve and a second voltage curve corresponding to each grid;

[0094] The determination unit is used to determine the location information of the key module based on the correlation coefficient.

[0095] Furthermore, a unit is determined, specifically for taking a grid with a minimum correlation coefficient as position information of a key module.

[0096] Specifically, sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each grid when the cryptographic chip executes the first instruction, specifically includes:

[0097] Step S0, sending a first instruction to the cryptographic chip, so that the cryptographic chip executes the first instruction;

[0098] Step S2, collecting a first voltage curve when the cryptographic chip executes a first instruction at the (i, j)th grid;

[0099] Step S4, repeat the operation of step S2 L times;

[0100] Step S6, traverse all grids to obtain L first voltage curves corresponding to each grid.

[0101] Furthermore, the encryption and decryption instructions are sent to the password chip, and the second voltage curve when the password chip executes the encryption and decryption instructions is collected at each grid.

[0102] Step S1, sending encryption and decryption instructions to the cryptographic chip, so that the cryptographic chip executes the encryption and decryption instructions;

[0103] Step S3, collecting a second voltage curve when the cryptographic chip executes encryption and decryption instructions at the (i, j)th grid;

[0104] Step S5, repeat the operation of step S3 L times;

[0105] Step S7, traverse all grids to obtain L second voltage curves corresponding to each grid.

[0106] Optionally, calculating the correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid specifically includes:

[0107] Obtaining L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculating a correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve;

[0108] Traverse all grids and obtain the correlation coefficient corresponding to each grid.

[0109] Further, obtaining L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculating the correlation coefficient corresponding to the (i, j)th grid according to the first voltage curve and the second voltage curve, specifically includes:

[0110] Obtain L first voltage curves and second voltage curves corresponding to the (i, j)th grid, and calculate corresponding correlation coefficients at each sampling data point on the curves according to the first voltage curve and the second voltage curve;

[0111] The maximum value of the correlation coefficients corresponding to the sampling data points is taken as the correlation coefficient corresponding to the (i, j)th grid.

[0112] In this embodiment, the surface of the password chip is firstly divided into grids to obtain a plurality of grids, then a first instruction is sent to the password chip, and a first voltage curve when the password chip executes the first instruction is collected at each grid, then an encryption and decryption instruction is sent to the password chip, and a second voltage curve when the password chip executes the encryption and decryption instruction is collected at each grid, and then based on the first voltage curve and the second voltage curve corresponding to each grid, the correlation coefficient corresponding to each grid is calculated, and finally based on the correlation coefficient, the position information of the key module is determined. In this application, the voltage signal of the password chip in two different states of encryption and decryption and non-encryption and decryption is analyzed, so as to locate the key module, and the positioning accuracy is high, thereby solving the technical problem that the positioning method of the key module in the existing password chip has a low accuracy, resulting in the located module often not being the key module for performing sensitive information operations such as encryption and decryption.

[0113] A third aspect of the embodiments of the present application provides an embodiment of a positioning device for a key module in a cryptographic chip.

[0114] A device for positioning a key module in a cryptographic chip comprises a processor and a memory; the memory is used to store program codes and transmit the program codes to the processor; the processor is used to execute the positioning method of the key module in the cryptographic chip of the first aspect according to the instructions in the program codes.

[0115] A fourth aspect of the embodiments of the present application provides an embodiment of a storage medium.

[0116] A storage medium is used to store program codes, and the program codes are used to execute the method for locating a key module in a cryptographic chip of the first aspect.

[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0118] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another power grid network to be installed, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0120] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0122] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for locating a key module in a cryptographic chip, characterized in that: include: Divide the surface of the cryptographic chip into grids to obtain a number of grids; Sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction, wherein the first instruction is not an encryption or decryption instruction; Sending encryption and decryption instructions to the cryptographic chip, and collecting a second voltage curve at each of the grids when the cryptographic chip executes the encryption and decryption instructions; Calculating a correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid; Based on the correlation coefficient, determining the location information of the key module; Wherein, determining the location information of the key module based on the correlation coefficient specifically includes: The grid with the smallest correlation coefficient is used as the location information of the key module.

2. The method for locating a key module in a cryptographic chip according to claim 1, characterized in that: Sending a first instruction to the cryptographic chip and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction specifically includes: Step S0, sending a first instruction to the cryptographic chip, so that the cryptographic chip executes the first instruction; Step S2, in the ( i, j ) grids to collect a first voltage curve when the cryptographic chip executes the first instruction; Step S4, repeat the operation of step S2 L times; Step S6, traverse all grids to obtain L first voltage curves corresponding to each grid.

3. The method for locating a key module in a cryptographic chip according to claim 2, characterized in that: Sending encryption and decryption instructions to the cryptographic chip, and collecting a second voltage curve at each of the grids when the cryptographic chip executes the encryption and decryption instructions; Step S1, sending encryption and decryption instructions to the cryptographic chip, so that the cryptographic chip executes the encryption and decryption instructions; Step S3, in the ( i, j ) grids to collect a second voltage curve when the cryptographic chip executes the encryption and decryption instructions; Step S5, repeat the operation of step S3 L times; Step S7, traverse all grids to obtain L second voltage curves corresponding to each grid.

4. The method for locating a key module in a cryptographic chip according to claim 3, characterized in that: Calculating the correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid specifically includes: Get the first i, j ) grids corresponding to L first voltage curves and second voltage curves, and according to the first voltage curves and the second voltage curves, calculate the ( i, j ) The correlation coefficient corresponding to each grid; All grids are traversed to obtain the correlation coefficient corresponding to each grid.

5. The method for locating a key module in a cryptographic chip according to claim 4, characterized in that: Get the first i, j ) grids corresponding to L first voltage curves and second voltage curves, and according to the first voltage curves and the second voltage curves, calculate the ( i, j ) grids, including: Get the first i, j ) grids corresponding to L first voltage curves and second voltage curves, and calculating corresponding correlation coefficients at each sampling data point on the curves according to the first voltage curves and the second voltage curves; The maximum value of the correlation coefficients corresponding to each sampling data point is taken as the first ( i, j ) grids corresponding to the correlation coefficient.

6. A positioning device for a key module in a cryptographic chip, characterized in that: include: A division unit, used for dividing the surface of the cryptographic chip into grids to obtain a plurality of grids; A first sending unit, used for sending a first instruction to the cryptographic chip, and collecting a first voltage curve at each of the grids when the cryptographic chip executes the first instruction, wherein the first instruction is not an encryption or decryption instruction; A second sending unit, used for sending encryption and decryption instructions to the cryptographic chip, and collecting a second voltage curve at each of the grids when the cryptographic chip executes the encryption and decryption instructions; A first calculation unit, configured to calculate a correlation coefficient corresponding to each grid based on the first voltage curve and the second voltage curve corresponding to each grid; A determination unit, used to determine the location information of the key module based on the correlation coefficient; The determining unit is specifically configured to use the grid with the smallest correlation coefficient as the position information of the key module.

7. A positioning device for a key module in a cryptographic chip, characterized in that: including a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the method for locating a key module in a cryptographic chip according to any one of claims 1 to 5 according to the instructions in the program code.

8. A storage medium, characterized in that: The storage medium is used to store program codes, and the program codes are used to execute the method for locating a key module in a cryptographic chip according to any one of claims 1 to 5.