Documentation ¶
Index ¶
- Constants
- func FillWithFakeDoubles(dest [][]byte, nonce *[24]byte, nextKeys []*[32]byte)
- func FillWithFakeSingles(dest [][]byte, nonce *[24]byte, nextKeys []*[32]byte)
- type AccessCount
- type ConvoConfig
- type ConvoService
- func (s *ConvoService) Bidirectional() bool
- func (s *ConvoService) GenerateNoise(settings mixnet.RoundSettings, myPos int) [][]byte
- func (s *ConvoService) HandleMessages(settings mixnet.RoundSettings, incoming [][]byte) (interface{}, error)
- func (s *ConvoService) ParseServiceData(data []byte) (interface{}, error)
- func (s *ConvoService) SizeIncomingMessage() int
- func (s *ConvoService) SizeReplyMessage() int
- type CoordinatorConfig
- type DeadDrop
- type DeadDropMessage
Constants ¶
View Source
const ( SizeMessageBody = 240 SizeEncryptedMessageBody = SizeMessageBody + box.Overhead )
View Source
const ConvoConfigVersion = 1
Variables ¶
This section is empty.
Functions ¶
func FillWithFakeDoubles ¶
func FillWithFakeSingles ¶
Types ¶
type AccessCount ¶
type ConvoConfig ¶
type ConvoConfig struct { Version int Coordinator CoordinatorConfig MixServers []mixnet.PublicServerConfig }
func (*ConvoConfig) MarshalJSON ¶
func (c *ConvoConfig) MarshalJSON() ([]byte, error)
func (*ConvoConfig) UnmarshalJSON ¶
func (c *ConvoConfig) UnmarshalJSON(data []byte) error
func (*ConvoConfig) UseLatestVersion ¶
func (c *ConvoConfig) UseLatestVersion()
func (*ConvoConfig) Validate ¶
func (c *ConvoConfig) Validate() error
type ConvoService ¶
type ConvoService struct { Laplace rand.Laplace AccessCounts chan AccessCount }
func (*ConvoService) Bidirectional ¶
func (s *ConvoService) Bidirectional() bool
func (*ConvoService) GenerateNoise ¶
func (s *ConvoService) GenerateNoise(settings mixnet.RoundSettings, myPos int) [][]byte
func (*ConvoService) HandleMessages ¶
func (s *ConvoService) HandleMessages(settings mixnet.RoundSettings, incoming [][]byte) (interface{}, error)
func (*ConvoService) ParseServiceData ¶
func (s *ConvoService) ParseServiceData(data []byte) (interface{}, error)
func (*ConvoService) SizeIncomingMessage ¶
func (s *ConvoService) SizeIncomingMessage() int
func (*ConvoService) SizeReplyMessage ¶
func (s *ConvoService) SizeReplyMessage() int
type CoordinatorConfig ¶
func (CoordinatorConfig) MarshalEasyJSON ¶
func (v CoordinatorConfig) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CoordinatorConfig) MarshalJSON ¶
func (v CoordinatorConfig) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CoordinatorConfig) UnmarshalEasyJSON ¶
func (v *CoordinatorConfig) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CoordinatorConfig) UnmarshalJSON ¶
func (v *CoordinatorConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DeadDropMessage ¶
type DeadDropMessage struct { DeadDrop DeadDrop EncryptedMessage [SizeEncryptedMessageBody]byte }
func (*DeadDropMessage) Marshal ¶
func (m *DeadDropMessage) Marshal() []byte
func (*DeadDropMessage) Unmarshal ¶
func (m *DeadDropMessage) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.