Network coding has been shown to optimally use bandwidth in a network, maximizing information flow but the scheme is very inherently vulnerable to pollution attacks by malicious nodes in the network. A node injecting garbage can quickly affect many receivers. The pollution of network packets spreads quickly since the output of (even an) honest node is corrupted if at least one of the incoming packets is corrupted. An attacker can easily corrupt a packet even if it is encrypted by either forging the signature or by producing a collision under the hash function. This will give an attacker access to the packets and the ability to corrupt them. Denis Charles, Kamal Jain and Kristin Lauter designed a new homomorphic encryption signature scheme for use with network coding to prevent pollution attacks. The homomorphic property of the signatures allows nodes to sign any linear combination of the incoming packets without contacting the signing authority. In this scheme it is computationally infeasible for a node to sign a linear combination of the packets without disclosing what linear combination was used in the generation of the packet. Furthermore, we can prove that the signature scheme is secure under well known cryptographic assumptions of the hardness of the discrete logarithm problem and the computational Elliptic curve Diffie–Hellman.
Network coding Let G=(V,E) be a directed graph where V is a set, whose elements are called vertices or nodes, and E is a set of ordered pairs of vertices, called arcs, directed edges, or arrows. A source s∈V wants to transmit a file D to a set T⊆V of the vertices. One chooses a vector space W/𝔽p(say of dimension d), where p is a prime, and views the data to be transmitted as a bunch of vectors w1,…,wk∈W. The source then creates the augmented vectors v1,…,vk by setting vi=(0,…,0,1,…,0,wi1,…,wid) where wij is the j-th coordinate of the vector wi. There are (i−1) zeros before the first '1' appears in vi. One can assume without loss of generality that the vectors vi are linearly independent. We denote the linear subspace (of 𝔽pk+d ) spanned by these vectors by V . Each outgoing edge e∈E computes a linear combination, y(e), of the vectors entering the vertex v=in(e) where the edge originates, that is to say
y(e)=∑f:out(f)=v(me(f)y(f)) where me(f)∈𝔽p. We consider the source as having k input edges carrying the k vectors wi. By induction, one has that the vector y(e) on any edge is a linear combination y(e)=∑1≤i≤k(gi(e)vi) and is a vector in V . The k-dimensional vector g(e)=(g1(e),…,gk(e)) is simply the first k coordinates of the vector y(e). We call the matrix whose rows are the vectors g(e1),…,g(ek), where ei are the incoming edges for a vertex t∈T, the global encoding matrix for t and denote it as Gt. In practice the encoding vectors are chosen at random so the matrix Gt is invertible with high probability. Thus, any receiver, on receiving y1,…,yk can find w1,…,wk by solving
[y′y2′⋮yk′]=Gt[w1w2⋮wk] where the yi′ are the vectors formed by removing the first k coordinates of the vector yi.
Decoding at the receiver Each receiver, t∈T, gets k vectors y1,…,yk which are random linear combinations of the vi’s. In fact, if
yi=(αi1,…,αik,ai1,…,aid) then
yi=∑1≤j≤k(αijvj). Thus we can invert the linear transformation to find the vi’s with high probability.
History Krohn, Freedman and Mazieres proposed a theory in 2004 that if we have a hash function H:V⟶G such that:
H is collision resistant – it is hard to find x and y such that H(x)=H(y); H is a homomorphism – H(x+y)=H(x)+H(y). Then server can securely distribute H(vi) to each receiver, and to check if
y=∑1≤i≤k(αivi) we can check whether
H(y)=∑1≤i≤k(αiH(vi)) The problem with this method is that the server needs to transfer secure information to each of the receivers. The hash functions H needs to be transmitted to all the nodes in the network through a separate secure channel.H is expensive to compute and secure transmission of H is not economical either.
Advantages of homomorphic signatures Establishes authentication in addition to detecting pollution. No need for distributing secure hash digests. Smaller bit lengths in general will suffice. Signatures of length 180 bits have as much security as 1024 bit RSA signatures. Public information does not change for subsequent file transmission.
Signature scheme The homomorphic property of the signatures allows nodes to sign any linear combination of the incoming packets without contacting the signing authority.
Elliptic curves cryptography over a finite field Elliptic curve cryptography over a finite field is an approach to public-key cryptography based on the algebraic structure of elliptic curves over finite fields. Let 𝔽q be a finite field such that q is not a power of 2 or 3. Then an elliptic curve E over 𝔽q is a curve given by an equation of the form
y2=x3+ax+b, where a,b∈𝔽q such that 4a3+27b2≠0 Let K⊇𝔽q, then,
E(K)={(x,y)|y2=x3+ax+b}⋃{O} forms an abelian group with O as identity. The group operations can be performed efficiently.
Weil pairing Weil pairing is a construction of roots of unity by means of functions on an elliptic curve E, in such a way as to constitute a pairing (bilinear form, though with multiplicative notation) on the torsion subgroup of E. Let E/𝔽q be an elliptic curve and let 𝔽¯q be an algebraic closure of 𝔽q. If m is an integer, relatively prime to the characteristic of the field 𝔽q, then the group of m-torsion points, E[m]=P∈E(𝔽¯q):mP=O. If E/𝔽q is an elliptic curve and gcd(m,q)=1 then
E[m]≅(ℤ/mℤ)∗(ℤ/mℤ) There is a map em:E[m]∗E[m]→μm(𝔽q) such that:
(Bilinear) em(P+R,Q)=em(P,Q)em(R,Q) and em(P,Q+R)=em(P,Q)em(P,R). (Non-degenerate) em(P,Q)=1 for all P implies that Q=O. (Alternating) em(P,P)=1. Also, em can be computed efficiently.
Homomorphic signatures Let p be a prime and q a prime power. Let V/𝔽p be a vector space of dimension D and E/𝔽q be an elliptic curve such that P1,…,PD∈E[p]. Define h:V⟶E[p] as follows: h(u1,…,uD)=∑1≤i≤D(uiPi). The function h is an arbitrary homomorphism from V to E[p]. The server chooses s1,…,sD secretly in 𝔽p and publishes a point Q of p-torsion such that ep(Pi,Q)≠1 and also publishes (Pi,siQ) for 1≤i≤D. The signature of the vector v=u1,…,uD is σ(v)=∑1≤i≤D(uisiPi) Note: This signature is homomorphic since the computation of h is a homomorphism.
Signature verification Given v=u1,…,uD and its signature σ, verify that
… excerpt ends here. Continue reading the full article.