Sequence cipher algorithm SNOW2.0 linear distinguishing attack evaluation method and system

By establishing the linear feedback shift register variable equivalence relationship and the finite state machine linear approximation, the influence of the linear feedback register variable is eliminated, and the MILP model is used to calculate the correlation coefficient of the distinguisher, which solves the problem of inaccurate calculation of the correlation coefficient in the SNOW 2.0 algorithm. The accuracy of the distinguisher advantage is improved, and the effectiveness of sequence cryptographic security analysis is improved.

CN118677600APending Publication Date: 2024-09-20Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823596.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The correlation coefficient calculation in the linear distinguisher of the existing SNOW 2.0 algorithm is inaccurate, resulting in inaccurate evaluation of the time and data complexity of distinguishing attacks.

Method used

By establishing the linear feedback shift register variable equivalence relationship and the finite state machine linear approximation, the influence of the linear feedback register variable is eliminated, and only the differentiator of the key stream output sequence is included, and the MILP model is used to calculate the accurate correlation coefficient of the differentiator.

Benefits of technology

It solves the problem of the influence of public variables in linear differentiators, improves the accuracy of the differentiator advantages, reduces the time and data complexity of differentiating attacks, and improves the effectiveness of sequence cipher security analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677600A
    Figure CN118677600A
Patent Text Reader

Abstract

The invention relates to the technical field of cryptographic analysis, in particular to a SNOW2.0 linear distinguishing attack evaluation method and system based on a sequence cryptographic algorithm, and the method comprises the steps: building a linear feedback shift register variable equivalence relation through a state updating function of a linear feedback shift register in the SNOW2.0 sequence cryptographic algorithm; linear approximation of a key stream and a linear feedback shift register variable is established through linear approximation of a finite-state machine in an SNOW2.0 sequence cipher algorithm at specified moments, and the specified moments comprise a plurality of different moments; substituting the variable equivalence relation of the linear feedback shift register into linear approximation, and establishing a differentiator only containing a key stream output sequence; the discriminator is obtained by searching the maximum advantage of a linear approximation single chain in the discriminator, and then the accurate relation number of the discriminator is calculated. According to the method, the discriminator search problem in algorithm evaluation is decomposed into two parts of linear approximation single-chain maximum advantage search and calculation of the accurate correlation coefficient of the corresponding discriminator, the problem that the attack effect of the discriminator is affected by common variables in existing linear approximation can be solved, and the advantages of the discriminator can be effectively evaluated; the method has a good application prospect in the aspect of sequence password security analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cryptanalysis, and in particular to a linear differentiation attack evaluation method and system for a sequence cipher algorithm SNOW2.0. Background Art

[0002] The SNOW 2.0 algorithm is a serial cipher based on a word-based linear feedback shift register (LFSR) driven FSM. It has excellent implementation performance in both software and hardware environments and can resist a variety of traditional attack methods. In 2005, SNOW 2.0 was selected as the standardized algorithm ISO / IEC 18033-4. Currently, there are no attack results that are less secure than its declared 128-bit key. The existing linear discriminators of the SNOW 2.0 algorithm include single-bit discriminators and 32-bit discriminators. For the single-bit discriminator, the SNOW 2.0 discriminator is now established by using the linear approximation of the FSM at four moments and the update equation of the LFSR, and the nonlinear function in the linear approximation of the FSM is replaced by the linear approximation of the LFSR. and Split into some two-input modulo 2 32 The added linear approximation and the S-layer linear approximation have a searched discriminator advantage of 2 -111.25 , the time / data complexity of distinguishing attacks is 2 225 However, according to the correlation coefficient theorem of composite functions, the advantage calculated by this method is not accurate. Subsequently, the improved linear discriminator of SNOW2.0 gave an efficient method to accurately calculate the correlation coefficient of nonlinear functions f(x,y) and g(x,y,z), and found an advantage of 2 -85.89 The larger discriminator gives a time and data complexity of 2 174 Then, when the above two schemes use the linear approximation of the FSM at four moments to establish the linear discriminator, they both assume that the four linear approximations are independent of each other. However, since the four linear approximations have common variables, they are not independent of each other. Therefore, the calculation of their correlation coefficients is also inaccurate. Summary of the invention

