A network coding method to prevent eavesdropping attacks and pollution attacks
By using encryption matrices and pseudo-random functions generated by finite fields in network coding, combined with the collaborative work of information sources, information sinks and intermediate nodes, multiple protections against inter-generation pollution, label pollution and eavesdropping attacks are achieved, solving the existing technology problems. The singleness of the central defense attack plan and the high security risks have enhanced the security of the network.
Patent Information
- Application Number
- CN202111432346.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-11-29
AI Technical Summary
Existing network coding solutions are too single in terms of attack prevention and cannot effectively prevent eavesdropping attacks and pollution attacks. In particular, they cannot prevent intergenerational pollution and label pollution attacks at the same time, resulting in greater security risks.
The encryption matrix and pseudo-random function based on finite fields are used to generate the key matrix and signature sub-matrix. Through the collaborative work of the source node, intermediate node and sink node, the data packet is encrypted, verified and re-encoded, and the constant zero space is used. The inner product prevents inter-generation pollution and tag pollution, while hiding the encryption matrix in the product of the key sub-matrix and the signature sub-matrix to prevent eavesdropping attacks.
It achieves multiple protections against inter-generation pollution, label pollution and eavesdropping attacks, can effectively track and block malicious pollution nodes, reduces the probability of success of pollution and eavesdropping, and enhances network security.
Smart Images

