Documentation ¶
Index ¶
- Variables
- type Chunk
- type Header
- type Identity
- func (*Identity) Descriptor() ([]byte, []int)deprecated
- func (x *Identity) GetComment() string
- func (x *Identity) GetEmail() string
- func (x *Identity) GetName() string
- func (i *Identity) ID() string
- func (*Identity) ProtoMessage()
- func (x *Identity) ProtoReflect() protoreflect.Message
- func (x *Identity) Reset()
- func (x *Identity) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetChunks() []*Chunk
- func (x *Message) GetCompressed() bool
- func (x *Message) GetHeader() *Header
- func (x *Message) GetVersion() uint32
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type PrivateKey
- func (*PrivateKey) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateKey) GetCiphertext() []byte
- func (x *PrivateKey) GetNonce() []byte
- func (x *PrivateKey) GetPublicKey() *PublicKey
- func (x *PrivateKey) GetSalt() []byte
- func (*PrivateKey) ProtoMessage()
- func (x *PrivateKey) ProtoReflect() protoreflect.Message
- func (x *PrivateKey) Reset()
- func (x *PrivateKey) String() string
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKey) GetCreationTime() uint64
- func (x *PublicKey) GetFingerprint() string
- func (x *PublicKey) GetIdentity() *Identity
- func (x *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm
- func (x *PublicKey) GetPublicKey() []byte
- func (*PublicKey) ProtoMessage()
- func (x *PublicKey) ProtoReflect() protoreflect.Message
- func (x *PublicKey) Reset()
- func (x *PublicKey) String() string
- type PublicKeyAlgorithm
- func (PublicKeyAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x PublicKeyAlgorithm) Enum() *PublicKeyAlgorithm
- func (PublicKeyAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x PublicKeyAlgorithm) Number() protoreflect.EnumNumber
- func (x PublicKeyAlgorithm) String() string
- func (PublicKeyAlgorithm) Type() protoreflect.EnumType
- type Pubring
- type Secring
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PublicKeyAlgorithm_name = map[int32]string{ 0: "UNKNOWN", 1: "NACL", } PublicKeyAlgorithm_value = map[string]int32{ "UNKNOWN": 0, "NACL": 1, } )
Enum value maps for PublicKeyAlgorithm.
View Source
var File_xc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct { Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"` // contains filtered or unexported fields }
func (*Chunk) Descriptor
deprecated
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) ProtoReflect ¶
func (x *Chunk) ProtoReflect() protoreflect.Message
type Header ¶
type Header struct { Sender string `protobuf:"bytes,1,opt,name=Sender,proto3" json:"Sender,omitempty"` Recipients map[string][]byte `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetRecipients ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Identity ¶
type Identity struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Comment string `protobuf:"bytes,2,opt,name=Comment,proto3" json:"Comment,omitempty"` Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"` // contains filtered or unexported fields }
func (*Identity) Descriptor
deprecated
func (*Identity) GetComment ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) ProtoReflect ¶
func (x *Identity) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Version uint32 `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"` Header *Header `protobuf:"bytes,2,opt,name=Header,proto3" json:"Header,omitempty"` Chunks []*Chunk `protobuf:"bytes,3,rep,name=Chunks,proto3" json:"Chunks,omitempty"` Compressed bool `protobuf:"varint,4,opt,name=Compressed,proto3" json:"Compressed,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetCompressed ¶
func (*Message) GetVersion ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type PrivateKey ¶
type PrivateKey struct { PublicKey *PublicKey `protobuf:"bytes,1,opt,name=PublicKey,proto3" 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"` // contains filtered or unexported fields }
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetCiphertext ¶
func (x *PrivateKey) GetCiphertext() []byte
func (*PrivateKey) GetNonce ¶
func (x *PrivateKey) GetNonce() []byte
func (*PrivateKey) GetPublicKey ¶
func (x *PrivateKey) GetPublicKey() *PublicKey
func (*PrivateKey) GetSalt ¶
func (x *PrivateKey) GetSalt() []byte
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) ProtoReflect ¶
func (x *PrivateKey) ProtoReflect() protoreflect.Message
func (*PrivateKey) Reset ¶
func (x *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (x *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { PubKeyAlgo PublicKeyAlgorithm `protobuf:"varint,1,opt,name=PubKeyAlgo,proto3,enum=xcpb.PublicKeyAlgorithm" json:"PubKeyAlgo,omitempty"` CreationTime uint64 `protobuf:"varint,2,opt,name=CreationTime,proto3" json:"CreationTime,omitempty"` PublicKey []byte `protobuf:"bytes,3,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Identity *Identity `protobuf:"bytes,4,opt,name=Identity,proto3" json:"Identity,omitempty"` Fingerprint string `protobuf:"bytes,5,opt,name=Fingerprint,proto3" json:"Fingerprint,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) GetCreationTime ¶
func (*PublicKey) GetFingerprint ¶
func (*PublicKey) GetIdentity ¶
func (*PublicKey) GetPubKeyAlgo ¶
func (x *PublicKey) GetPubKeyAlgo() PublicKeyAlgorithm
func (*PublicKey) GetPublicKey ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type PublicKeyAlgorithm ¶
type PublicKeyAlgorithm int32
const ( PublicKeyAlgorithm_UNKNOWN PublicKeyAlgorithm = 0 PublicKeyAlgorithm_NACL PublicKeyAlgorithm = 1 )
func (PublicKeyAlgorithm) Descriptor ¶
func (PublicKeyAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (PublicKeyAlgorithm) Enum ¶
func (x PublicKeyAlgorithm) Enum() *PublicKeyAlgorithm
func (PublicKeyAlgorithm) EnumDescriptor
deprecated
func (PublicKeyAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use PublicKeyAlgorithm.Descriptor instead.
func (PublicKeyAlgorithm) Number ¶
func (x PublicKeyAlgorithm) Number() protoreflect.EnumNumber
func (PublicKeyAlgorithm) String ¶
func (x PublicKeyAlgorithm) String() string
func (PublicKeyAlgorithm) Type ¶
func (PublicKeyAlgorithm) Type() protoreflect.EnumType
type Pubring ¶
type Pubring struct { Version uint32 `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"` PublicKeys []*PublicKey `protobuf:"bytes,2,rep,name=PublicKeys,proto3" json:"PublicKeys,omitempty"` // contains filtered or unexported fields }
func (*Pubring) Descriptor
deprecated
func (*Pubring) GetPublicKeys ¶
func (*Pubring) GetVersion ¶
func (*Pubring) ProtoMessage ¶
func (*Pubring) ProtoMessage()
func (*Pubring) ProtoReflect ¶
func (x *Pubring) ProtoReflect() protoreflect.Message
type Secring ¶
type Secring struct { Version uint32 `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"` PrivateKeys []*PrivateKey `protobuf:"bytes,2,rep,name=PrivateKeys,proto3" json:"PrivateKeys,omitempty"` // contains filtered or unexported fields }
func (*Secring) Descriptor
deprecated
func (*Secring) GetPrivateKeys ¶
func (x *Secring) GetPrivateKeys() []*PrivateKey
func (*Secring) GetVersion ¶
func (*Secring) ProtoMessage ¶
func (*Secring) ProtoMessage()
func (*Secring) ProtoReflect ¶
func (x *Secring) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.