[0003] To this end, the present invention provides a linear discrimination attack assessment method and system for a sequence cipher algorithm SNOW2.0, which solves the problem of unreasonable calculation of linear approximation correlation coefficient of the existing SNOW2.0 algorithm and facilitates a more reasonable assessment of the security and reliability of the SNOW2.0 algorithm.

[0004] According to the design scheme provided by the present invention, on the one hand, a linear differentiation attack evaluation method for a stream cipher algorithm SNOW2.0 is provided, comprising:

[0005] The state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm is used to establish the equivalent relationship of the linear feedback shift register variables.

[0006] A linear approximation of a key stream and a linear feedback shift register variable is established by using a finite state machine linear approximation in a SNOW2.0 sequence cipher algorithm at a specified time, wherein the specified time includes a plurality of different times;

[0007] The linear feedback shift register variable equivalence relation is brought into the linear approximation to establish a discriminator that only contains the key stream output sequence;

[0008] The exact correlation coefficient of the discriminator is calculated by searching for the maximum advantage of the linear approximation single chain in the discriminator.

[0009] As a linear differentiation attack evaluation method for the sequence cipher algorithm SNOW2.0 of the present invention, further, the state update function of the linear feedback shift register is expressed as: Among them, α,α -1 is the state update coefficient, and α,α -1 ∈GF(2 32 ), GF(2 32 ) is a 32-dimensional extension field on the binary field GF(2), and t is the time.

[0010] As a linear differentiation attack evaluation method for the sequence cipher algorithm SNOW2.0 of the present invention, further, the linear feedback shift register variable equivalence relationship is expressed as: Among them, Γ, Λ, a, b, c are masks.

[0011] As a linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 of the present invention, further, a linear approximation of a key stream and a linear feedback shift register variable is established, comprising:

[0012] Obtain a key stream at a specified time, where the specified time includes t+2, t+16, t, and t+11;

[0013] According to the mask and the key stream at the specified time, a linear approximation equation between the key stream at the corresponding time and the register variable is constructed by using a linear feedback shift register state update function;

[0014] The linear approximation equation between the key stream and the register variable at the specified time is XORed, and the linear approximation of the key stream and the linear feedback shift register variable is established according to the nonlinear function in the XOR operation result.

[0015] As a linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 of the present invention, further, a distinguisher including only the key stream output sequence is established, including:

[0016] The linear feedback shift register variable equivalence relation is brought into the linear approximation, and the linear feedback shift register variables in the linear approximation of the key stream and the linear feedback shift register variables are eliminated by using the linear feedback shift register variable equivalence relation to establish a discriminator containing only the key stream output sequence.

[0017] As a linear discrimination attack evaluation method for the sequence cipher algorithm SNOW2.0 of the present invention, further, by searching for the maximum advantage of linear approximation of a single chain in the discriminator, and then calculating the exact correlation coefficient of the discriminator, it includes:

[0018] Establish a MILP model of a single chain of linear approximation of the discriminator containing only the key stream output sequence;

[0019] The Gurobi solver is used to solve the MILP model and search for the maximum value of the linear approximation single chain. For the maximum value searched by the MILP model, the discriminator correlation coefficient is calculated based on the mask.

[0020] As a linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 of the present invention, a MILP model is further established, including:

[0021] Obtain a linear approximation single chain of each finite state machine in the distinguisher, wherein the single chain includes three linear approximations of modulo 232 additions and one linear approximation of an S function;

[0022] According to the linear approximation single chain of each finite state machine, the MILP models of linear approximation of each modular 232 addition and S-box function are established respectively.

[0023] On the other hand, the present invention also provides a linear differentiation attack evaluation system for a sequence cipher algorithm SNOW2.0, comprising: a register variable equivalence module, a linear approximation establishment module, a distinguisher acquisition module and a distinguisher evaluation module, wherein:

[0024] The register variable equivalent module is used to establish the linear feedback shift register variable equivalent relationship by using the state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm;

[0025] A linear approximation establishment module, used for establishing a linear approximation of a key stream and a linear feedback shift register variable by using a finite state machine linear approximation in a SNOW2.0 sequence cipher algorithm at a specified time, wherein the specified time includes a plurality of different times;

[0026] A discriminator acquisition module is used to bring the linear feedback shift register variable equivalence relationship into the linear approximation and establish a discriminator containing only the key stream output sequence;

