message

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package message used as a storage and loading of encrypted messages.

The package allows initializing verification of the correctness of the message by the hash length and proof of work.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMessageType = &SMessageError{"unknown type of message"}
	ErrLoadMessageBytes   = &SMessageError{"load message bytes"}
)

Functions

This section is empty.

Types

type IMessage

type IMessage interface {
	types.IConverter

	GetEnck() []byte
	GetEncd() []byte
}

func LoadMessage

func LoadMessage(psett ISettings, pMsg interface{}) (IMessage, error)

Message can be created only with client module.

func NewMessage added in v1.6.10

func NewMessage(pEnck, pEncd []byte) IMessage

type ISettings added in v1.5.7

type ISettings interface {
	GetKeySizeBits() uint64
	GetMessageSizeBytes() uint64
}

func NewSettings added in v1.5.7

func NewSettings(pSett *SSettings) ISettings

type SMessageError added in v1.6.8

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

func (*SMessageError) Error added in v1.6.8

func (err *SMessageError) Error() string

type SSettings added in v1.5.7

type SSettings sSettings

Jump to

Keyboard shortcuts

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