Documentation ¶
Overview ¶
Package omcrypto is responsible for Message Encrypt, Decrypt, DecryptWithNode
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetClusterName ¶
func SetClusterName(s string)
func SetClusterSecret ¶
func SetClusterSecret(s string)
Types ¶
type Message ¶
Message is the message to encrypt
func NewMessage ¶
NewMessage allocates a new Message configured for the local node and cluster context
func (*Message) Decrypt ¶
Decrypt decrypts the message, if the nodename found in the message is a cluster node.
func (*Message) DecryptWithNode ¶
DecryptWithNode Decrypt the message
returns decodedMsg []byte, encryptorNodename string, error
Click to show internal directories.
Click to hide internal directories.