Figure CN114430320B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of communication technology, and in particular to a network coding method that is resistant to eavesdropping attacks and pollution attacks. Background Art
[0002] Network coding has revolutionized the traditional way of storing and forwarding network data, allowing intermediate nodes to re-encode data packets before forwarding, so that the network throughput can reach the maximum flow-minimum cut. However, due to the re-encoding characteristics of network coding, network nodes are vulnerable to security attacks, mainly pollution attacks and eavesdropping attacks. If pollution attacks are not stopped, pollution will spread in the network, causing the destination node to be unable to correctly decode the data packet, and even causing the network to paralyze; if eavesdropping attacks are not prevented, it will cause the leakage of important original information of the network. Anti-pollution attacks mainly include solutions based on error correction codes, pollution attack detection or malicious pollution node positioning. Anti-eavesdropping attacks mainly include r-secure network coding schemes, strong r-secure network coding schemes and weakly secure network coding schemes.
[0003] The anti-attack solutions in existing network coding schemes are mostly simple, and most of them only have one of the functions of preventing eavesdropping attacks and preventing pollution attacks. Many schemes even simply have the ability to prevent one type of pollution attack, such as inter-generation pollution and label pollution, and do not have the ability to prevent eavesdropping attacks. The security risks of actual application are relatively high. Summary of the invention
[0004] This specification provides a network coding method for preventing eavesdropping attacks and pollution attacks, which is used to solve the problem that most anti-attack schemes in network coding schemes are relatively simple.
[0005] In a first aspect, an embodiment of the present specification provides a network coding method for preventing eavesdropping attacks and pollution attacks, including:
[0006] The key distribution center generates an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on the selected finite field;
[0007] The key distribution center sends the key matrix, the first pseudo-random function, the fourth pseudo-random function, the first pseudo-random number and the pseudo-random vector to the source node; sends a row Γ of the key matrix to the intermediate node j , the fourth pseudo-random function and one k of the pseudo-random vectors j ; Sending the key matrix, the pseudo-random vector, the first pseudo-random function, the second pseudo-random function, the third pseudo-random function, and the fourth pseudo-random function to each sink node;
[0008] The source node determines the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number; generates the second signature submatrix based on the key matrix, the information after the θ-th generation original information is encrypted and the coding coefficient is added, and the inner product of the key matrix and the θ-th generation new information; generates new information based on the information after the θ-th generation original information is encrypted and the coding coefficient is added, the first signature submatrix, and the second signature submatrix, and encodes it into a data packet and sends it to the downstream node, where the inner product of the key matrix and the θ-th generation new information is equal to the product of the first pseudo-random function and the second pseudo-random function, and is a matrix with the same row elements;
[0009] The intermediate node is based on Γ j , the fourth pseudo-random function and k j Verify the correctness of the data packet, and re-encode the data packet and send it to a downstream node when the data packet passes the verification;
[0010] The destination node verifies the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, and tracks the malicious contaminated node when the data packet fails the verification; if the data packet passes the verification, the data packet is decoded based on the first pseudo-random function.
[0011] Optionally, the step of generating an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field includes:
[0012] Selecting a first pseudo-random number p, a second pseudo-random number λ2 and a third pseudo-random number λ3 from the finite field;
[0013] Based on p and the first pseudo-random function, generate m-1 mutually different pseudo-random numbers p1, p2, ..., p m-1 , and based on p1,p2,...,p m-1 Generate an m×m-order encryption matrix P;
[0014] Generate m-1 different pseudo-random numbers λ based on λ2 21 ,λ 22 ,...,λ 2(m-1) , and based on λ 21 ,λ 22 ,...,λ 2(m-1) , generate the second key submatrix Γ2 of order r×m, r>m, r is the number of intermediate nodes;
[0015] Generate r-1 different pseudo-random numbers λ based on λ3 31 ,λ 32,...,λ 3(r-1) , and based on λ 31 ,λ 32 ,...,λ 3(r-1) Generate a third key submatrix Γ3 of order r×r;
[0016] Based on the finite field, randomly generate a first key submatrix Γ1 of order r×(m+n);
[0017] Based on Γ1, Γ2 and Γ3, a key matrix Γ is generated.
[0018] Optionally, the step of generating an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field includes:
[0019] Randomly select r values from the finite field to generate the pseudo-random vector K;
[0020] Generate r×m-order matrix Each element in is the same and is a constant F1 is the second pseudo-random function, id θ is the number of the θth generation original letter;
[0021] Generate an r×r-order matrix β with different and non-zero diagonal elements and all zero off-diagonal elements θ , β θ,jj =F2(k j ,id θ ), β θ,jj β θ The j-th row and j-th column of , F2 is the third pseudo-random function;
[0022] Generate r×m-order matrix Y θ The elements in the same row of
[0023] y θ,j =F3(F1(k j ,id θ ),F2(k j ,id θ ))=F1(k j ,id θ )F2(k j ,id θ ), F3 is the fourth pseudo-random function.
[0024] Optionally, determining the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number includes:
[0025] The first signature submatrix σ is determined by the following formula θ,1 :
[0026] make but ∑x ij =p;
[0027] Among them, X is an m×m matrix, x ij is the element in row i and column j of X.
[0028] Optionally, determining the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number includes:
[0029] The first signature submatrix σ is determined by the following formula θ,1 :
[0030] make but
[0031] Optionally, generating a second signature submatrix based on the key matrix, information obtained by adding coding coefficients to encrypted θ-th generation original information, the inner product of the key matrix and θ-th generation new information includes:
[0032] The source node has the original information of the θth generation Encrypted
[0033] right Adding the coding factor I yields
[0034] Based on the first signature submatrix σ θ,1 , the first key sub-matrix, the second key sub-matrix, the third key sub-matrix, and the inner product of the key matrix and the θth generation new information to determine the second signature submatrix;
[0035] Add a signature based on the first signature sub-matrix and the second signature sub-matrix to obtain new information.
[0036] Optionally, the generating new information based on the information after adding the coding coefficient after encrypting the θ-th generation original information, the first signature submatrix, and the second signature submatrix includes:
[0037] New information θ,0 =[U θ σ θ,1 σ θ,2 ], and satisfy
[0038] Optionally, the Γ-basedj , the fourth pseudo-random function and k j Verifying the correctness of the data packet includes:
[0039] verify
[0040] whether it is established;
[0041] If true, the verification is successful and the data packet is received; otherwise, the data packet is determined to be contaminated and discarded;
[0042] Among them, U θ,(i-1)d N j The packet vector received from the input link d, ⊙ represents any operator of addition, subtraction, multiplication and division, i ≥ 1 and is an odd number.
[0043] Optionally, verifying the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function, and the pseudo-random vector, and tracing the malicious contaminated node when the data packet fails the verification, includes:
[0044] The sink node receives the data packet U θ,(2(r+h))d , verified
[0045]
[0046] Is it true? If not, the data packet is considered to be contaminated, fails the verification, and is discarded; otherwise, it is accepted;
[0047] When the data packet fails the verification, F2(k j ,id θ ),j=1,...,r determines β θ ;
[0048] In all
[0049]
[0050] In the example, the node corresponding to the established row key calculation is a malicious contaminated node.
[0051] Optionally, decoding the data packet based on the first pseudo-random function includes:
[0052] based on We get p = ∑x ij , using p and the first pseudo-random function, we get P;
[0053] Based on P, get the original information or,
[0054] based on get
[0055] In a second aspect, the embodiments of this specification also provide a network coding system for preventing eavesdropping attacks and pollution attacks, including: a key distribution center, a source node, an intermediate node and a destination node, wherein:
[0056] The key distribution center is used to generate an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field;
[0057] The key distribution center is further used to send the key matrix, the first pseudo-random function, the fourth pseudo-random function, the first pseudo-random number and the pseudo-random vector to the source node; send a row Γ of the key matrix to the intermediate node j , the fourth pseudo-random function and one k of the pseudo-random vectors j ; Sending the key matrix, the pseudo-random vector, the first pseudo-random function, the second pseudo-random function, the third pseudo-random function, and the fourth pseudo-random function to each sink node;
[0058] The source node is used to determine the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number; generate the second signature submatrix based on the key matrix, the information after the θ-th generation original information is encrypted and the coding coefficient is added, and the inner product of the key matrix and the θ-th generation new information; generate new information based on the information after the θ-th generation original information is encrypted and the coding coefficient is added, the first signature submatrix, and the second signature submatrix, encode it into a data packet and send it to the downstream node, and the inner product of the key matrix and the θ-th generation new information is equal to the product of the first pseudo-random function and the second pseudo-random function, which is a matrix with the same row elements;
[0059] The intermediate node is used based on Γ j , the fourth pseudo-random function and k j Verify the correctness of the data packet, and re-encode the data packet and send it to a downstream node when the data packet passes the verification;
[0060] The destination node is used to verify the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, and track the malicious contaminated node when the data packet fails the verification; if the data packet passes the verification, the data packet is decoded based on the first pseudo-random function.
[0061] Optionally, the key distribution center is specifically used for:
[0062] Selecting a first pseudo-random number p, a second pseudo-random number λ2 and a third pseudo-random number λ3 from the finite field;
[0063] Based on p and the first pseudo-random function, generate m-1 mutually different pseudo-random numbers p1, p2, ..., p m-1 , and based on p1,p2,...,p m-1 Generate an m×m-order encryption matrix P;
[0064] Generate m-1 different pseudo-random numbers λ based on λ2 21 ,λ 22 ,...,λ 2(m-1) , and based on λ 21 ,λ 22 ,...,λ 2(m-1) , generate the second key submatrix Γ2 of order r×m, r>m, r is the number of intermediate nodes;
[0065] Generate r-1 different pseudo-random numbers λ based on λ3 31 ,λ 32 ,...,λ 3(r-1) , and based on λ 31 ,λ 32 ,...,λ 3(r-1) Generate a third key submatrix Γ3 of order r×r;
[0066] Based on the finite field, randomly generate a first key submatrix Γ1 of order r×(m+n);
[0067] Based on Γ1, Γ2 and Γ3, a key matrix Γ is generated.
[0068] Optionally, the key distribution center is specifically used for:
[0069] Randomly select r values from the finite field to generate the pseudo-random vector K;
[0070] Generate r×m-order matrix Each element in is the same and is a constant F1 is the second pseudo-random function, id θ is the number of the θth generation original letter;
[0071] Generate an r×r-order matrix β with different and non-zero diagonal elements and all zero off-diagonal elements θ , β θ,jj =F2(k j ,id θ ), β θ,jj β θ The j-th row and j-th column of , F2 is the third pseudo-random function;
[0072] Generate r×m-order matrix Y θ The elements in the same row of
[0073] y θ,j =F3(F1(k j ,id θ ),F2(k j ,id θ ))=F1(k j ,id θ )F2(k j ,id θ ), F3 is the fourth pseudo-random function.
[0074] Optionally, the information source node is specifically used for:
[0075] The first signature submatrix σ is determined by the following formula θ,1 :
[0076] make but ∑x ij =p;
[0077] Among them, X is an m×m matrix, x ij is the element in row i and column j of X.
[0078] Optionally, the information source node is specifically used for:
[0079] The first signature submatrix σ is determined by the following formula θ,1 :
[0080] make but
[0081] Optionally, the information source node is specifically used for:
[0082] The source node has the original information of the θth generation Encrypted
[0083] right Adding the coding factor I yields
[0084] Based on the first signature submatrix σ θ,1 , the first key sub-matrix, the second key sub-matrix, the third key sub-matrix, and the inner product of the key matrix and the θth generation new information to determine the second signature submatrix;
[0085] Add a signature based on the first signature sub-matrix and the second signature sub-matrix to obtain new information.
[0086] Optionally, the information source node is specifically used for:
[0087] New information θ,0 =[U θ σ θ,1 σ θ,2 ], and satisfy
[0088] Optionally, the intermediate node is specifically used for:
[0089] verify
[0090] whether it is established;
[0091] If true, the verification is successful and the data packet is received; otherwise, the data packet is determined to be contaminated and discarded;
[0092] Among them, U θ,(i-1)d N j The packet vector received from the input link d, ⊙ represents any operator of addition, subtraction, multiplication and division, i ≥ 1 and is an odd number.
[0093] Optionally, the sink node is specifically used for:
[0094] The sink node receives the data packet U θ,(2(r+h))d , verified
[0095]
[0096] Is it true? If not, the data packet is considered to be contaminated, fails the verification, and is discarded; otherwise, it is accepted;
[0097] When the data packet fails the verification, F2(k j ,id θ ),j=1,...,r determines β θ ;
[0098] In all
[0099]
[0100] In the example, the node corresponding to the established row key calculation is a malicious contaminated node.
[0101] Optionally, the sink node is specifically used for:
[0102] based on We get p = ∑x ij , using p and the first pseudo-random function, we get P;
[0103] Based on P, get the original information or,
[0104] based on get
[0105] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0106] Not only does it use the constant zero space inner product to prevent inter-generation pollution attacks, label pollution attacks and tracking of malicious pollution nodes, but it also encrypts the non-coded coefficient information with a matrix. The encryption matrix is hidden in the sum of the elements of the product matrix of the key submatrix and the generation information signature submatrix, which can prevent eavesdropping attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0108] Figure 1 A flowchart of a network coding method based on anti-eavesdropping attack and anti-pollution attack provided in an embodiment of this specification;
[0109] Figure 2 A schematic diagram of a KDC distributing keys, pseudo-random functions, pseudo-random vectors, and pseudo-random numbers provided in an embodiment of this specification. DETAILED DESCRIPTION
[0110] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. 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 making creative work are within the scope of protection of the present application.
[0111] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0112] Figure 1 A flowchart of a network coding method based on anti-eavesdropping attack and pollution attack provided in an embodiment of this specification is shown in FIG. Figure 1 , the method may specifically include the following steps:
[0113] Step 102: The key distribution center generates an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on the selected finite field.
[0114] Wherein, the key matrix includes a first key sub-matrix Γ1, a second key sub-matrix Γ2, and a third key sub-matrix Γ3;
[0115] Step 102 may specifically be:
[0116] Select a large prime number q and determine the finite field F q , the value of q is taken as a larger value when other parameters can be solved and the system calculation and communication overhead are reasonable; a first pseudo-random number p, a second pseudo-random number λ2 and a third pseudo-random number λ3 are selected from the finite field; based on p and the first pseudo-random function F0, m-1 different pseudo-random numbers p1, p2, ..., p are generated m-1 , and based on p1,p2,...,p m-1 Generate an m×m order Vandermonde determinant as the P encryption matrix; generate m-1 different pseudo-random numbers λ on the pseudo-random number generator based on λ2 21 ,λ 22 ,...,λ 2(m-1) , and based on λ 21 ,λ 22 ,...,λ 2(m-1) , generating the m×m order Vandermonde determinant Γ 2(m×m) , then based on Γ 2(m×m) , generate the second key submatrix Γ2 of order r×m, r>m, r is the number of intermediate nodes; based on λ3, generate r-1 different pseudo-random numbers λ on the pseudo-random number generator 31 ,λ 32 ,...,λ 3(r-1) , and based on λ 31 ,λ 32 ,...,λ 3(r-1) Generate a third key submatrix Γ3 of r×r order Vandermonde determinant; based on the finite field, randomly generate a first key submatrix Γ1 of r×(m+n) order; based on Γ1, Γ2 and Γ3, generate a key matrix, specifically, Γ1, Γ2, Γ3 can be combined into an r×(2m+n+r) order key matrix Γ=[Γ1Γ2Γ3].
[0117] Randomly select r values from the finite field to generate the pseudo-random vector K=(k1, k2, ..., k r );Generate r×m-order matrix Each element in is the same and is a constant F1 is the second pseudo-random function, id θ is the serial number of the θth generation original letter; generate a matrix β of order r×r with different and non-zero diagonal elements and all non-zero off-diagonal elements θ , β θ,jj =F2(kj ,id θ ), β θ,jj β θ The jth row and jth column of , F2 is the third pseudo-random function; generate an r×m-order matrix Y θ The elements in the same row of
[0118] y θ,j =F3(F1(k j ,id θ ),F2(k j ,id θ ))=F1(k j ,id θ )F2(k j ,id θ ), F3 is the fourth pseudo-random function, F3 is also id θ , Non-homomorphic encryption function.
[0119] in,
[0120]
[0121]
[0122] Step 104: The key distribution center sends the key matrix, the first pseudo-random function, the fourth pseudo-random function, the first pseudo-random number and the pseudo-random vector to the source node; and sends a row Γ of the key matrix to the intermediate node. j , the fourth pseudo-random function and one k of the pseudo-random vectors j ; Sending the key matrix, the pseudo-random vector, the first pseudo-random function, the second pseudo-random function, the third pseudo-random function, and the fourth pseudo-random function to each sink node;
[0123] KDC distributes keys, pseudo-random functions, pseudo-random vectors or pseudo-random numbers to corresponding nodes through secure channels. For details, see Figure 2 The KDC shown distributes keys Γ, Γ j , pseudo-random number p, pseudo-random functions F0, F1, F2, F3, pseudo-random vector K, pseudo-random number k j .
[0124] KDC sends the key matrix Γ, pseudo-random functions F0, F3, pseudo-random number p, and pseudo-random vector K to the source node for encrypting the original data or generating a signature; it sends a row of Γ to the intermediate node j. j and pseudo-random function F3, pseudo-random number k jUsed to verify the correctness of data packets;
[0125] The key matrix Γ, pseudo-random vector K and pseudo-random functions F0, F1, F2, F3 are sent to each sink node. Γ, F1, F2, F3 and K are used to verify the data packet and track malicious contaminated nodes, and F0 is used to decrypt the data packet. The pseudo-random number p and pseudo-random function F0 are kept secret from the intermediate nodes; the sink node can calculate p and P using the data packet, Γ and F0; the pseudo-random functions F1 and F2 are embedded in F3, and F1 and F2 are kept secret from the source node and the intermediate nodes.
[0126] Step 106: The source node determines the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number; generates the second signature submatrix based on the key matrix, the information after the θ-th generation original information is encrypted and the coding coefficient is added, and the inner product of the key matrix and the θ-th generation new information; generates new information based on the information after the θ-th generation original information is encrypted and the coding coefficient is added, the first signature submatrix, and the second signature submatrix, and encodes it into a data packet and sends it to the downstream node. The inner product of the key matrix and the θ-th generation new information is equal to the product of the first pseudo-random function and the second pseudo-random function, which is a matrix with the same row elements;
[0127] The following is an expanded description of the steps for encrypting, signing, and encoding data packets at the source node:
[0128] (1) The source node S has the θth generation of original information Encrypted
[0129]
[0130]
[0131] (2) The source node S gives Add the coding factor I to
[0132]
[0133] (3) The source node S generates an m×m-order signature σ θ,1 , recorded as the first signature submatrix
[0134] 1) Implementation method 1 (optimal)
[0135] make Where X is an m×m matrix, x ij is the element in row i and column j of X
[0136] ∑x ij=p, which hides p better, thus hiding the encryption matrix in the sum of the elements of the product matrix of the key submatrix and the information signature submatrix.
[0137] 2) Implementation method 2
[0138] make
[0139]
[0140] (4) The source node S generates an r×r-order signature σ θ,2 , denoted as the second signature submatrix
[0141] This embodiment is further based on the first signature sub-matrix σ θ,1 , the first key sub-matrix, the second key sub-matrix, the third key sub-matrix, And the inner product of the key matrix and the θth generation new information is used to determine the second signature submatrix. The specific calculation method includes:
[0142]
[0143]
[0144] (5) The source node S adds a signature to generate new information U θ,0 =[U θ σ θ,1 σ θ,2 ], which can prevent pollution and eavesdropping
[0145] U θ,0 =[U θ σ θ,1 σ θ,2 ]satisfy
[0146] (6) Source node S encodes U θ,0 Get U θ,1e
[0147] U θ,1e =αU θ,0 ,α=(α1 α2 …α m ), where e represents an output link, α is the local encoding vector of the randomly selected link e, and then U θ,1e Sent to downstream nodes.
[0148] Step 108: The intermediate node is based on Γ j , the fourth pseudo-random function and k j Verify the correctness of the data packet, and re-encode the data packet and send it to a downstream node when the data packet passes the verification;
[0149] The following is an expanded description of the data packet verification and re-encoding process:
[0150] (1) Intermediate node N j Verify data packets to prevent contamination
[0151] Intermediate Node N j Can be verified
[0152]
[0153] (U θ,(i-1)d N j The packet vector received from the input link d) is established to determine whether the packet is contaminated (including inter-generation contamination and label contamination, etc.). If yes, it is discarded, otherwise it is accepted. Among them, for the forged packet of the ordinary label contamination class, the probability of passing the verification is extremely low, and it is discarded if it fails. For the inter-generation contaminated packet The verification formula is as follows:
[0154]
[0155] Among them, ⊙ represents any one of the operators of addition, subtraction, multiplication and division, that is, The probability of passing the verification is also extremely low, and if it fails, it will be discarded.
[0156] (2) Intermediate Node N j Re-encode packets
[0157] Intermediate Node N j (N j , that is, N (i-1) / 2 , where i ≥ 1 and i is an odd number), the matrix U composed of the received data packets θ,(i-1) , re-encoding Pseudo-random number vector η=(η1 η2 …η l ), l is the number of input links, U θ,(i-1)d Represents the intermediate node N j The vector of packets received from input link d, U θ,ie Represents the intermediate node N j The packet vector output from the output link e, η is the local encoding vector of the randomly selected link e.
[0158] Step 110: The destination node verifies the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, and tracks the malicious contaminated node when the data packet fails the verification; if the data packet passes the verification, the data packet is decoded based on the first pseudo-random function.
[0159] The following is an explanation of the data packet verification and decoding process of the sink node:
[0160] (1) Sink Node R h Verify data packets to prevent contamination
[0161] Sink Node R h For the received data packet U θ,(2(r+h))d , you can select a row Γ in Γ j , verified Right now
[0162]
[0163] Is it true? Determine whether the data packet U (2(r+h))d Whether it is contaminated, if yes, discard, otherwise accept. The specific verification method is the same as step 108; wherein r is the number of intermediate nodes, and h is the number of destination nodes.
[0164] (2) If there is a data packet that fails verification, the sink node R h Tracking malicious polluted nodes
[0165] First use F2(k j ,id θ ),j=1,...,r to find β θ , in all
[0166] In the example, the nodes corresponding to the valid row key calculations are malicious polluted nodes, and the nodes corresponding to the invalid row key calculations are honest nodes. The malicious polluted nodes can be tracked and blocked.
[0167] (3) If the data packet is verified, the destination node decodes the data packet to prevent eavesdropping.
[0168] 1) Implementation method 1 (optimal)
[0169] Right now
[0170] The sink node r selects m linearly independent data packet vectors from the received data packet vectors of the θth generation to form the data matrix U θ,2(r+h) , U θ,2(r+h) Will satisfy the formula:
[0171]
[0172] W is U θ,2(r+h) The global encoding coefficient matrix, namely U θ,2(r+h) The first m columns of .
[0173] The sink node r can be obtained by inverting W -1 , and then get U θ,0 =W -1 U θ,2(r+h), and then by U θ,0 Available U θ , and then get Can get p=∑x ij , and then use the pseudo-random function F0 to get p1, p2, ..., p m-1 , and then get P, and then get the original information
[0174] A few malicious intermediate nodes can decode U θ , But can't get Because the entire Γ is obtained through a few keys 2(m×m) The probability of getting X is low, and the probability of getting P is even lower. The probability of success is very low, which can prevent malicious intermediate nodes from successfully eavesdropping on original information with a very high probability.
[0175] 2) Implementation method 2
[0176] Right now
[0177] The sink node r selects m linearly independent data packet vectors from the received data packet vectors of the θth generation to form the data matrix U θ,2(r+h) , U θ,2(r+h) Will satisfy the formula:
[0178]
[0179] W is U θ,2(r+h) The global encoding coefficient matrix, namely U θ,2(r+h) The first m columns of .
[0180] The sink node r can be obtained by inverting W -1 , and then get U θ,0 =W -1 U θ,2(r+h) , and then by U θ,0 Available U θ , and then get The original information can be obtained again
[0181] A few malicious intermediate nodes can decode U θ , But can't get Because the entire Γ is obtained through a few keys 2(m×m) The probability of obtaining P is low, and the probability of eavesdropping on the original information is also low. The probability of success is also low, which can prevent malicious intermediate nodes from successfully eavesdropping on original information with a high probability.
[0182] Compared with most existing network coding security solutions, this solution has more functions and is more comprehensive. It can resist inter-generation pollution, label pollution attacks, locate pollution attack sources, and resist eavesdropping attacks.
[0183] Compared with the existing schemes for preventing pollution attacks and locating collusion attacks on intermediate nodes, the probability of all rows of the key matrix Γ being guessed remains unchanged on the basis of non-disclosure of information (no collusion), and the probability of each generation of information being successfully forged is reduced to 1 / q of the comparison scheme. m , and can also prevent inter-generational pollution attacks and eavesdropping attacks.
[0184] Moreover, compared with the existing homomorphic MAC secure network coding scheme based on null space, the pseudo-random number calculation overhead of this scheme is reduced to 1 / 2 of that of the scheme, while the communication overhead and other calculation overhead increase slightly. It can also locate malicious pollution attack nodes and prevent eavesdropping attacks.
[0185] In this scheme, the probability of each malicious intermediate node in each generation of information successfully attacking the downstream τ intermediate nodes is 1 / q τ+1 , the probability of successful inter-generational contamination attack on the sink node is 1 / q.
[0186] In summary, this scheme uses the constant zero space inner product which is rarely used by predecessors to prevent inter-generation pollution attacks, label pollution attacks and track malicious pollution nodes. Specifically:
[0187] The key distribution center KDC does not change the generated key matrix, and uses the non-homomorphic encryption pseudo-random function of the generation identifier to generate different pseudo-random values for each generation identifier, which are used as different zero space constant products of the key matrix and the information to be signed, and are used for signing and verifying information of different generations. This can prevent malicious intermediate nodes from forging data packet values that meet the verification requirements of the zero space constant product that should be calculated by the homomorphic encryption function based on different generation data packets and zero space constant products, thereby preventing inter-generation contamination;
[0188] Intermediate nodes and sink nodes can use zero space constant product to detect the correctness of data packets and prevent label pollution;
[0189] The sink node can also locate inter-generational pollution, label pollution and malicious pollution nodes by judging whether the product value of each row of the key matrix and the information calculated has a correct relationship with the zero space constant product.
[0190] On the other hand, this solution also integrates information encryption and decryption methods well to prevent eavesdropping attacks:
[0191] The non-coded coefficient information is encrypted with a matrix, and the encryption matrix is hidden in the element sum of the product matrix of the key submatrix and the information signature submatrix in a rarely used way. The source node and the destination node can use the key submatrix, the signature submatrix and the corresponding pseudo-random generation function to obtain the information encryption matrix and decrypt the information. The intermediate node cannot obtain the key submatrix and the corresponding pseudo-random generation function, and thus cannot obtain the information encryption matrix, and cannot eavesdrop on the original information.
[0192] Based on the same invention, this document also provides a network coding system based on anti-eavesdropping attack and pollution attack, see Figure 2 , the system may include: a key distribution center, a source node, an intermediate node and a destination node, wherein:
[0193] The key distribution center is used to generate an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field;
[0194] The key distribution center is further used to send the key matrix, the first pseudo-random function, the fourth pseudo-random function, the first pseudo-random number and the pseudo-random vector to the source node; send a row Γ of the key matrix to the intermediate node j , the fourth pseudo-random function and one k of the pseudo-random vectors j ; Sending the key matrix, the pseudo-random vector, the first pseudo-random function, the second pseudo-random function, the third pseudo-random function, and the fourth pseudo-random function to each sink node;
[0195] The source node is used to determine the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number; generate the second signature submatrix based on the key matrix, the information after the θ-th generation original information is encrypted and the coding coefficient is added, and the inner product of the key matrix and the θ-th generation new information; generate new information based on the information after the θ-th generation original information is encrypted and the coding coefficient is added, the first signature submatrix, and the second signature submatrix, encode it into a data packet and send it to the downstream node, and the inner product of the key matrix and the θ-th generation new information is equal to the product of the first pseudo-random function and the second pseudo-random function, which is a matrix with the same row elements;
[0196] The intermediate node is used based on Γ j , the fourth pseudo-random function and k jVerify the correctness of the data packet, re-encode the data packet and send it to the downstream node when the data packet passes the verification, and discard the polluted data packet when the data packet fails the verification, so as to avoid the spread of pollution and system paralysis caused by the polluted data packet participating in the re-encoding of the downstream node, and effectively prevent pollution attacks;
[0197] The sink node is used to verify the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, discard the polluted data packet that has not passed the verification in the data packet, avoid the polluted data packet participating in the information decoding so that the original information cannot be correctly decoded, and effectively prevent pollution attacks. When the data packet fails to pass the verification, the malicious polluted node is tracked, and the system is notified to shield the malicious polluted node, so as to terminate the pollution attack from the root; if the data packet passes the verification, the data packet is decoded based on the first pseudo-random function, and the intermediate node can decode the encrypted information of the original information similar to the sink node, but the probability of obtaining the complete encryption matrix is extremely low like the sink node, and the probability of decrypting the original information is extremely low, which effectively prevents eavesdropping attacks.
[0198] Optionally, the key distribution center is specifically used for:
[0199] Selecting a first pseudo-random number p, a second pseudo-random number λ2 and a third pseudo-random number λ3 from the finite field;
[0200] Based on p and the first pseudo-random function, generate m-1 mutually different pseudo-random numbers p1, p2, ..., p m-1 , and based on p1,p2,...,p m-1 Generate an m×m-order encryption matrix P;
[0201] Generate m-1 different pseudo-random numbers λ based on λ2 21 ,λ 22 ,...,λ 2(m-1) , and based on λ 21 ,λ 22 ,...,λ 2(m-1) , generate the second key submatrix Γ2 of order r×m, r>m, r is the number of intermediate nodes;
[0202] Generate r-1 different pseudo-random numbers λ based on λ3 31 ,λ 32 ,...,λ 3(r-1) , and based on λ 31 ,λ 32 ,...,λ 3(r-1) Generate a third key submatrix Γ3 of order r×r;
[0203] Based on the finite field, randomly generate a first key submatrix Γ1 of order r×(m+n);
[0204] Based on Γ1, Γ2 and Γ3, a key matrix Γ is generated.
[0205] Optionally, the key distribution center is specifically used for:
[0206] Randomly select r values from the finite field to generate the pseudo-random vector K;
[0207] Generate r×m-order matrix Each element in is the same and is a constant F1 is the second pseudo-random function, id θ is the number of the θth generation original letter;
[0208] Generate an r×r-order matrix β with different and non-zero diagonal elements and all zero off-diagonal elements θ , β θ,jj =F2(k j ,id θ ), β θ,jj β θ The j-th row and j-th column of , F2 is the third pseudo-random function;
[0209] Generate r×m-order matrix Y θ The elements in the same row of
[0210] y θ,j =F3(F1(k j ,id θ ),F2(k j ,id θ ))=F1(k j ,id θ )F2(k j ,id θ ), F3 is the fourth pseudo-random function.
[0211] Optionally, the information source node is specifically used for:
[0212] The first signature submatrix σ is determined by the following formula θ,1 :
[0213] make but ∑x ij =p;
[0214] Among them, X is an m×m matrix, x ij is the element in row i and column j of X.
[0215] Optionally, the information source node is specifically used for:
[0216] The first signature submatrix σ is determined by the following formula θ,1 :
[0217] make but
[0218] Optionally, the information source node is specifically used for:
[0219] The source node has the original information of the θth generation Encrypted
[0220] right Adding the coding factor I yields
[0221] Based on the first signature submatrix σ θ,1 , the first key sub-matrix, the second key sub-matrix, the third key sub-matrix, and the inner product of the key matrix and the θth generation new information to determine the second signature submatrix;
[0222] Add a signature based on the first signature sub-matrix and the second signature sub-matrix to obtain new information.
[0223] Optionally, the information source node is specifically used for:
[0224] New information θ,0 =[U θ σ θ,1 σ θ,2 ], and satisfy
[0225] Optionally, the intermediate node is specifically used for:
[0226] verify
[0227] whether it is established;
[0228] If true, the verification is successful and the data packet is received; otherwise, the data packet is determined to be contaminated and discarded;
[0229] Among them, U θ,(i-1)d N j The packet vector received from the input link d, ⊙ represents any operator of addition, subtraction, multiplication and division, i ≥ 1 and is an odd number.
[0230] Optionally, the sink node is specifically used for:
[0231] The sink node receives the data packet U θ,(2(r+h))d , verified
[0232]
[0233] Is it true? If not, the data packet is considered to be contaminated, fails the verification, and is discarded; otherwise, it is accepted;
[0234] When the data packet fails the verification, F2(k j ,id θ ),j=1,...,r determines β θ ;
[0235] In all
[0236]
[0237] In the example, the node corresponding to the established row key calculation is a malicious contaminated node.
[0238] Optionally, the sink node is specifically used for:
[0239] based on We get p = ∑x ij , using p and the first pseudo-random function, we get P;
[0240] Based on P, get the original information or,
[0241] based on get
[0242] On the one hand, this system uses the less commonly used constant zero space inner product to simultaneously prevent inter-generational pollution attacks, label pollution attacks and tracking of malicious pollution nodes; on the other hand, this scheme also integrates information encryption and decryption methods well to prevent eavesdropping attacks.
[0243] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0244] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0245] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0246] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0247] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0248] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0249] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0250] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0251] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0252] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A network coding method for preventing eavesdropping attacks and pollution attacks, characterized in that: include: The key distribution center generates an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on the selected finite field; The key distribution center sends the key matrix, the first pseudo-random function, the fourth pseudo-random function, the first pseudo-random number and the pseudo-random vector to a source node; Send a row of the key matrix Γ to the intermediate node j , the fourth pseudo-random function and one k of the pseudo-random vectors j ; Sending the key matrix, the pseudo-random vector, the first pseudo-random function, the second pseudo-random function, the third pseudo-random function, and the fourth pseudo-random function to each sink node; The source node determines a first signature submatrix based on a second key submatrix in the key matrix and the first pseudo-random number; Generate a second signature submatrix based on the key matrix, information after the θth generation original information is encrypted and the coding coefficient is added, and the inner product of the key matrix and the θth generation new information; generate new information based on the information after the θth generation original information is encrypted and the coding coefficient is added, the first signature submatrix, and the second signature submatrix, encode it into a data packet and send it to the downstream node, and the inner product of the key matrix and the θth generation new information is equal to the product of the first pseudo-random function and the second pseudo-random function, which is a matrix with the same row elements; The intermediate node is based on Γ j , the fourth pseudo-random function and k j Verify the correctness of the data packet, and re-encode the data packet and send it to a downstream node when the data packet passes the verification; The sink node verifies the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, and tracks the malicious contamination node when the data packet fails the verification; If the data packet passes the verification, decoding the data packet based on the first pseudo-random function; The method of generating an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field includes: Selecting a first pseudo-random number p, a second pseudo-random number λ2 and a third pseudo-random number λ3 from the finite field; Based on p and the first pseudo-random function, generate m-1 mutually different pseudo-random numbers p1, p2, ..., p m-1 , and based on p1,p2,...,p m-1 Generate an m×m-order encryption matrix P; Generate m-1 different pseudo-random numbers λ based on λ2 21 ,λ 22 ,...,λ 2(m-1) , and based on λ 21 ,λ 22 ,...,λ 2(m-1) , generate the second key submatrix Γ2 of order r×m, r>m, r is the number of intermediate nodes; Generate r-1 different pseudo-random numbers λ based on λ3 31 ,λ 32 ,...,λ 3(r-1) , and based on λ 31 ,λ 32 ,...,λ 3(r-1) Generate a third key submatrix Γ3 of order r×r; Based on the finite field, randomly generate a first key submatrix Γ1 of order r×(m+n); Based on Γ1, Γ2 and Γ3, generate a key matrix Γ; The method of generating an encryption matrix, a key matrix, a pseudo-random vector, a first pseudo-random function, a second pseudo-random function, a third pseudo-random function, a fourth pseudo-random function, a key matrix, and an inner product of the key matrix and the θth generation new information based on a selected finite field includes: Randomly select r values from the finite field to generate the pseudo-random vector K; Generate r×m-order matrix Each element in is the same. constant, F1 is the second pseudo-random function, id θ is the serial number of the θth generation original information; Generate an r×r-order matrix β with different and non-zero diagonal elements and all zero off-diagonal elements θ , β θ,jj =F2(k j ,id θ ), β θ,jj β θ The j-th row and j-th column of , F2 is the third pseudo-random function; Generate r×m-order matrix Y θ The elements in the same row are the same, all of which are y θ,j =F3(F1(k j ,id θ ),F2(k j ,id θ ))=F1(k j ,id θ )F2(k j ,id θ ), F3 is the fourth pseudo-random function, k j It refers to pseudo-random numbers; The step of determining the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number includes: The first signature submatrix σ is determined by the following formula θ,1 : make but Among them, X is an m×m matrix, x ij is the element in row i and column j in X; The step of determining the first signature submatrix based on the second key submatrix in the key matrix and the first pseudo-random number includes: The first signature submatrix σ is determined by the following formula θ,1 : make but The method of generating a second signature submatrix based on the key matrix, information obtained by adding coding coefficients to the encrypted θ-th generation original information, the inner product of the key matrix and the θ-th generation new information includes: The source node has the original information of the θth generation Encrypted right Adding the coding factor I yields Based on the first signature submatrix σ θ,1 , the first key sub-matrix, the second key sub-matrix, the third key sub-matrix, and the inner product of the key matrix and the θth generation new information to determine the second signature submatrix; The new information is generated based on the information encrypted after adding the coding coefficients to the θ-th generation original information, the first signature sub-matrix, and the second signature sub-matrix, including: New information θ,0 =[U θ σ θ,1 σ θ,2 ], and satisfy Among them, the j , the fourth pseudo-random function and k j Verifying the correctness of the data packet includes: verify whether it is established; If true, the verification is successful and the data packet is received; otherwise, the data packet is determined to be contaminated and discarded; Among them, U θ,(i-1)d N j The vector of packets received from the input link d represents any operator of addition, subtraction, multiplication and division, i ≥ 1 and is an odd number; The verifying the data packet based on the key matrix, the second pseudo-random function, the third pseudo-random function, the fourth pseudo-random function and the pseudo-random vector, and tracking the malicious contaminated node when the data packet fails the verification, includes: The sink node receives the data packet U θ,(2(r+h))d , verified Is it true? If not, the data packet is considered to be contaminated, fails the verification, and is discarded; otherwise, it is accepted; When the data packet fails the verification, F2(k j ,id θ ),j=1,…,r determines β θ ; In all In , the node corresponding to the established row key calculation is a malicious contaminated node; Wherein, decoding the data packet based on the first pseudo-random function includes: based on We get p = Σx ij , using p and the first pseudo-random function, we get P; based on P, we get the original information or, based on get
Citation Information
Patent Citations
Theft-prevention and pollution prevention network coding method
CN101267277A
Anti-pollution network encoding method based on probability detection
CN101714910A
Message authentication code and probability secret key distribution mechanism-based anti-pollution network coding method
CN103746770A
All-purpose attack resistant security network encoding method based on homomorphic linear subspaces signature
CN107154855A
Network coding signature method capable of preventing pollution attacks and positioning intermediate node collusion attacks
CN110166247A
