mcrypto_dh

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHExchangeManager

type DHExchangeManager struct {
	// contains filtered or unexported fields
}

func DHExchangeManagerInstance

func DHExchangeManagerInstance() *DHExchangeManager

func (*DHExchangeManager) GetDHKeyInfo

func (dhm *DHExchangeManager) GetDHKeyInfo(peerPubKeyHash string) (*DHKeyInfo, error)

func (*DHExchangeManager) HandleSYNRPC

func (dhm *DHExchangeManager) HandleSYNRPC(r *http.Request, args *DHExchangeSYNArgs, reply *DHExchangeSYNReply) error

func (*DHExchangeManager) InitiateDHKeyExchange

func (dhm *DHExchangeManager) InitiateDHKeyExchange(peerPubKeyHash string) error

func (*DHExchangeManager) RemoveDHKeyInfo

func (dhm *DHExchangeManager) RemoveDHKeyInfo(peerPubKeyHash string)

type DHExchangeSYNArgs

type DHExchangeSYNArgs struct {
	Payload string
}

type DHExchangeSYNReply

type DHExchangeSYNReply struct {
	Payload string
}

type DHExchangeService

type DHExchangeService struct{}

func (*DHExchangeService) DHExchangeSYNRPC

func (dhm *DHExchangeService) DHExchangeSYNRPC(r *http.Request, args *DHExchangeSYNArgs, reply *DHExchangeSYNReply) error

type DHKeyInfo

type DHKeyInfo struct {
	PrivateKey        kyber.Scalar
	PublicKey         kyber.Point
	PeerPublicKey     kyber.Point
	SymmetricKey      kyber.Point
	SymmetricKeyBytes *bytes.Buffer

	KeySignal *chan *bytes.Buffer
}

func (*DHKeyInfo) DecodeStringToPeerPublicKey

func (dhKeyInfo *DHKeyInfo) DecodeStringToPeerPublicKey(encodedPublicKey string) error

func (*DHKeyInfo) EncodePublicKeyToString

func (dhKeyInfo *DHKeyInfo) EncodePublicKeyToString() string

func (*DHKeyInfo) GenDHSymmetricKey

func (dhKeyInfo *DHKeyInfo) GenDHSymmetricKey()

Jump to

Keyboard shortcuts

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