Docsity

Secret Sharing and Zero-Knowledge: Threshold Schemes and Identification Protocols, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Secret Sharing and Zero-Knowledge: Threshold Schemes and Identification Protocols and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Secret Sharing

Zero Knowledge

ECE 746: Lecture 11

Secret Sharing

Simple Shared Control Schemes

Dual control

Secret: S

Shares: random S 1 1  S 1  m- 1

S 2 = S - S 1 mod m

Unanimous consent control

Secret: S

Shares: random S 1 , S 2 , S 3 ,…, St- 1 , 1  Si  m- 1

St = S - (S 1 + S 2 + …+ St- 1 ) mod m

Secret Sharing

(t, n) threshold schemes (t<n)

Secret: S

Shares: S 1 , S 2 , …, Sn

Rule: Any t or more shares are sufficient

to compute S

Any t-1 or less shares do not reveal

any information about S

Shamir’s (t,n) Threshold Scheme

Secret: S

Computation of shares by the trusted party T:

1. T chooses a prime p > max(S, n)

and defines a 0 =S

2. T selects t-1 random independent coefficients

a 1 , a 2 , …, at- 1 , 0  ai  p- 1

defining the random polynomial

f(x) = a 0 + a 1 x + a 2 x^2 + … + at- 1 xt-^1

3. T computes

Si = f(i) mod p 1  i  n

4. T distributes pairs (i, Si) to n users

Shamir’s (t,n) Threshold Scheme

Recovering the secret:

Shares of t users provide t distinct

points of the polynomial (xi, yi) = (ni, Sni)

Coefficients of polynomial f, including a 0 =S

can be computed using Lagrange interpolation

f(x) = (^)  i= t yi  1  j  t ji (x - xj) (xi - xj)-^1 S = f(0) =  i= t yi ci where ci =  1  j  t ji xj (xj - xi)-^1

Strange Cave Strange Cave

Ali Baba

Thief

Strange Cave

Ali Baba

Strange Cave

Ali Baba

Thief

Strange Cave

Ali Baba

Thief

Strange Cave Ali Baba

Thief

Strange Cave Secret of the Strange Cave

Thief Ali Baba

Excavated Strange Cave

Mick Ali

TV Crew

Commitment

Excavated Strange Cave

Mick Ali

TV Crew

Challenge:

Ali, Come out on the right!

Excavated Strange Cave

Mick Ali

TV Crew Secret

Response

Excavated Strange Cave

Mick Ali

TV Crew Secret

Response

Basic Fiat-Shamir Zero-Knowledge Scheme Private key of A Prover A Public key of A Secret S P = S^2 mod N Verifier B random X Z = X^2 mod N q Y = XSq^ mod N q  {0, 1} B verifies whether Y^2  Z  Pq^ mod N The exchange is repeated t times => probability of error = 1/2 t commitment response challenge

Signature based on the Fiat-Shamir Scheme Private key of A Signer A Secrets S 1 , S 2 , …, Sm random X (^) Z = X^2 mod N q 1 , q 2 , …, qm = h(M. Z) qi  {0, 1} (^) Y = X j Sjq (^) jmod N

SGN(M) =

q 1 , q 2 , …, qm, Y

Signing

Generalized Fiat-Shamir Scheme Public key of A P 1 , P 2 , …, Pm Pi = Si^2 mod N 1  i  m (^) Verifier B B verifies whether q 1 , q 2 , …, qm  h(M, Z)

Verifying

SGN(M) =^ Z = Y^2 /^  j^ Pjq^ jmod N q 1 , q 2 , …, qm, Y