rekey

package
v4.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: BSD-2-Clause, BSD-2-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_xchange_proto protoreflect.FileDescriptor

Functions

func CheckKeyExchanges

func CheckKeyExchanges(instance *commsNetwork.Instance, grp *cyclic.Group,
	sendE2E E2eSender, events event.Reporter, manager partner.Manager,
	param Params, sendTimeout time.Duration)

func Start

func Start(switchboard *receive.Switchboard, ratchet *ratchet.Ratchet,
	sender E2eSender, net cmix.Client, grp *cyclic.Group, params Params) (stoppable.Stoppable, error)

Types

type E2eSender

type E2eSender func(mt catalog.MessageType, recipient *id.ID, payload []byte,
	cmixParams cmix.CMIXParams) (e2e.SendReport, error)

type Params

type Params struct {
	RoundTimeout  time.Duration
	TriggerName   string
	Trigger       catalog.MessageType
	ConfirmName   string
	Confirm       catalog.MessageType
	StoppableName string
}

func GetDefaultEphemeralParams

func GetDefaultEphemeralParams() Params

GetDefaultEphemeralParams returns a default set of Params for ephemeral re-keying.

func GetDefaultParams

func GetDefaultParams() Params

GetDefaultParams returns a default set of Params.

func GetParameters

func GetParameters(params string) (Params, error)

GetParameters returns the default network parameters, or override with given parameters, if set.

func (Params) MarshalJSON

func (p Params) MarshalJSON() ([]byte, error)

MarshalJSON adheres to the json.Marshaler interface.

func (*Params) UnmarshalJSON

func (p *Params) UnmarshalJSON(data []byte) error

UnmarshalJSON adheres to the json.Unmarshaler interface.

type RekeyConfirm

type RekeyConfirm struct {

	// ID of the session created
	SessionID []byte `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// contains filtered or unexported fields
}

func (*RekeyConfirm) Descriptor deprecated

func (*RekeyConfirm) Descriptor() ([]byte, []int)

Deprecated: Use RekeyConfirm.ProtoReflect.Descriptor instead.

func (*RekeyConfirm) GetSessionID

func (x *RekeyConfirm) GetSessionID() []byte

func (*RekeyConfirm) ProtoMessage

func (*RekeyConfirm) ProtoMessage()

func (*RekeyConfirm) ProtoReflect

func (x *RekeyConfirm) ProtoReflect() protoreflect.Message

func (*RekeyConfirm) Reset

func (x *RekeyConfirm) Reset()

func (*RekeyConfirm) String

func (x *RekeyConfirm) String() string

type RekeyTrigger

type RekeyTrigger struct {

	// PublicKey used in the rekey
	PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// SIDHPublicKey used in the rekey
	SidhPublicKey []byte `protobuf:"bytes,2,opt,name=sidhPublicKey,proto3" json:"sidhPublicKey,omitempty"`
	// ID of the session used to create this session
	SessionID []byte `protobuf:"bytes,3,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	// contains filtered or unexported fields
}

func (*RekeyTrigger) Descriptor deprecated

func (*RekeyTrigger) Descriptor() ([]byte, []int)

Deprecated: Use RekeyTrigger.ProtoReflect.Descriptor instead.

func (*RekeyTrigger) GetPublicKey

func (x *RekeyTrigger) GetPublicKey() []byte

func (*RekeyTrigger) GetSessionID

func (x *RekeyTrigger) GetSessionID() []byte

func (*RekeyTrigger) GetSidhPublicKey

func (x *RekeyTrigger) GetSidhPublicKey() []byte

func (*RekeyTrigger) ProtoMessage

func (*RekeyTrigger) ProtoMessage()

func (*RekeyTrigger) ProtoReflect

func (x *RekeyTrigger) ProtoReflect() protoreflect.Message

func (*RekeyTrigger) Reset

func (x *RekeyTrigger) Reset()

func (*RekeyTrigger) String

func (x *RekeyTrigger) String() string

Jump to

Keyboard shortcuts

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