Perfect secrecy #
Claim. Fix any set T of at most k − 1 nonzero share indices, and any two secrets s, s'
of the same length. There is a bijection σ on the randomness such that the shares at T made
from (s, r) are exactly the shares at T made from (s', σ r).
So every possible view of k − 1 shares is produced by the same number of random choices for
s as for s'. With uniform randomness, the shares are equally likely whatever the secret is:
they reveal nothing about it.
Construction. Let g = vanishing T = 1 + x·gₜ(x). Then g(0) = 1 and g(t) = 0 for
t ∈ T, so t·gₜ(t) = 1 on T. For each secret byte, σ adds (s + s')·gₜ to the random
coefficients r. The byte's polynomial becomes s' + x·r(x) + (s + s')·x·gₜ(x). At any t ∈ T
that is s' + t·r(t) + (s + s') = s + t·r(t), the old value. Adding the same thing twice cancels
(characteristic 2), so σ ∘ σ = id: σ is its own inverse.