]> Cryptography - Streams and Broadcasts

Suppose we wish to broadcast a stream to a set of users securely. How can we achieve integrity? We cannot use MAC's, otherwise the users could forge packets to each other. We cannot sign the entire stream: this solution is vulnerable to packet loss, and also the whole stream would have to be buffered for verification. We cannot sign each packet individually, as this is too inefficient.

Method 1 (Combinatorial)

We describe a simple scheme based on families of coverfree subsets. It is a too inefficient for practical purposes.

There are n users and a single source. The source has several MAC keys K 1 ,...,K m, where m will be determined later.

The ith receiver has a set of keys S i{K 1 ,...,K m}.

To send a message M, the source transmits M,MAC K 1 (M),...,MAC K m(M).

Recipient i accepts a packet P if all the MAC's corresponding to their set S i verify.

At the bare minimum, we want 1-security, that is, any user j should not be able to forge a packet for any other user i, so we must have S iS j. The best way to do this is to use all subsets of size m/2 from the set of keys, so we need n=(m m/2 ), so m=O(logn).

More generally, for t-security (i.e. so that no group of t users can forge a packet), we require a family of t-coverfree subsets, which can be done with m=O(t 2 logn). Thus the packet size is quadratic in t. It can be shown that a smaller packet size implies nonrepudiation, that is, a MAC that short would in fact be a signature.

Method 2 (TESLA)

This solution uses time for security. Assume the total clock skew is Δ, and that the total routing time is less than or equal to some time T.

We use hash chains, i.e:

K 0 K 1 =H(K 0 )K m=H(K m1 )

For setup, give K m to all recipients, for some sufficiently large m. The source has K 0 . Then:

Time 1 : send M 1 ,MAC K m1 (M 1 )

Time 2 : send M 2 ,MAC K m2 (M 2 )

..

Time T: send M T,MAC K mT(M T). By this stage, all users should have received M 1 ,MAC(M 1 ).

..

Time T+Δ: send M T+Δ,MAC K mTΔ(M T+Δ), and also send K m1

..

Time 2 T+Δ: all users can validate M 1

To validate the first packet:

  1. Check that K m is in the hash chain

  2. Verify MAC K m1 (M 1 )

  3. Reject M 1 if received after time T+Δ=T local

Note that this scheme requires the users to buffer packets for T time steps.

It has been shown [Jacobson-Coppersmith] that one can construct a hash chain where computing any element of it takes time O(logn) in O(logn) space.

Method 3 (Signing) [Wong and Lam]

Signing every packet is too expensive, but signing many packets is vulnerable to packet loss. The solution is to sign many packets at once but verify them individually.

For example, suppose we have four packets p 1 ,...,p 4 . We construct a hash tree (diagram will be here when Mozilla supports SVG :-) (e.g. if we label the tree nodes n 1 ,...,n 7 , we have

n 1 =H(p 1 ),n 2 =H(p 2 ),n 3 =H(p 3 ),n 4 =H(p 4 ),n 5 =H(n 1 n 2 ),n 6 =H(n 3 n 4 ),n 7 =H(n 5 n 6 )

and transmit the packet plus enough nodes of the tree to derive the root node:

  1. send p 1 ,n 2 ,n 6 ,sign(n 7 )

  2. send p 2 ,n 1 ,n 6 ,sign(n 7 )

  3. send p 3 ,n 4 ,n 5 ,sign(n 7 )

  4. send p 4 ,n 3 ,n 5 ,sign(n 7 )

The overhead is O(logn) hashes plus a signature per packet.

However, this method requires buffering at the source. We can use one-time signatures to alleviate this.

One-Time Signatures are signatures that can be constructed and verified very quickly, but can only be used once (or a few times).

For example [Lamport], consider the following scheme:

  • Private key: x 1 0 ,...,x 160 0 ,x 1 1 ,...,x 160 1 .

  • Public key: H(x 1 0 ),...,H(x 160 0 ),H(x 1 1 ),...,H(x 160 ) 1 )

  • Sign(M): compute SHA1 (M)=h{0,1 } 160 . The signature is x 1 h 1 ,...,x 160 h 160 where h i is the i bit of h.

Another example. BiBa OTS (Bins and balls):

  • Let n be the security parameter. Let H be a hash function H:{0,1 } *{0,1 } m where mn.

  • Private key: x 1 ,...,x n{0,1 } k

  • Public key: SHA1 (x 1 ),...,SHA1 (x n)

  • Sign(M): find 1 i<jn such that H(Mx i)=H(Mx j). The signature is (x i,x j) ("Find two balls that hit the same bin.")

We can now remove the buffering problem as follows. Build a hash tree from the public keys PK 1 ,...,PK n of some one-time signature scheme. Sign the tree and transmit the public keys with signatures (so we commit to public keys instead of packets), and simply sign each packet.

Method 4: Expanders

Build a directed acyclic graph (DAG) using the packets as nodes. Then proceed as in the previous scheme, except this time we use a hash DAG, instead of a hash tree.

To resist up to t packets being lost, we need a graph that remains connected even if t nodes are removed.

An ε-expander graph (V,E) is a graph such that for all SV, we have neighbour(S)(1 +ε)S if (?) SV/(1 +ε).

There exist methods of constructing constant degree d expanders on n nodes such that removing n ε nodes for some constant ε does not disconnect the graph.