Documentation ¶
Overview ¶
Package xcpb is a generated protocol buffer package.
It is generated from these files:
xc.proto
It has these top-level messages:
Header Chunk Message Identity PublicKey PrivateKey Secring Pubring
Index ¶
- Variables
- type Chunk
- type Header
- type Identity
- type Message
- type PrivateKey
- func (*PrivateKey) Descriptor() ([]byte, []int)
- func (m *PrivateKey) GetCiphertext() []byte
- func (m *PrivateKey) GetNonce() []byte
- func (m *PrivateKey) GetPublicKey() *PublicKey
- func (m *PrivateKey) GetSalt() []byte
- func (*PrivateKey) ProtoMessage()
- func (m *PrivateKey) Reset()
- func (m *PrivateKey) String() string
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- func (m *PublicKey) GetCreationTime() uint64
- func (m *PublicKey) GetFingerprint() string
- func (m *PublicKey) GetIdentity() *Identity
- func (m *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm
- func (m *PublicKey) GetPublicKey() []byte
- func (*PublicKey) ProtoMessage()
- func (m *PublicKey) Reset()
- func (m *PublicKey) String() string
- type PublicKeyAlgorithm
- type Pubring
- type Secring
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicKeyAlgorithm_name = map[int32]string{
0: "UNKNOWN",
1: "NACL",
}
View Source
var PublicKeyAlgorithm_value = map[string]int32{
"UNKNOWN": 0,
"NACL": 1,
}
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"`
}
func (*Chunk) Descriptor ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
type Header ¶
type Header struct { Sender string `protobuf:"bytes,1,opt,name=Sender" json:"Sender,omitempty"` Recipients map[string][]byte `` /* 147-byte string literal not displayed */ }
func (*Header) Descriptor ¶
func (*Header) GetRecipients ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type Identity ¶
type Identity struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Comment string `protobuf:"bytes,2,opt,name=Comment" json:"Comment,omitempty"` Email string `protobuf:"bytes,3,opt,name=Email" json:"Email,omitempty"` }
func (*Identity) Descriptor ¶
func (*Identity) GetComment ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
type Message ¶
type Message struct { Version uint32 `protobuf:"varint,1,opt,name=Version" json:"Version,omitempty"` Header *Header `protobuf:"bytes,2,opt,name=Header" json:"Header,omitempty"` Chunks []*Chunk `protobuf:"bytes,3,rep,name=Chunks" json:"Chunks,omitempty"` Compressed bool `protobuf:"varint,4,opt,name=Compressed" json:"Compressed,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) GetCompressed ¶
func (*Message) GetVersion ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type PrivateKey ¶
type PrivateKey struct { PublicKey *PublicKey `protobuf:"bytes,1,opt,name=PublicKey" json:"PublicKey,omitempty"` Ciphertext []byte `protobuf:"bytes,2,opt,name=Ciphertext,proto3" json:"Ciphertext,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"` Salt []byte `protobuf:"bytes,4,opt,name=Salt,proto3" json:"Salt,omitempty"` }
func (*PrivateKey) Descriptor ¶
func (*PrivateKey) Descriptor() ([]byte, []int)
func (*PrivateKey) GetCiphertext ¶
func (m *PrivateKey) GetCiphertext() []byte
func (*PrivateKey) GetNonce ¶
func (m *PrivateKey) GetNonce() []byte
func (*PrivateKey) GetPublicKey ¶
func (m *PrivateKey) GetPublicKey() *PublicKey
func (*PrivateKey) GetSalt ¶
func (m *PrivateKey) GetSalt() []byte
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) Reset ¶
func (m *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (m *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { PubKeyAlgo PublicKeyAlgorithm `protobuf:"varint,1,opt,name=PubKeyAlgo,enum=xcpb.PublicKeyAlgorithm" json:"PubKeyAlgo,omitempty"` CreationTime uint64 `protobuf:"varint,2,opt,name=CreationTime" json:"CreationTime,omitempty"` PublicKey []byte `protobuf:"bytes,3,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Identity *Identity `protobuf:"bytes,4,opt,name=Identity" json:"Identity,omitempty"` Fingerprint string `protobuf:"bytes,5,opt,name=Fingerprint" json:"Fingerprint,omitempty"` }
func (*PublicKey) Descriptor ¶
func (*PublicKey) GetCreationTime ¶
func (*PublicKey) GetFingerprint ¶
func (*PublicKey) GetIdentity ¶
func (*PublicKey) GetPubKeyAlgo ¶
func (m *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm
func (*PublicKey) GetPublicKey ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
type PublicKeyAlgorithm ¶
type PublicKeyAlgorithm int32
const ( PublicKeyAlgorithm_UNKNOWN PublicKeyAlgorithm = 0 PublicKeyAlgorithm_NACL PublicKeyAlgorithm = 1 )
func (PublicKeyAlgorithm) EnumDescriptor ¶
func (PublicKeyAlgorithm) EnumDescriptor() ([]byte, []int)
func (PublicKeyAlgorithm) String ¶
func (x PublicKeyAlgorithm) String() string
type Pubring ¶
type Pubring struct { Version uint32 `protobuf:"varint,1,opt,name=Version" json:"Version,omitempty"` PublicKeys []*PublicKey `protobuf:"bytes,2,rep,name=PublicKeys" json:"PublicKeys,omitempty"` }
func (*Pubring) Descriptor ¶
func (*Pubring) GetPublicKeys ¶
func (*Pubring) GetVersion ¶
func (*Pubring) ProtoMessage ¶
func (*Pubring) ProtoMessage()
type Secring ¶
type Secring struct { Version uint32 `protobuf:"varint,1,opt,name=Version" json:"Version,omitempty"` PrivateKeys []*PrivateKey `protobuf:"bytes,2,rep,name=PrivateKeys" json:"PrivateKeys,omitempty"` }
func (*Secring) Descriptor ¶
func (*Secring) GetPrivateKeys ¶
func (m *Secring) GetPrivateKeys() []*PrivateKey
func (*Secring) GetVersion ¶
func (*Secring) ProtoMessage ¶
func (*Secring) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.