return to top
source
A split is described by the threshold k (how many shares rebuild the secret) and the number of shares n. Valid parameters satisfy 2 ≤ k ≤ n ≤ 255: at most 255 shares, because share indices are the nonzero elements of GF(2⁸).
k
n
2 ≤ k ≤ n ≤ 255
Validated split parameters: threshold k and share count n, with 2 ≤ k ≤ n ≤ 255.
Threshold: any k shares rebuild the secret; k − 1 reveal nothing.
k − 1
Number of shares produced.
Build parameters, or none if k, n are out of range.
none
Params.mk? k n succeeds exactly when 2 ≤ k ≤ n ≤ 255.
Params.mk? k n