sss

package
v0.0.0-...-cd85d4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lagrange

func Lagrange(x int, results []int, m *big.Int) *big.Int

Types

type Coordinate

type Coordinate struct {
	X int
	Y *big.Int
}

func Distribute

func Distribute(secret *big.Int, n, k int, m *big.Int) ([]*Coordinate, error)

type SSSProcess

type SSSProcess struct {
	S []byte
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(secrets []*Coordinate, n, k int, m *big.Int) (*SSSProcess, error)

func (*SSSProcess) ProcessResponse

func (p *SSSProcess) ProcessResponse(coordinate *Coordinate) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL