Side channel analysis method for protected post quantum cryptography algorithm

By collecting and analyzing the power consumption curve in the Dilithium algorithm, identifying the zero value part and calculating the correlation coefficient, the deficiencies in the side channel analysis of the protected Dilithium algorithm in the existing technology are solved, and the effective analysis and security of the key information are achieved. promote.

CN118631432AActive Publication Date: 2024-09-10BEIJING INST OF TECH +1

Patent Information

Application Number
CN202410701197.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-10
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

At this stage, there are few side-channel analysis methods for the protected Dilithium algorithm. Side-channel analysis mainly targets unprotected algorithms, and it is difficult to effectively prevent key information leakage.

Method used

By collecting the power consumption curve during the execution of the Dilithium signature algorithm with first-order mask protection, analyzing the interest interval of the power consumption curve, identifying the zero value part, calculating the correlation coefficient, and gradually deriving part of the hypothetical key until the complete key.

Benefits of technology

It effectively identifies and analyzes the key information in the protected Dilithium algorithm, enhances the resistance to side channel analysis, and improves the security of the key.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631432A
    Figure CN118631432A
Patent Text Reader

Abstract

The invention provides a side channel analysis method for a protected post quantum cryptography algorithm, and belongs to the field of post quantum cryptography security. According to the method, the secret key can be obtained by analyzing the power consumption curve in the cryptographic algorithm execution process aiming at the protection Diithium algorithm with protection, and different times are analyzed according to different secret key lengths and different analysis lengths of each time by mainly adopting the means of curve interception, curve identification, secret key hypothesis, correlation coefficient analysis and the like until the complete secret key is analyzed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of post-quantum cryptographic security. Technical Background

[0002] Dilithium is an advanced post-quantum digital signature scheme designed to counter the threat of future quantum computers. It is based on lattice problems, provides strong security and performs well in signing and verification speed. It is widely used in fields such as network security, Internet of Things, finance and government communications, ensuring that information remains secure in the long term even in the quantum era. Side channel analysis is a non-invasive analysis method that bypasses the direct mathematical challenges of cryptographic algorithms and instead uses physical phenomena during the execution of algorithms, such as execution time differences, power consumption changes, electromagnetic radiation or sound, to indirectly reveal encrypted data or key information. This type of analysis covers a variety of methods such as timing analysis, power analysis, electromagnetic radiation analysis and fault injection analysis. At present, the side channel analysis of the Dilithium encryption algorithm is mainly focused on the steps where the key participates in the calculation. By observing the leakage information of the relevant steps, the key can be inferred, and then the signature of the forged message can be achieved. However, the current side channel analysis methods are mainly aimed at the unprotected Dilithium algorithm, and there is little research on the analysis methods of the protected Dilithium algorithm. Summary of the invention

[0003] In order to solve the problem that there are few side channel analysis solutions for protected Dilithium algorithms at this stage, the present invention proposes a side channel analysis method for protected post-quantum cryptographic algorithms.

[0004] The implementation method of the present invention comprises the following steps:

[0005] Step 1: During the execution of the Dilithium signature algorithm with first-order mask protection, the power consumption curve is collected as the analysis curve, where the position where c s1 is calculated is the analysis position, where c is known and random, and s1 is unknown and will be randomly divided into s 1a and 1b Repeat the signing process multiple times and collect curves. In each repetition, the value of c is random, and the split of s1 is also random. The results of multiple collections are combined into an analysis curve set.

[0006] Step 2: Observe the general rules of each wave, determine the interesting interval of the power consumption curve, determine a unified interval length, intercept the interesting interval of each wave, and further update the analysis curve set to a curve set consisting of all interval curves;

[0007] Step 3: When s 1a or 1bWhen part of is 0, the corresponding running power consumption is very low, and the power consumption curve generated is obviously different from other curves, identifying s 1a or 1b Contains the corresponding curve when 0, and retains the remaining non-zero operation part of the curve with a fixed length. 1a When one part is 0, keep the second half s 1b The corresponding part of the operation curve, when s 1b When part is 0, keep the first half s 1a The operation curves at the corresponding positions, the analysis curve set is further updated to form a curve set composed of all the retained curves;

[0008] Step 4: Record the c used in all the curve corresponding calculations in step 3. All c form an array and all possible partial hypotheses are used as keys. List, respectively calculate the product of the array and a single partial hypothetical key to obtain partial intermediate values, according to the partial hypothetical key The number of partial intermediate value arrays is obtained according to the number of

[0009] Step 5: Taking each array in step 4 as a unit, calculate the correlation coefficient between an array and the data at the same time sampling point in the curve set in step 3 to obtain a correlation coefficient value, and calculate sequentially along the time sampling points to obtain a correlation coefficient curve. After calculating all arrays, the same number of curves as the number of arrays are obtained;

