senderkey

package
v0.0.0-...-97e1097 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package senderkey defines the keys required to send and receive encrypted messages in a group.

Index

Constants

View Source
const (
	ChainKeySize = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainKey

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

func NewChainKey

func NewChainKey(chainKey []byte, iteration uint32) ChainKey

func (ChainKey) Iteration

func (c ChainKey) Iteration() uint32

func (ChainKey) MessageKey

func (c ChainKey) MessageKey() (MessageKey, error)

func (ChainKey) Next

func (c ChainKey) Next() ChainKey

func (ChainKey) Seed

func (c ChainKey) Seed() []byte

type MessageKey

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

func DeriveMessageKey

func DeriveMessageKey(seed []byte, iteration uint32) (MessageKey, error)

func (MessageKey) CipherKey

func (m MessageKey) CipherKey() []byte

func (MessageKey) IV

func (m MessageKey) IV() []byte

func (MessageKey) Iteration

func (m MessageKey) Iteration() uint32

func (MessageKey) Seed

func (m MessageKey) Seed() []byte

Jump to

Keyboard shortcuts

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