messages

package
v0.0.0-...-cb3ca1d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentSeal

func AgentSeal(msg, clientPub []byte, agentKey *ecdsa.PrivateKey) ([]byte, error)

AgentSeal encrypts message using client's public key and packs with agent signature.

func ClientOpen

func ClientOpen(c, agentPub []byte, clientPrv *ecdsa.PrivateKey) ([]byte, error)

ClientOpen decrypts message using client's key and verifies using agent's key.

func PackWithSignature

func PackWithSignature(msg []byte, key *ecdsa.PrivateKey) ([]byte, error)

PackWithSignature packs message with signature.

Types

This section is empty.

Directories

Path Synopsis
ept

Jump to

Keyboard shortcuts

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