[0010] Step 6: Count all the correlation coefficient curves in step 5, find the curve with the highest peak, and the part of the hypothesized key corresponding to the curve where the peak is located That is the true value of the corresponding part of the required key s1. If s1 cannot be fully analyzed, repeat steps 2 to 6 until the key s1 is fully analyzed.

[0011] This analysis method consists of the above 6 steps. The algorithm described in step 1 is the Dilithium signature algorithm with first-order mask protection. The c, s1, s 1a 、s 1b The variables used in the analysis process are only symbols and are not to be considered as limitations of the present invention.

[0012] The curve described in step 2 may be properly filtered in actual specific analysis, and then the length of the interval of interest may be further adjusted according to actual needs, but the calculation process of the analysis position is guaranteed to be covered.

[0013] Step 3 1a or 1b The length of the zero value part is uncertain, and the length of one analysis can be selected according to the actual situation.

[0014] The array composed of c and some hypothetical keys described in step 4 Calculate an array of intermediate values.

[0015] The correlation coefficient described in step 5 is the correlation coefficient between the middle value and the point on the curve.

[0016] If the length of the corresponding part of the required key s1 described in step 6 is smaller than the key s1, steps 2 to 6 are repeated until each part of the key s1 is analyzed, thereby obtaining the complete key s1. The specific number of cycles is related to the length of one analysis and the total length of the key. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0018] Figure 1 It is the Dilithium signature algorithm;

[0019] Figure 2 Schematic diagram of the analysis process; Specific implementation methods

[0021] To facilitate those skilled in the art to understand the present invention, the invention is further described below in conjunction with the accompanying drawings, which constitute part of this application and are not used to limit the scope of the present invention.

[0022] Figure 1 It is the Dilithium cryptographic algorithm in the prior art. The Dilithium algorithm includes key generation, signature generation and signature verification processes, wherein the key generation algorithm Gen outputs the public key pk = (ρ, t1) and the private key sk = (ρ, K, tr, s1, s2, t0); the signature generation algorithm Sign (sk, M) takes the private key sk and the message M as input and outputs a legal signature s1, s2, t0 are unknown, K and tr are unknown byte strings, and ρ is known. Figure 1 As shown in Figure 2 As shown below, combined Figure 2 The side channel analysis method of the signature algorithm of the embodiment of the present invention is described.

[0023] Step 1: During the execution of the Dilithium signature algorithm with first-order mask protection, the power consumption curve is collected as the analysis curve, where the position where c s1 is calculated is the analysis position, where c is known and random, and s1 is unknown and will be randomly divided into s 1a and 1bThe signature process is repeated multiple times and the curves are collected. In each repetition, the value of c is random, and the split of s1 is also random. The results of multiple collections are combined into an analysis curve set.

[0024] In this example, s1 = s 1a +s 1b , the number of waveforms collected is 10000. In addition, 8 bits of s1 are analyzed at a time, which can be regarded as At this time there is

[0025] Step 2: Observe the general rules of each wave, determine the interesting interval of the power consumption curve, determine a uniform interval length, intercept the interesting interval of each wave, and further update the analysis curve set to a curve set consisting of all interval curves.

[0026] In this example, the length of the interest interval is 1000. In actual analysis, appropriate filtering can be performed, and then the length of the interest interval can be further adjusted according to actual needs, but it is guaranteed to cover and Two-step calculation process.

[0027] Step 3: When s 1a or 1b When part of is 0, the corresponding running power consumption is very low, and the power consumption curve generated is obviously different from other curves, identifying s 1a or 1b Contains the corresponding curve when 0, and retains the remaining non-zero operation part of the curve with a fixed length. 1a When one part is 0, keep the second half s 1b The corresponding part of the operation curve, when s 1b When part is 0, keep the first half s 1a The operation curves at the corresponding positions, the analysis curve set is further updated to form a curve set consisting of all the retained curves.

[0028] In this example, after the zero value analysis, the remaining length is retained as 500. In actual applications, non-zero positions are retained and the appropriate length is truncated according to the specific analysis situation.

[0029] Step 4: Record the c used in all the curve corresponding calculations in step 3. All c form an array and all possible partial hypotheses are used as keys. List, respectively calculate the product of the array and a single partial hypothetical key to obtain partial intermediate values, according to the partial hypothetical key The number of partial intermediate value arrays is obtained according to the number of partial intermediate value arrays.

[0030] In this example, each waveform corresponds to c to form a vector C, and all the assumed keys Composition vector C and Multiply each element in . Assuming the key The bit width is 8 bits. Assuming that the number of keys is 256, a total of 256 arrays are obtained.

