dsa

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(crypt *crypto.Crypto) crypto.Threshold

func NewWithGroup

func NewWithGroup(crypt *crypto.Crypto, g Group, algo crypto.ThresholdAlgo) crypto.Threshold

Types

type Group

type Group interface {
	ParseKey(key interface{}) (GroupOperations, *big.Int)
	ParseParams(r *bytes.Reader) (GroupOperations, error)
}

type GroupOperations

type GroupOperations interface {
	CalculatePartialR(ai *big.Int) []byte
	CalculateR(rs []*PartialR) *big.Int
	SubGroupOrder() *big.Int
	Serialize(bp *bytes.Buffer) error
	OS2I(os []byte) *big.Int
}

type PartialR

type PartialR struct {
	X  int
	Ri []byte
	Vi *big.Int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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