[0027] The discriminator evaluation module is used to calculate the exact correlation coefficient of the discriminator by searching for the maximum advantage of the linear approximation single chain in the discriminator.

[0028] Beneficial effects of the present invention:

[0029] The present invention first constructs a SNOW2.0 algorithm discriminator, and decomposes the discriminator search problem in algorithm evaluation into two parts: linear approximation single-chain maximum advantage search and calculation of the exact correlation coefficient of the corresponding discriminator. It can solve the problem that common variables in the existing linear approximation affect the effect of discriminator attack, can effectively evaluate the discriminator advantage, and has good application prospects in sequence cryptographic security analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a schematic diagram of the linear differentiation attack evaluation process of the sequence cipher algorithm SNOW2.0 in the embodiment;

[0031] Figure 2 The key stream generation algorithm structure of SNOW 2.0 in the embodiment is schematically shown. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.

[0033] Linear differentiation attack is an important method in the security analysis of sequence ciphers. It uses a distinguisher that only contains the key stream sequence to distinguish the output sequence of the cryptographic algorithm from the random sequence. Assuming that the advantage of the distinguisher is ρ, the time complexity and data complexity of the attack can be approximately evaluated as ρ -2 Therefore, how to construct a discriminator with high advantage is the key to linear differentiation attack.

[0034] Embodiments of the present invention, see Figure 1 As shown, a linear differentiation attack evaluation method for a sequence cipher algorithm SNOW2.0 is provided, comprising:

[0035] S101, using the state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm to establish a linear feedback shift register variable equivalence relationship;

[0036] S102, using the finite state machine linear approximation in the SNOW2.0 sequence cipher algorithm at a specified time to establish a linear approximation of a key stream and a linear feedback shift register variable, wherein the specified time includes a plurality of different times;

[0037] S103, bringing the linear feedback shift register variable equivalence relationship into the linear approximation, and establishing a distinguisher that only contains the key stream output sequence;

[0038] S104, by searching for the maximum advantage of the linear approximation single chain in the discriminator, and then calculating the exact correlation coefficient of the discriminator.

[0039] like Figure 2 As shown in FIG. 1 , the SNOW 2.0 algorithm is a 32-bit word oriented sequential cipher algorithm, which includes a LFSR and a FSM. SNOW 2.0 has 16 32-bit word registers (s t+15 ,s t+14 ,…,s t ), the feedback polynomial of LFSR is a GF(2 32 ) on the primitive polynomial:

[0040]

[0041] where α is GF(2 8 ) The root of , β is a polynomial in GF(2) Root.

[0042] The key stream output is FSM Register R1 t ,R2 t The update function is

[0043]

[0044] R2 t+1 =S(R1 t ),

[0045] Here S is a 32×32 S-box, which is composed of 4 juxtaposed 8-bit AES S-boxes and then a composite AES column mix transform.

[0046] The initialization algorithm includes two stages: 128-bit key and 128-bit IV filling stage and 33 rounds of initialization algorithm. After the initialization stage, the algorithm starts to generate key stream z t .

[0047] The key stream equation of the SNOW 2.0 algorithm at two consecutive moments can be expressed as

[0048]

[0049] By the update function

[0050] R1 t+1 =s t+5 Field R2 t ,R2 t+1 =S(R1 t ),

[0051] It can be seen that

[0052]

[0053] Let the nonlinear function

[0054]

[0055] Then introduce the mask Γ,Λ∈GF(2 32 ) can be obtained as follows:

[0056]

[0057] In order to eliminate the linear approximation register variable R2 t ,R2 t+1 , introduce mask a,b,c∈GF(2 32 ), and then make the following linear approximation for the nonlinear functions f and g respectively

[0058]

[0059] Let the correlation coefficients of the above two linear approximations be

[0060] ρ f (a,Λ→Γ),ρ A3 (b,c,Γ→Λ),

[0061] This gives a linear approximation of the FSM containing only the key stream output variables and the register variables:

[0062]

[0063] The correlation coefficient of the above linear approximation is set to c FSM (a,b,c,Γ,Λ), assuming that the input variable s of function f,g t+5 ,s t+15 ,s t+16 ,R2 t ,R2 t+1 are independent of each other, then according to the stacking lemma, the correlation coefficient of the FSM linear approximation (3) can be calculated as

