Network coding
In computer networking, linear network coding is a program in which intermediate nodes transmit data from source nodes to sink nodes by means of linear combinations.
Linear network coding may be used to improve a network's throughput, efficiency, ...
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 packet
In telecommunications and computer networking, a network packet is a formatted unit of Data (computing), data carried by a packet-switched network. A packet consists of control information and user data; the latter is also known as the ''Payload ...
s 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
A hash function is any Function (mathematics), function that can be used to map data (computing), data of arbitrary size to fixed-size values, though there are some hash functions that support variable-length output. The values returned by a ...
. 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
Homomorphic encryption is a form of encryption that allows computations to be performed on encrypted data without first having to decrypt it. The resulting computations are left in an encrypted form which, when decrypted, result in an output th ...
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
In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
was used in the generation of the packet. Furthermore, we can prove that the signature scheme is secure under well known
cryptographic
Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or '' -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adversarial behavior. More gen ...
assumptions of the hardness of the
discrete logarithm
In mathematics, for given real numbers a and b, the logarithm \log_b(a) is a number x such that b^x=a. Analogously, in any group G, powers b^k can be defined for all integers k, and the discrete logarithm \log_b(a) is an integer k such that b^k=a ...
problem and the computational
Elliptic curve Diffie–Hellman.
Network coding
Let
be a
directed graph where
is a set, whose elements are called vertices or
node
In general, a node is a localized swelling (a "knot") or a point of intersection (a vertex).
Node may refer to:
In mathematics
* Vertex (graph theory), a vertex in a mathematical graph
*Vertex (geometry), a point where two or more curves, lines ...
s, and
is a set of
ordered pair
In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
s of vertices, called arcs, directed edges, or arrows. A source
wants to transmit a file
to a set
of the vertices. One chooses a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
(say of dimension
), where
is a prime, and views the data to be transmitted as a bunch of vectors
. The source then creates the augmented vectors
by setting
where
is the
-th coordinate of the vector
. There are
zeros before the first '1' appears in
. One can assume without loss of generality that the vectors
are
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there exists no nontrivial linear combination of the vectors that equals the zero vector. If such a linear combination exists, then the vectors are said to be . These concep ...
. We denote the
linear subspace
In mathematics, the term ''linear'' is used in two distinct senses for two different properties:
* linearity of a ''function (mathematics), function'' (or ''mapping (mathematics), mapping'');
* linearity of a ''polynomial''.
An example of a li ...
(of
) spanned by these vectors by
. Each outgoing edge
computes a linear combination,
, of the vectors entering the vertex
where the edge originates, that is to say
:
where
. We consider the source as having
input edges carrying the
vectors
. By
induction, one has that the vector
on any edge is a linear combination
and is a vector in
. The k-dimensional vector
is simply the first ''k'' coordinates of the vector
. We call the
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
whose rows are the vectors
, where
are the incoming edges for a vertex
, the global encoding matrix for
and denote it as
. In practice the encoding vectors are chosen at random so the matrix
is invertible with high probability. Thus, any receiver, on receiving
can find
by solving
:
where the
are the vectors formed by removing the first
coordinates of the vector
.
Decoding at the receiver
Each
receiver,
, gets
vectors
which are random linear combinations of the
’s.
In fact, if
:
then
:
Thus we can invert the linear transformation to find the
’s with high
probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
.
History
Krohn, Freedman and Mazieres proposed a theory in 2004 that if we have a hash function
such that:
*
is
collision resistant – it is hard to find
and
such that
;
*
is a
homomorphism
In algebra, a homomorphism is a morphism, structure-preserving map (mathematics), map between two algebraic structures of the same type (such as two group (mathematics), groups, two ring (mathematics), rings, or two vector spaces). The word ''homo ...
–
.
Then server can securely distribute
to each receiver, and to check if
:
we can check whether
:
The problem with this method is that the server needs to transfer secure information to each of the receivers. The hash functions
needs to be transmitted to all the nodes in the network through a separate secure channel.
is expensive to compute and secure transmission of
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
Elliptic-curve cryptography (ECC) is an approach to public-key cryptography based on the algebraic structure of elliptic curves over finite fields. ECC allows smaller keys to provide equivalent security, compared to cryptosystems based on modula ...
over a finite field is an approach to
public-key cryptography
Public-key cryptography, or asymmetric cryptography, is the field of cryptographic systems that use pairs of related keys. Each key pair consists of a public key and a corresponding private key. Key pairs are generated with cryptographic alg ...
based on the algebraic structure of
elliptic curves
In mathematics, an elliptic curve is a Smoothness, smooth, Projective variety, projective, algebraic curve of Genus of an algebraic curve, genus one, on which there is a specified point . An elliptic curve is defined over a field (mathematics), ...
over
finite field
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
s.
Let
be a finite field such that
is not a power of 2 or 3. Then an elliptic curve
over
is a curve given by an equation of the form
:
where
such that
Let
, then,
:
forms an
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commu ...
with O as identity. The
group operations can be performed efficiently.
Weil pairing
Weil pairing
In mathematics, the Weil pairing is a pairing (bilinear form, though with multiplicative notation) on the points of order dividing ''n'' of an elliptic curve ''E'', taking values in ''n''th roots of unity. More generally there is a similar Weil ...
is a construction of
roots of unity
In mathematics, a root of unity is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory of group char ...
by means of functions on an
elliptic curve
In mathematics, an elliptic curve is a smooth, projective, algebraic curve of genus one, on which there is a specified point . An elliptic curve is defined over a field and describes points in , the Cartesian product of with itself. If the ...
, in such a way as to constitute a
pairing
In mathematics, a pairing is an ''R''- bilinear map from the Cartesian product of two ''R''- modules, where the underlying ring ''R'' is commutative.
Definition
Let ''R'' be a commutative ring with unit, and let ''M'', ''N'' and ''L'' be '' ...
(
bilinear form
In mathematics, a bilinear form is a bilinear map on a vector space (the elements of which are called '' vectors'') over a field ''K'' (the elements of which are called '' scalars''). In other words, a bilinear form is a function that is linea ...
, though with
multiplicative notation) on the
torsion subgroup
In the theory of abelian groups, the torsion subgroup ''AT'' of an abelian group ''A'' is the subgroup of ''A'' consisting of all elements that have finite order (the torsion elements of ''A''). An abelian group ''A'' is called a torsion group ...
of
. Let
be an elliptic curve and let
be an algebraic closure of
. If
is an integer, relatively prime to the characteristic of the field
, then the group of
-torsion points,
.
If
is an elliptic curve and
then
:
There is a map
such that:
#(Bilinear)
.
#(Non-degenerate)
for all ''P'' implies that
.
#(Alternating)
.
Also,
can be computed efficiently.
Homomorphic signatures
Let
be a prime and
a prime power. Let
be a vector space of dimension
and
be an elliptic curve such that