Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAndCombine ¶
func DecryptAndCombine(shards [][]byte, getSecretKey GetSecretKeyFn) ([]byte, error)
DecryptAndCombine Decrypt the shards and assemble them
func ShardAndEncrypt ¶
func ShardAndEncrypt(key []byte, totalShares, threshold int, getSecretKey GetSecretKeyFn) ([][]byte, error)
ShardAndEncrypt Shard and encrypt the key, and return the encrypted sharded HEX
Types ¶
type GetSecretKeyFn ¶
type GetSecretKeyFn = func() []byte
Click to show internal directories.
Click to hide internal directories.