[0064] c FSM (a,b,c,Γ,Λ)=ρ f (a,Λ→Γ)ρ A3 (b,c,Γ→Λ).

[0065] The linear approximation equation (3) of the FSM at four moments and the state update function of the LFSR can be used to establish a linear approximation that only contains the key stream output sequence, thus obtaining a distinguisher.

[0066] According to the following LFSR state update equation

[0067]

[0068] It can be seen that the state update equation of LFSR involves elements α,α on the finite field -1 ∈GF(2 32 ), when calculating the inner product of the above equation and the mask, it is necessary to consider the given mask η∈GF(2 32 ) and coefficients α,α -1 ∈GF(2 32 ) relationship.

[0069] For a given mask η∈GF(2 32 ) and the elements γ∈GF(2 32 ), define the mask ηγ∈GF(2 32 )right All meet

[0070] (ηγ)·x=η·(γx).

[0071] Therefore, for a given mask Γ,Λ,a,b,c and the LFSR state update coefficients α,α -1 , we can define masks Γα, Λα, aα, bα, cα, Γα respectively -1 ,Λα -1 ,aα -1 ,bα -1 ,cα -1 ∈GF(2 n ). Then update the equation according to the state of LFSR

[0072]

[0073] The following equation can be obtained

[0074]

[0075] For the key stream equation (1) at the four times t+2, t+16, t, t+11 and the above masks Γ, Λ, Γα, Λα, Γα -1 ,Λα -1 The following equation (5) can be obtained:

[0076]

[0077] XORing the four equations in equation (5) yields equation (6):

[0078]

[0079] A linear approximation is established for the nonlinear functions f, g in equation (6), and equation (4) is used to eliminate the influence of the register variables in the linear approximation.

[0080] Assume 11 register variables s t+5 ,s t+7 ,s t+15 ,s t+16 ,s t+17 ,s t+18 ,s t+21 ,s t+26 ,s t+27 ,s t+31 ,s t+32 With 8 FSM register variables R2 t ,R2 t+1 ,R2 t+2 ,R2 t+3 ,R2 t+16 ,R2 t+17 ,R2 t+11 ,R2 t+12 There are 19 independent variables in total. The above nonlinear function g(s t+16 ,s t+5 ,R2 t ),g(s t+27 ,s t+16 ,R2 t+11 ) has a common variable s in its linear approximation t+16 Therefore, according to Theorem 1, we need to introduce an intermediate mask d∈GF(2 n ), and establish the following four linear approximations.

[0081]

[0082] According to the linear approximation of FSM, the correlation coefficients of the linear approximation of the above four FSMs are c1, c1, c2, c3, respectively.

[0083]

[0084] XORing the four linear approximations in (7) above yields the following linear approximation (8):

[0085]

[0086] The correlation coefficient of the linear approximation (8) can be expressed as

[0087]

[0088] Substituting the linear approximation (8) into equation (6), and then according to equation (4), the discriminator of SNOW 2.0 is

[0089]

[0090] Therefore, the correlation coefficient c of the SNOW 2.0 discriminator is SNOW 2.0 (a,b,c,Γ,Λ) is

[0091]

[0092] in,

[0093]

[0094] The existing technology does not take into account the nonlinear function g(s t+16 ,s t+5 ,R2 t ),g(s t+27 ,s t+16 ,R2 t+11 ) has a common variable s in its linear approximation t+16 Instead, they assumed that these linear approximations were independent of each other and then used the stacking theorem to calculate the product of the correlation coefficients. That is, they only considered an intermediate mask of d = 0 in formula (10). Therefore, the correlation coefficient they calculated was not accurate.

[0095] In this embodiment, the maximum advantage of linear approximation of a single chain in the search discriminator is used to calculate the exact correlation coefficient of the discriminator. , which can be designed to include:

[0096] Establish a MILP model of a single chain of linear approximation of the discriminator containing only the key stream output sequence;

[0097] The Gurobi solver is used to solve the MILP model and search for the maximum value of the linear approximation single chain. For the maximum value searched by the MILP model, the discriminator correlation coefficient is calculated based on the mask.