[0031] Step 5: Taking each array in step 4 as a unit, calculate the correlation coefficient between an array and the data at the same time sampling point in the curve set in step 3 to obtain a correlation coefficient value. Calculate sequentially along the time sampling points to obtain a correlation coefficient curve. After calculating all arrays, the same number of curves as the number of arrays are obtained.

[0032] In this example, a total of 256 correlation coefficient curves are obtained, each of which consists of 500 correlation coefficient points, the number of which is determined by the curve retention length in step 3.

[0033] Step 6: Count all the correlation coefficient curves in step 5, find the curve with the highest peak, and the part of the hypothesized key corresponding to the curve where the peak is located That is the true value of the corresponding part of the required key s1. If s1 cannot be fully analyzed, repeat steps 2 to 6 until the key s1 is fully analyzed.

[0034] In this example, after obtaining the curve with the highest peak of the data, we can get the desired Steps 2 to 6 are repeated 768 times until the data at all positions of s1 are obtained, and the sequential combination is the complete key of the algorithm.

Claims

1. A side channel analysis method for a protected post-quantum cryptographic algorithm, characterized in that: The method comprises the following steps: Step 1: During the execution of the Dilithium signature algorithm with first-order mask protection, the power consumption curve is collected as the analysis curve, where the position where c s1 is calculated is the analysis position, where c is known and random, and s1 is unknown and will be randomly divided into s 1a and 1b Repeat the signing process multiple times and collect curves. In each repetition, the value of c is random, and the split of s1 is also random. The results of multiple collections are combined into an analysis curve set. Step 2: Observe the general rules of each wave, determine the interesting interval of the power consumption curve, determine a unified interval length, intercept the interesting interval of each wave, and further update the analysis curve set to a curve set consisting of all interval curves; Step 3: When s 1a or 1b When part of is 0, the corresponding running power consumption is very low, and the power consumption curve generated is obviously different from other curves, identifying s 1a or 1b Contains the corresponding curve when 0, and retains the remaining non-zero operation part of the curve with a fixed length. 1a When one part is 0, keep the second half s 1b The corresponding part of the operation curve, when s 1b When part is 0, keep the first half s 1a The operation curves at the corresponding positions, the analysis curve set is further updated to form a curve set composed of all the retained curves; Step 4: Record the c used in all the curve corresponding calculations in step 3. All c form an array and all possible partial hypotheses are used as keys. List, respectively calculate the product of the array and a single partial hypothetical key to obtain partial intermediate values, according to the partial hypothetical key The number of partial intermediate value arrays is obtained according to the number of Step 5: Taking each array in step 4 as a unit, calculate the correlation coefficient between an array and the data at the same time sampling point in the curve set in step 3 to obtain a correlation coefficient value, and calculate sequentially along the time sampling points to obtain a correlation coefficient curve. After calculating all arrays, the same number of curves as the number of arrays are obtained; Step 6: Count all the correlation coefficient curves in step 5, find the curve with the highest peak, and the part of the hypothesized key corresponding to the curve where the peak is located That is the true value of the corresponding part of the required key s1. If s1 cannot be fully analyzed, repeat steps 2 to 6 until the key s1 is fully analyzed.

2. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: The algorithm used is the Dilithium signature algorithm with first-order mask protection.

3. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: In actual analysis, the curve can be properly filtered first, and then the length of the interval of interest can be further adjusted according to actual needs, but the calculation process of the analysis position is guaranteed to be covered.

4. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: s 1a or 1b The length of the zero value part is uncertain, and the length of one analysis can be selected according to the actual situation.

5. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: An array consisting of c and a hypothetical key is required Calculate an array of intermediate values.

6. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: The calculated correlation coefficient is the correlation coefficient between the middle value and the point on the curve.

7. A side channel analysis method for a protected post-quantum cryptographic algorithm according to claim 1, characterized in that: If the length of the corresponding part of the required key s1 is less than the key s1, then steps 2 to 6 are repeated until each part of the key s1 is analyzed, and then the complete key s1 is obtained. The specific number of cycles is related to the length of one analysis and the total length of the key.

Citation Information

Patent Citations

  • Side channel analysis method for sparse polynomial multiplication in LAC scheme

    CN114614966A

  • Parallel computing-based side channel key analysis method and system

    CN115484107A

  • Fast side channel attack method and system for NTT polynomial multiplication

    CN117728933A

  • Side channel attack method of Diithium signature algorithm

    CN117938402A

  • Hybrid side channel attack method of Diithium signature algorithm

    CN118074917A

Cited By

  • Diithium rapid side channel attack analysis method

    CN119652565A