Versions in this module Expand all Collapse all v0 v0.0.1 Jan 30, 2018 v0.0.0 Jul 23, 2017 Changes in this version + var ErrIntOverflowBox = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthBox = fmt.Errorf("proto: negative length found during unmarshaling") + func GenerateKey() (string, error) + func Open(data []byte, receiverKey, masterKey string) ([]byte, error) + func PublicKey(privateKey string) (string, error) + func Seal(data []byte, masterKey string, receiverKeys []string) ([]byte, error) + type Box struct + Keys []*Key + Payload *Payload + func (*Box) Descriptor() ([]byte, []int) + func (*Box) ProtoMessage() + func (m *Box) GetKeys() []*Key + func (m *Box) GetPayload() *Payload + func (m *Box) Marshal() (dAtA []byte, err error) + func (m *Box) MarshalTo(dAtA []byte) (int, error) + func (m *Box) Reset() + func (m *Box) Size() (n int) + func (m *Box) String() string + func (m *Box) Unmarshal(dAtA []byte) error + type Key struct + BoxKey []byte + Nonce []byte + PublicKey []byte + func (*Key) Descriptor() ([]byte, []int) + func (*Key) ProtoMessage() + func (m *Key) Marshal() (dAtA []byte, err error) + func (m *Key) MarshalTo(dAtA []byte) (int, error) + func (m *Key) Reset() + func (m *Key) Size() (n int) + func (m *Key) String() string + func (m *Key) Unmarshal(dAtA []byte) error + type Payload struct + Data []byte + Nonce []byte + func (*Payload) Descriptor() ([]byte, []int) + func (*Payload) ProtoMessage() + func (m *Payload) Marshal() (dAtA []byte, err error) + func (m *Payload) MarshalTo(dAtA []byte) (int, error) + func (m *Payload) Reset() + func (m *Payload) Size() (n int) + func (m *Payload) String() string + func (m *Payload) Unmarshal(dAtA []byte) error