[0098] Specifically, each finite state machine in the distinguisher can be linearly approximated to a single chain, wherein the single chain includes three modulo 2 32 The linear approximation of each module and the linear approximation of an S function are respectively established according to the linear approximation single chain of each finite state machine. 32 MILP model for linear approximation of additive S-box functions.

[0099] Since the masks aα,bα,cα,Γα,Λα,aα -1 ,bα -1 ,cα -1 ,Γα -1 ,Λα -1It is uniquely determined by the mask a, b, c, Γ, Λ. According to the calculation formula (10) of the correlation coefficient, the masks involved in the SNOW 2.0 distinguisher are a, b, c, Γ, Λ, d∈GF(2 32 ), so the exhaustive complexity of the mask is 2 6×32 =2 192 Obviously, direct exhaustive enumeration is computationally infeasible. In order to search for the advantage |c SNOW 2.0 (a, b, c, Γ, Λ)|, we can first establish a MILP model of the linear approximation of the SNOW 2.0 discriminator to a single chain, then use the MILP model to search for the maximum advantage of the single chain, and then use formula (10) to calculate the exact value of the correlation coefficient of the corresponding discriminator (9). Finally, based on the results of the MILP solution, for the discriminator with a=b=c=Γ=Λ, the advantage is relatively large. We exhaustively enumerate a class of SNOW 2.0 discriminators, where the mask a=b=c=Γ=Λ∈GF(2 32 ) / {0}, we can get the supremum of its advantage.

[0100] MILP model for the single chain of SNOW 2.0 discriminator. According to formula (10), the discriminator of SNOW 2.0 includes three FSM linear approximations, and from linear approximation (2), each single chain of FSM linear approximation includes the following three modules: 32 The linear approximation of the addition and the linear approximation of an S function

[0101]

[0102] Therefore, we need to modify the following 9 modulo 2 32 The MILP models were established by adding linear approximation and three S-function linear approximations.

[0103]

[0104] Therefore, the calculation formula (10) of the advantage of the SNOW 2.0 distinguisher can be rewritten as

[0105]

[0106] in,

[0107]

[0108] In the MILP model, five discriminator mask variables a, b, c, Γ, Λ∈GF(2 32 ) and 7 intermediate mask variables d, Φ1, Φ2, ..., Φ6∈GF(2 32 ). For 9 modulo 2 32To add linear approximation to model separately, it is necessary to introduce 9 33-dimensional auxiliary variables s1, s2, …, s9∈GF(2 33 ), then their advantages can be calculated as In addition, modeling the linear approximation of the three S functions requires modeling the S layer and MixColumns separately.

[0109] Among them, modulo 2 n The process of MILP modeling of Add, XOR, S-Box, MixColumns, and Linear Transform operations can be described as follows:

[0110] Set Model 2 n The added input mask and output mask are x, y and z respectively, and the auxiliary vector s is an n+1-dimensional binary vector, then ρ A2 The necessary and sufficient condition for (x,y→z)≠0 is that the following 8n+1 conditions are met at the same time

[0111]

[0112] And the advantage can be calculated as

[0113] Let x,y,z∈GF(2), then The equivalent characterization of is as follows:

[0114]

[0115] set up is the correlation coefficient of the input mask and output mask of the AES S-box, respectively, x and y, and the Boolean function S is defined as follows R (x,y):

[0116]

[0117] Let A = {(x,y)|S R (x,y)=1}, and there is a set of m inequalities is a complete characterization of A, introducing a positive integer and binary variable Q, then the equivalent characterization of A is

[0118]

[0119] When using the maximum value 2 -3 When the advantage of the AES S-box in LAT is not 0 and not 1, the rough advantage of the AES S-box can be calculated as

[0120] Assume that the input mask and output mask of MixColumns in the AES round function are a, b, 32-dimensional column vectors respectively. Then let the 32×64-order binary matrix A = (E|M T )=(A i,j ), where E is a 32×32 identity matrix, and a 32-dimensional integer variable is introduced The equivalent description of the MixColumns operation is the following 32 equations:

[0121]

[0122] In addition, it can be extended to any linear transformation P:GF(2 n )→GF(2 n ), that is, the modeling of linear transformation essentially requires the characterization of masks a and b to satisfy a=P T b. Corollary 1 gives the equivalent characterization conditions for arbitrary linear transformations.

