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.
Click to show internal directories.
Click to hide internal directories.