Documentation
¶
Index ¶
Constants ¶
View Source
const (
NoiseKeySize = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { Encode(content []byte) ([]byte, error) Decode(cipherBuff []byte) ([]byte, error) }
func New ¶
func New(privateKey NoisePrivateKey, pubKey NoisePublicKey) Codec
type NoisePrivateKey ¶
type NoisePrivateKey [NoiseKeySize]byte
func NewPrivateKey ¶
func NewPrivateKey() (npk NoisePrivateKey, err error)
func (NoisePrivateKey) NewPubicKey ¶
func (npk NoisePrivateKey) NewPubicKey() (npc NoisePublicKey)
func (NoisePrivateKey) NewSharedKey ¶
func (npk NoisePrivateKey) NewSharedKey(npc NoisePublicKey) (shareKey NoiseSharedKey)
type NoisePublicKey ¶
type NoisePublicKey [NoiseKeySize]byte
type NoiseSharedKey ¶
type NoiseSharedKey [NoiseKeySize]byte
Click to show internal directories.
Click to hide internal directories.