[0123] Assume that the input mask and output mask of the linear transformation P are a,b∈GF(2 n ), let the n×n binary matrix P be the matrix representation of the linear transformation P, let the n×2n binary matrix B = (E|P T )=(B i,j ), where E is the 32×32 identity matrix, and then let the 2n-dimensional column vector Introducing n-dimensional integer variables Then the equivalent characterization of the linear transformation P is the following n equations:

[0124]

[0125] Modeling 12 AES Sboxes requires the introduction of 12 binary auxiliary variables Q i [j]∈GF(2),1≤i≤3,1≤j≤4, then the rough advantages of these 12 S-boxes can be calculated as The linear transformation modeling method can give masks aα, bα, cα, Γα, Λα, aα respectively. -1 ,bα -1 ,cα -1 ,Γα -1 ,Λα -1 The modeling of XOR operation and MixColumns requires the introduction of auxiliary variables Φ7, Φ8, …, Φ 25 ∈GF(2 32 ) characterizes linear transformations, XOR, and MixColumns operations.

[0126] According to formula (11), for the first three modulo 2 32The advantage of adding the linear approximation and the advantage of the first S-function linear approximation need to be calculated twice. In order to search for the maximum value of the advantage of the linear approximation single chain of the SNOW 2.0 distinguisher, the following MILP model can be established:

[0127]

[0128]

[0129] Use the Gurobi solver to solve the above model. When the solver returns a solution

[0130] (a,b,c,Γ,Λ)=(x1,x2,x3,x4,x5),

[0131] Adding the following constraints to the model can eliminate this solution and then search for other solutions.

[0132]

[0133] For the solution (a, b, c, Γ, Λ) returned by the model, the exact value c of the SNOW 2.0 discriminator correlation coefficient needs to be calculated using formula (10): SNOW 2.0 (a, b, c, Γ, Λ), and according to formula (10), we need to calculate the correlation coefficient ρ f (Γ,Λ→Φ) and ρ A3 (Γ1, Γ2, Γ3→Γ0), the following gives the correlation coefficient ρ respectively. f (Γ,Λ→Φ) and ρ A3 (Γ1,Γ2,Γ3→Γ0) has a fast calculation method with linear time complexity.

[0134] Let function The input mask and output mask are Γ1,Γ2∈GF(2 32 ) and Γ0∈GF(2 32 ),in, make Then there is

[0135]

[0136] in, for some 2×2 precomputed matrices.

[0137] Assume three input modulo 2 n The input mask and output mask of addition are Γ1, Γ2, Γ3∈GF(2 n ) and Γ0∈GF(2 n ),make Then three input modulo 2 n The correlation coefficient of the linear approximation is

[0138] ρ A3 (Γ1,Γ2,Γ3→Γ0)=(1,1,1)×A u[n-1] ×A u[n-2] ×…A u[0] ×(1,0,0) T ,

[0139] Among them, A i ,0≤i≤15 is the following 3×3 matrix.

[0140]

[0141] The following formula can be used to calculate c FSM (a, b, c, Γ, Λ) has a fast calculation method with linear time complexity, which is specifically expressed as:

[0142] c FSM (a,b,c,Γ,Λ)=ρ f (a,Λ→Γ)ρ A3 (b,c,Γ→Λ),

[0143] According to formula (10), traverse the intermediate mask d∈GF(2 32 ), we can accurately calculate the exact correlation coefficient c of the SNOW 2.0 discriminator (9) under a given mask (a, b, c, Γ, Λ) SNOW 2.0 (a,b,c,Γ,Λ).

[0144] The above MILP model is solved using the Gurobi solver. The model returns the maximum solution of the single-chain advantage of the linear approximation of the SNOW 2.0 discriminator as 2 -75 , Table 1 gives the top three maximum solutions and the specific values ​​of the mask. Note that the S-box modeling here is a rough modeling, and its non-0 and non-1 advantages are all taken as the maximum advantage 2 -3 , and the actual advantage may not be that great.

[0145] Table 1 The top three largest solutions of the single-chain advantage of the SNOW 2.0 distinguisher and the specific values ​​of the mask

[0146]

