Documentation ¶
Index ¶
Constants ¶
View Source
const ( // when using Split on a secret. This is caused by appending // a word-long tag to the share. ShareOverhead = 2 SizeGF16 = 65536 ModuloGF16 = SizeGF16 - 1 MaxPartsGF16 = SizeGF16 - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Part ¶
type Part []byte
func Split ¶
Split takes an arbitrarily long secret with even length and generates a `parts` number of shares, `threshold` of which are required to reconstruct the secret. The parts and threshold must be at least 2, and less than 'sizeGF16'. The returned shares are each one word longer than the secret as they attach a tag used to reconstruct the secret.
Click to show internal directories.
Click to hide internal directories.