Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEncryptedRecipients ¶
Types ¶
type AnonHeader ¶
type AnonHeader struct {
Nonce []byte // nonce to decrypt recipients
}
Public Key is known to recipients
type Header ¶
type Header struct { PublicIdentity mcrypt.PublicIdentity Nonce []byte // nonce to decrypt recipients Signature []byte // signature of nonce }
type Payload ¶
type Recipients ¶
type SharedSecret ¶
type SharedSecret struct {
}SharedSecret is what is used to encrypt Payload. All recipients will be able to decrypt this.
func NewSharedSecret ¶
func NewSharedSecret(name, address string) (*SharedSecret, error)
Generate a shared secret identity to encrypt Payload.
func SharedSecretFromRecipient ¶
func SharedSecretFromRecipient(me *mcrypt.Identity, them *mcrypt.PublicIdentity, payload []byte) (*SharedSecret, error)
Click to show internal directories.
Click to hide internal directories.