[0147] For the above three linear approximation masks a, b, c, Γ, Λ, we traverse the intermediate mask d respectively and use formula (10) to calculate the correlation coefficient c of the SNOW 2.0 discriminator: SNOW 2.0(a, b, c, Γ, Λ), Table 2 gives the exact comparison of the advantages of these three distinguishers. From the results, it can be seen that the advantage of the improved linear distinguisher in the prior art is 2 -86.139 , instead of 2 -85.89 However, the advantages of the remaining two distinguishers calculated using the existing method of improving the linear distinguisher are different from the exact advantages.

[0148] Table 2 SNOW 2.0 discriminators and their advantages

[0149]

[0150] ★ represents the result calculated by the existing improved linear discriminator method, that is, the mask d is fixed to d = 0 in formula (10).

[0151] After observation, it is found that when Γ=Λ=a=b=c∈GF(2 n ) / {0}, the SNOW 2.0 distinguisher has a greater advantage. Therefore, we can exhaustively enumerate this type of distinguisher, and there are 2 32 -1. When calculating the correlation coefficient of each discriminator, it is necessary to exhaustively enumerate 2 32 There are d masks, so the total exhaustive complexity is 2 64 , which is computationally infeasible. In order to reduce the exhaustive complexity, the calculation formula (10) is rewritten as

[0152] c SNOW 2.0 (Γ)=c1 Γ ×c2 Γ , (12)

[0153] in

[0154]

[0155] Since mask d needs to satisfy

[0156]

[0157] According to module 2 n The properties of the linear approximation show that the mask and mask The highest non-zero bit position of must be the same. At this time, the exhaustive complexity of mask d can be reduced by these two constraints. Let mask Γα and mask Γα -1 The highest non-zero bit positions of are loc1 and loc2 respectively, so the exhaustive enumeration of d is no more than According to as well as Available,

[0158] For a stream cipher with a key of 128 bits, the advantage of the effective distinguisher should be higher than 2 -64 , that is, satisfying |c1 Γ ×c2 Γ |≥2 -64 , so we need to satisfy the following condition (13)

[0159]

[0160] After calculation, only 24776≈2 14.60 The mask Γ satisfies condition (13), and then exhaustively enumerates d, and uses formula (12) to calculate the advantage c SNOW 2.0 (Γ), the time complexity does not exceed 2 14.60+31 =2 45.60 The results show that only 6 SNOW2.0 discriminators have an advantage greater than 2 -90 , Table 3 gives the specific results. From Table 3, it can be seen that the maximum advantage of this type of distinguisher is 2 -86.139 Therefore, the time complexity and data complexity required to distinguish attacks are both 2 172.28 Among the six discriminators, only the second discriminator has the same exact correlation coefficient as the result calculated by the improved linear discriminator method. In addition, for the third discriminator, the exact correlation coefficient is quite different from the result calculated by the improved discriminator. This shows that the correlation coefficient plays a major role in the middle path of d≠0, while the correlation coefficients of the remaining discriminators play a major role in the middle path of d=0. Therefore, the new calculation formula calculates the correlation coefficient of the discriminator more accurately.

[0161] Table 3 Advantages greater than 2 -90 The SNOW 2.0 Differentiator and Its Advantages

[0162]

[0163]

[0164] ★ represents the result calculated by the improved linear discriminator method, that is, the mask d is fixed to d = 0 in formula (10).

[0165] The above analysis shows that this solution can solve the problem of unreasonable independence assumption in the previous SNOW 2.0 distinguisher, and the advantage of correcting the current best distinguisher is 2 -86.139 , instead of 2 -85.89 Finally, by exhaustively enumerating a class of SNOW 2.0 distinguishers, the largest advantage that can be found is still 2 -86.139 Therefore, the time / data complexity of the scheme to distinguish attacks in this case is 2 172.28, which can more accurately calculate the correlation coefficient of the distinguisher and improve the effectiveness of the security analysis of the sequence cipher algorithm.

[0166] Furthermore, based on the above method, an embodiment of the present invention also provides a linear differentiation attack evaluation system for a sequence cipher algorithm SNOW2.0, comprising: a register variable equivalence module, a linear approximation establishment module, a distinguisher acquisition module and a distinguisher evaluation module, wherein:

[0167] The register variable equivalent module is used to establish the linear feedback shift register variable equivalent relationship by using the state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm;

[0168] A linear approximation establishment module, used for establishing a linear approximation of a key stream and a linear feedback shift register variable by using a finite state machine linear approximation in a SNOW2.0 sequence cipher algorithm at a specified time, wherein the specified time includes a plurality of different times;

