Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2015 Changes in this version + var ErrInvalidLengthOpenpgp = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthSeal = fmt.Errorf("proto: negative length found during unmarshaling") + func Marshal(s Seal) ([]byte, error) + type Envelope struct + Openpgp *OpenPGP + func Wrap(s Seal) (*Envelope, error) + func (*Envelope) ProtoMessage() + func (e *Envelope) Seal() (Seal, error) + func (m *Envelope) GetOpenpgp() *OpenPGP + func (m *Envelope) Marshal() (data []byte, err error) + func (m *Envelope) MarshalTo(data []byte) (int, error) + func (m *Envelope) Reset() + func (m *Envelope) Size() (n int) + func (m *Envelope) String() string + func (m *Envelope) Unmarshal(data []byte) error + func (this *Envelope) GetValue() interface{} + func (this *Envelope) SetValue(value interface{}) bool + type OpenPGP struct + Entity []byte + Nonce []byte + Signature []byte + func NewOpenPGP(signer *openpgp.Entity, data []byte) (*OpenPGP, error) + func (*OpenPGP) ProtoMessage() + func (m *OpenPGP) Marshal() (data []byte, err error) + func (m *OpenPGP) MarshalTo(data []byte) (int, error) + func (m *OpenPGP) Reset() + func (m *OpenPGP) Size() (n int) + func (m *OpenPGP) String() string + func (m *OpenPGP) Unmarshal(data []byte) error + func (s *OpenPGP) Check(data []byte) error + func (s *OpenPGP) Digest() ([]byte, error) + type Seal interface + Check func(data []byte) error + Digest func() ([]byte, error) + Marshal func() (data []byte, err error) + Unmarshal func(data []byte) error + func Unmarshal(data []byte) (Seal, error)