Documentation
¶
Index ¶
- func ElGamalDecrypt(private kyber.Scalar, egp ElGamalPair) kyber.Point
- func GetBLSKeyPair(id *network.ServerIdentity) *key.Pair
- func GetCodeHash() []byte
- func HashPoint(p kyber.Point) ([]byte, error)
- func HashPoints(ps []kyber.Point) ([]byte, error)
- func HashString(val string) []byte
- func HashUint64(val uint64) []byte
- func SearchPublicKey(p *onet.TreeNodeInstance, servID *network.ServerIdentity) int
- type ElGamalPair
- type ElGamalPairs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElGamalDecrypt ¶
func ElGamalDecrypt(private kyber.Scalar, egp ElGamalPair) kyber.Point
ElGamalDecrypt performs the ElGamal decryption algorithm.
func GetBLSKeyPair ¶
func GetBLSKeyPair(id *network.ServerIdentity) *key.Pair
func GetCodeHash ¶
func GetCodeHash() []byte
func HashString ¶
func HashUint64 ¶
func SearchPublicKey ¶
func SearchPublicKey(p *onet.TreeNodeInstance, servID *network.ServerIdentity) int
Types ¶
type ElGamalPair ¶
func ElGamalEncrypt ¶
func ElGamalEncrypt(public kyber.Point, message []byte) ElGamalPair
ElGamalEncrypt performs the ElGamal encryption algorithm.
type ElGamalPairs ¶
type ElGamalPairs struct {
Pairs []ElGamalPair
}
func GenerateMesgs ¶
func (*ElGamalPairs) Hash ¶
func (ps *ElGamalPairs) Hash() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.