[0169] A discriminator acquisition module is used to bring the linear feedback shift register variable equivalence relationship into the linear approximation and establish a discriminator containing only the key stream output sequence;

[0170] The discriminator evaluation module is used to calculate the exact correlation coefficient of the discriminator by searching for the maximum advantage of the linear approximation single chain in the discriminator.

[0171] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0172] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0173] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.

[0174] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.

[0175] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A linear differentiation attack evaluation method for a stream cipher algorithm SNOW2.0, characterized in that: Include: The state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm is used to establish the equivalent relationship of the linear feedback shift register variables. A linear approximation of a key stream and a linear feedback shift register variable is established by using a finite state machine linear approximation in a SNOW2.0 sequence cipher algorithm at a specified time, wherein the specified time includes a plurality of different times; The linear feedback shift register variable equivalence relation is brought into the linear approximation to establish a discriminator that only contains the key stream output sequence; The discriminator correlation coefficient is obtained by searching for the maximum advantage of a linear approximation to a single chain in the discriminator.

2. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 1 is characterized in that: The state update function of the linear feedback shift register is expressed as: Among them, α,α -1 is the state update coefficient, and α,α -1 ∈GF(2 32 ), GF(2 32 ) is a 32-dimensional extension field on the binary field GF(2), and t is the time.

3. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 2 is characterized in that: The equivalent relationship of the linear feedback shift register variable is expressed as: Among them, Γ, Λ, a, b, c are 32-bit masks.

4. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 3 is characterized in that: Build a linear approximation of the key stream and the linear feedback shift register variables, including: Obtain a key stream at a specified time, where the specified time includes t+2, t+16, t, and t+11; According to the mask and the key stream at the specified time, a linear approximation equation between the key stream at the corresponding time and the register variable is constructed by using a linear feedback shift register state update function; The linear approximation equation between the key stream and the register variable at the specified time is XORed, and the linear approximation of the key stream and the linear feedback shift register variable is established according to the nonlinear function in the XOR operation result.

5. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 1 or 4, characterized in that: Create a discriminator that contains only the keystream output sequence, including: The linear feedback shift register variable equivalence relation is brought into the linear approximation, and the linear feedback shift register variables in the linear approximation of the key stream and the linear feedback shift register variables are eliminated by using the linear feedback shift register variable equivalence relation to establish a discriminator containing only the key stream output sequence.

6. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 1 is characterized in that: The discriminator correlation coefficient is obtained by searching for the maximum advantage of a linear approximation single chain in the discriminator, including: Establish a MILP model of a single chain of linear approximation of the discriminator containing only the key stream output sequence; The Gurobi solver is used to solve the MILP model and search for the maximum value of the linear approximation single chain. For the maximum value searched by the MILP model, the discriminator correlation coefficient is calculated based on the mask.

7. The linear differentiation attack evaluation method for the stream cipher algorithm SNOW2.0 according to claim 6 is characterized in that: Build a MILP model, including: Obtain a linear approximation single chain of each finite state machine in the distinguisher, the single chain comprising three modulo 2 32 The linear approximation of addition and the linear approximation of an S function; According to the linear approximation single chain of each finite state machine, each module 2 is established 32 MILP model for linear approximation of additive S-box functions.

8. A linear differentiation attack evaluation system for the stream cipher algorithm SNOW2.0, characterized in that: It includes: register variable equivalent module, linear approximation establishment module, distinguisher acquisition module and distinguisher evaluation module, among which, The register variable equivalent module is used to establish the linear feedback shift register variable equivalent relationship by using the state update function of the linear feedback shift register in the SNOW2.0 sequence cipher algorithm; A linear approximation establishment module, used for establishing a linear approximation of a key stream and a linear feedback shift register variable by using a finite state machine linear approximation in a SNOW2.0 sequence cipher algorithm at a specified time, wherein the specified time includes a plurality of different times; A discriminator acquisition module is used to bring the linear feedback shift register variable equivalence relationship into the linear approximation and establish a discriminator containing only the key stream output sequence; The discriminator evaluation module is used to obtain the discriminator correlation coefficient by searching for the maximum advantage of a linear approximation single chain in the discriminator.

9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.