encryptionpb

package
v0.0.0-...-4fa2b26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEncryptionpb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEncryptionpb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group")
)
View Source
var EncryptionMethod_name = map[int32]string{
	0: "UNKNOWN",
	1: "PLAINTEXT",
	2: "AES128_CTR",
	3: "AES192_CTR",
	4: "AES256_CTR",
	5: "SM4_CTR",
}
View Source
var EncryptionMethod_value = map[string]int32{
	"UNKNOWN":    0,
	"PLAINTEXT":  1,
	"AES128_CTR": 2,
	"AES192_CTR": 3,
	"AES256_CTR": 4,
	"SM4_CTR":    5,
}

Functions

This section is empty.

Types

type DataKey

type DataKey struct {
	// A sequence of secret bytes used to encrypt data.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Method of encryption algorithm used to encrypted data.
	Method EncryptionMethod `protobuf:"varint,2,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"`
	// Creation time of the key.
	CreationTime uint64 `protobuf:"varint,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// A flag for the key have ever been exposed.
	WasExposed           bool     `protobuf:"varint,4,opt,name=was_exposed,json=wasExposed,proto3" json:"was_exposed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The key used to encrypt the user data.

func (*DataKey) Descriptor

func (*DataKey) Descriptor() ([]byte, []int)

func (*DataKey) GetCreationTime

func (m *DataKey) GetCreationTime() uint64

func (*DataKey) GetKey

func (m *DataKey) GetKey() []byte

func (*DataKey) GetMethod

func (m *DataKey) GetMethod() EncryptionMethod

func (*DataKey) GetWasExposed

func (m *DataKey) GetWasExposed() bool

func (*DataKey) Marshal

func (m *DataKey) Marshal() (dAtA []byte, err error)

func (*DataKey) MarshalTo

func (m *DataKey) MarshalTo(dAtA []byte) (int, error)

func (*DataKey) MarshalToSizedBuffer

func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataKey) ProtoMessage

func (*DataKey) ProtoMessage()

func (*DataKey) Reset

func (m *DataKey) Reset()

func (*DataKey) Size

func (m *DataKey) Size() (n int)

func (*DataKey) String

func (m *DataKey) String() string

func (*DataKey) Unmarshal

func (m *DataKey) Unmarshal(dAtA []byte) error

func (*DataKey) XXX_DiscardUnknown

func (m *DataKey) XXX_DiscardUnknown()

func (*DataKey) XXX_Marshal

func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataKey) XXX_Merge

func (m *DataKey) XXX_Merge(src proto.Message)

func (*DataKey) XXX_Size

func (m *DataKey) XXX_Size() int

func (*DataKey) XXX_Unmarshal

func (m *DataKey) XXX_Unmarshal(b []byte) error

type EncryptedContent

type EncryptedContent struct {
	// Metadata of the encrypted content.
	// Eg. IV, method and KMS key ID
	// It is preferred to define new fields for extra metadata than using this metadata map.
	Metadata map[string][]byte `` /* 157-byte string literal not displayed */
	// Encrypted content.
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// Master key used to encrypt the content.
	MasterKey *MasterKey `protobuf:"bytes,3,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"`
	// Initilization vector (IV) used.
	Iv []byte `protobuf:"bytes,4,opt,name=iv,proto3" json:"iv,omitempty"`
	// Encrypted data key generated by KMS and used to actually encrypt data.
	// Valid only when KMS is used.
	CiphertextKey        []byte   `protobuf:"bytes,5,opt,name=ciphertext_key,json=ciphertextKey,proto3" json:"ciphertext_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EncryptedContent) Descriptor

func (*EncryptedContent) Descriptor() ([]byte, []int)

func (*EncryptedContent) GetCiphertextKey

func (m *EncryptedContent) GetCiphertextKey() []byte

func (*EncryptedContent) GetContent

func (m *EncryptedContent) GetContent() []byte

func (*EncryptedContent) GetIv

func (m *EncryptedContent) GetIv() []byte

func (*EncryptedContent) GetMasterKey

func (m *EncryptedContent) GetMasterKey() *MasterKey

func (*EncryptedContent) GetMetadata

func (m *EncryptedContent) GetMetadata() map[string][]byte

func (*EncryptedContent) Marshal

func (m *EncryptedContent) Marshal() (dAtA []byte, err error)

func (*EncryptedContent) MarshalTo

func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, error)

func (*EncryptedContent) MarshalToSizedBuffer

func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptedContent) ProtoMessage

func (*EncryptedContent) ProtoMessage()

func (*EncryptedContent) Reset

func (m *EncryptedContent) Reset()

func (*EncryptedContent) Size

func (m *EncryptedContent) Size() (n int)

func (*EncryptedContent) String

func (m *EncryptedContent) String() string

func (*EncryptedContent) Unmarshal

func (m *EncryptedContent) Unmarshal(dAtA []byte) error

func (*EncryptedContent) XXX_DiscardUnknown

func (m *EncryptedContent) XXX_DiscardUnknown()

func (*EncryptedContent) XXX_Marshal

func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptedContent) XXX_Merge

func (m *EncryptedContent) XXX_Merge(src proto.Message)

func (*EncryptedContent) XXX_Size

func (m *EncryptedContent) XXX_Size() int

func (*EncryptedContent) XXX_Unmarshal

func (m *EncryptedContent) XXX_Unmarshal(b []byte) error

type EncryptionMeta

type EncryptionMeta struct {
	// ID of the key used to encrypt the data.
	KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// Initialization vector (IV) of the data.
	Iv                   []byte   `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

General encryption metadata for any data type.

func (*EncryptionMeta) Descriptor

func (*EncryptionMeta) Descriptor() ([]byte, []int)

func (*EncryptionMeta) GetIv

func (m *EncryptionMeta) GetIv() []byte

func (*EncryptionMeta) GetKeyId

func (m *EncryptionMeta) GetKeyId() uint64

func (*EncryptionMeta) Marshal

func (m *EncryptionMeta) Marshal() (dAtA []byte, err error)

func (*EncryptionMeta) MarshalTo

func (m *EncryptionMeta) MarshalTo(dAtA []byte) (int, error)

func (*EncryptionMeta) MarshalToSizedBuffer

func (m *EncryptionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EncryptionMeta) ProtoMessage

func (*EncryptionMeta) ProtoMessage()

func (*EncryptionMeta) Reset

func (m *EncryptionMeta) Reset()

func (*EncryptionMeta) Size

func (m *EncryptionMeta) Size() (n int)

func (*EncryptionMeta) String

func (m *EncryptionMeta) String() string

func (*EncryptionMeta) Unmarshal

func (m *EncryptionMeta) Unmarshal(dAtA []byte) error

func (*EncryptionMeta) XXX_DiscardUnknown

func (m *EncryptionMeta) XXX_DiscardUnknown()

func (*EncryptionMeta) XXX_Marshal

func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptionMeta) XXX_Merge

func (m *EncryptionMeta) XXX_Merge(src proto.Message)

func (*EncryptionMeta) XXX_Size

func (m *EncryptionMeta) XXX_Size() int

func (*EncryptionMeta) XXX_Unmarshal

func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error

type EncryptionMethod

type EncryptionMethod int32
const (
	EncryptionMethod_UNKNOWN    EncryptionMethod = 0
	EncryptionMethod_PLAINTEXT  EncryptionMethod = 1
	EncryptionMethod_AES128_CTR EncryptionMethod = 2
	EncryptionMethod_AES192_CTR EncryptionMethod = 3
	EncryptionMethod_AES256_CTR EncryptionMethod = 4
	EncryptionMethod_SM4_CTR    EncryptionMethod = 5
)

func (EncryptionMethod) EnumDescriptor

func (EncryptionMethod) EnumDescriptor() ([]byte, []int)

func (EncryptionMethod) String

func (x EncryptionMethod) String() string

type FileDictionary

type FileDictionary struct {
	// A map of file name to file info.
	Files                map[string]*FileInfo `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*FileDictionary) Descriptor

func (*FileDictionary) Descriptor() ([]byte, []int)

func (*FileDictionary) GetFiles

func (m *FileDictionary) GetFiles() map[string]*FileInfo

func (*FileDictionary) Marshal

func (m *FileDictionary) Marshal() (dAtA []byte, err error)

func (*FileDictionary) MarshalTo

func (m *FileDictionary) MarshalTo(dAtA []byte) (int, error)

func (*FileDictionary) MarshalToSizedBuffer

func (m *FileDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileDictionary) ProtoMessage

func (*FileDictionary) ProtoMessage()

func (*FileDictionary) Reset

func (m *FileDictionary) Reset()

func (*FileDictionary) Size

func (m *FileDictionary) Size() (n int)

func (*FileDictionary) String

func (m *FileDictionary) String() string

func (*FileDictionary) Unmarshal

func (m *FileDictionary) Unmarshal(dAtA []byte) error

func (*FileDictionary) XXX_DiscardUnknown

func (m *FileDictionary) XXX_DiscardUnknown()

func (*FileDictionary) XXX_Marshal

func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileDictionary) XXX_Merge

func (m *FileDictionary) XXX_Merge(src proto.Message)

func (*FileDictionary) XXX_Size

func (m *FileDictionary) XXX_Size() int

func (*FileDictionary) XXX_Unmarshal

func (m *FileDictionary) XXX_Unmarshal(b []byte) error

type FileInfo

type FileInfo struct {
	// ID of the key used to encrypt the file.
	KeyId uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// Initialization vector (IV) of the file.
	Iv []byte `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"`
	// Method of encryption algorithm used to encrypted the file.
	Method               EncryptionMethod `protobuf:"varint,3,opt,name=method,proto3,enum=encryptionpb.EncryptionMethod" json:"method,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Information about an encrypted file.

func (*FileInfo) Descriptor

func (*FileInfo) Descriptor() ([]byte, []int)

func (*FileInfo) GetIv

func (m *FileInfo) GetIv() []byte

func (*FileInfo) GetKeyId

func (m *FileInfo) GetKeyId() uint64

func (*FileInfo) GetMethod

func (m *FileInfo) GetMethod() EncryptionMethod

func (*FileInfo) Marshal

func (m *FileInfo) Marshal() (dAtA []byte, err error)

func (*FileInfo) MarshalTo

func (m *FileInfo) MarshalTo(dAtA []byte) (int, error)

func (*FileInfo) MarshalToSizedBuffer

func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) Reset

func (m *FileInfo) Reset()

func (*FileInfo) Size

func (m *FileInfo) Size() (n int)

func (*FileInfo) String

func (m *FileInfo) String() string

func (*FileInfo) Unmarshal

func (m *FileInfo) Unmarshal(dAtA []byte) error

func (*FileInfo) XXX_DiscardUnknown

func (m *FileInfo) XXX_DiscardUnknown()

func (*FileInfo) XXX_Marshal

func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileInfo) XXX_Merge

func (m *FileInfo) XXX_Merge(src proto.Message)

func (*FileInfo) XXX_Size

func (m *FileInfo) XXX_Size() int

func (*FileInfo) XXX_Unmarshal

func (m *FileInfo) XXX_Unmarshal(b []byte) error

type KeyDictionary

type KeyDictionary struct {
	// A map of key ID to dat key.
	Keys map[uint64]*DataKey `` /* 150-byte string literal not displayed */
	// ID of a key currently in use.
	CurrentKeyId         uint64   `protobuf:"varint,2,opt,name=current_key_id,json=currentKeyId,proto3" json:"current_key_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyDictionary) Descriptor

func (*KeyDictionary) Descriptor() ([]byte, []int)

func (*KeyDictionary) GetCurrentKeyId

func (m *KeyDictionary) GetCurrentKeyId() uint64

func (*KeyDictionary) GetKeys

func (m *KeyDictionary) GetKeys() map[uint64]*DataKey

func (*KeyDictionary) Marshal

func (m *KeyDictionary) Marshal() (dAtA []byte, err error)

func (*KeyDictionary) MarshalTo

func (m *KeyDictionary) MarshalTo(dAtA []byte) (int, error)

func (*KeyDictionary) MarshalToSizedBuffer

func (m *KeyDictionary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyDictionary) ProtoMessage

func (*KeyDictionary) ProtoMessage()

func (*KeyDictionary) Reset

func (m *KeyDictionary) Reset()

func (*KeyDictionary) Size

func (m *KeyDictionary) Size() (n int)

func (*KeyDictionary) String

func (m *KeyDictionary) String() string

func (*KeyDictionary) Unmarshal

func (m *KeyDictionary) Unmarshal(dAtA []byte) error

func (*KeyDictionary) XXX_DiscardUnknown

func (m *KeyDictionary) XXX_DiscardUnknown()

func (*KeyDictionary) XXX_Marshal

func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyDictionary) XXX_Merge

func (m *KeyDictionary) XXX_Merge(src proto.Message)

func (*KeyDictionary) XXX_Size

func (m *KeyDictionary) XXX_Size() int

func (*KeyDictionary) XXX_Unmarshal

func (m *KeyDictionary) XXX_Unmarshal(b []byte) error

type MasterKey

type MasterKey struct {
	// Types that are valid to be assigned to Backend:
	//	*MasterKey_Plaintext
	//	*MasterKey_File
	//	*MasterKey_Kms
	Backend              isMasterKey_Backend `protobuf_oneof:"backend"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Master key config.

func (*MasterKey) Descriptor

func (*MasterKey) Descriptor() ([]byte, []int)

func (*MasterKey) GetBackend

func (m *MasterKey) GetBackend() isMasterKey_Backend

func (*MasterKey) GetFile

func (m *MasterKey) GetFile() *MasterKeyFile

func (*MasterKey) GetKms

func (m *MasterKey) GetKms() *MasterKeyKms

func (*MasterKey) GetPlaintext

func (m *MasterKey) GetPlaintext() *MasterKeyPlaintext

func (*MasterKey) Marshal

func (m *MasterKey) Marshal() (dAtA []byte, err error)

func (*MasterKey) MarshalTo

func (m *MasterKey) MarshalTo(dAtA []byte) (int, error)

func (*MasterKey) MarshalToSizedBuffer

func (m *MasterKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKey) ProtoMessage

func (*MasterKey) ProtoMessage()

func (*MasterKey) Reset

func (m *MasterKey) Reset()

func (*MasterKey) Size

func (m *MasterKey) Size() (n int)

func (*MasterKey) String

func (m *MasterKey) String() string

func (*MasterKey) Unmarshal

func (m *MasterKey) Unmarshal(dAtA []byte) error

func (*MasterKey) XXX_DiscardUnknown

func (m *MasterKey) XXX_DiscardUnknown()

func (*MasterKey) XXX_Marshal

func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKey) XXX_Merge

func (m *MasterKey) XXX_Merge(src proto.Message)

func (*MasterKey) XXX_OneofWrappers

func (*MasterKey) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MasterKey) XXX_Size

func (m *MasterKey) XXX_Size() int

func (*MasterKey) XXX_Unmarshal

func (m *MasterKey) XXX_Unmarshal(b []byte) error

type MasterKeyFile

type MasterKeyFile struct {
	// Local file path.
	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MasterKeyFile is a master key backed by a file containing encryption key in human-readable hex format.

func (*MasterKeyFile) Descriptor

func (*MasterKeyFile) Descriptor() ([]byte, []int)

func (*MasterKeyFile) GetPath

func (m *MasterKeyFile) GetPath() string

func (*MasterKeyFile) Marshal

func (m *MasterKeyFile) Marshal() (dAtA []byte, err error)

func (*MasterKeyFile) MarshalTo

func (m *MasterKeyFile) MarshalTo(dAtA []byte) (int, error)

func (*MasterKeyFile) MarshalToSizedBuffer

func (m *MasterKeyFile) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKeyFile) ProtoMessage

func (*MasterKeyFile) ProtoMessage()

func (*MasterKeyFile) Reset

func (m *MasterKeyFile) Reset()

func (*MasterKeyFile) Size

func (m *MasterKeyFile) Size() (n int)

func (*MasterKeyFile) String

func (m *MasterKeyFile) String() string

func (*MasterKeyFile) Unmarshal

func (m *MasterKeyFile) Unmarshal(dAtA []byte) error

func (*MasterKeyFile) XXX_DiscardUnknown

func (m *MasterKeyFile) XXX_DiscardUnknown()

func (*MasterKeyFile) XXX_Marshal

func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKeyFile) XXX_Merge

func (m *MasterKeyFile) XXX_Merge(src proto.Message)

func (*MasterKeyFile) XXX_Size

func (m *MasterKeyFile) XXX_Size() int

func (*MasterKeyFile) XXX_Unmarshal

func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error

type MasterKeyKms

type MasterKeyKms struct {
	// KMS vendor.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// KMS key id.
	KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// KMS region.
	Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	// KMS endpoint. Normally not needed.
	Endpoint             string   `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MasterKeyKms is a master key backed by KMS service that manages the encryption key, and provide API to encrypt and decrypt a data key, which is used to encrypt the content.

func (*MasterKeyKms) Descriptor

func (*MasterKeyKms) Descriptor() ([]byte, []int)

func (*MasterKeyKms) GetEndpoint

func (m *MasterKeyKms) GetEndpoint() string

func (*MasterKeyKms) GetKeyId

func (m *MasterKeyKms) GetKeyId() string

func (*MasterKeyKms) GetRegion

func (m *MasterKeyKms) GetRegion() string

func (*MasterKeyKms) GetVendor

func (m *MasterKeyKms) GetVendor() string

func (*MasterKeyKms) Marshal

func (m *MasterKeyKms) Marshal() (dAtA []byte, err error)

func (*MasterKeyKms) MarshalTo

func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, error)

func (*MasterKeyKms) MarshalToSizedBuffer

func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKeyKms) ProtoMessage

func (*MasterKeyKms) ProtoMessage()

func (*MasterKeyKms) Reset

func (m *MasterKeyKms) Reset()

func (*MasterKeyKms) Size

func (m *MasterKeyKms) Size() (n int)

func (*MasterKeyKms) String

func (m *MasterKeyKms) String() string

func (*MasterKeyKms) Unmarshal

func (m *MasterKeyKms) Unmarshal(dAtA []byte) error

func (*MasterKeyKms) XXX_DiscardUnknown

func (m *MasterKeyKms) XXX_DiscardUnknown()

func (*MasterKeyKms) XXX_Marshal

func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKeyKms) XXX_Merge

func (m *MasterKeyKms) XXX_Merge(src proto.Message)

func (*MasterKeyKms) XXX_Size

func (m *MasterKeyKms) XXX_Size() int

func (*MasterKeyKms) XXX_Unmarshal

func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error

type MasterKeyPlaintext

type MasterKeyPlaintext struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MasterKeyPlaintext indicates content is stored as plaintext.

func (*MasterKeyPlaintext) Descriptor

func (*MasterKeyPlaintext) Descriptor() ([]byte, []int)

func (*MasterKeyPlaintext) Marshal

func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error)

func (*MasterKeyPlaintext) MarshalTo

func (m *MasterKeyPlaintext) MarshalTo(dAtA []byte) (int, error)

func (*MasterKeyPlaintext) MarshalToSizedBuffer

func (m *MasterKeyPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKeyPlaintext) ProtoMessage

func (*MasterKeyPlaintext) ProtoMessage()

func (*MasterKeyPlaintext) Reset

func (m *MasterKeyPlaintext) Reset()

func (*MasterKeyPlaintext) Size

func (m *MasterKeyPlaintext) Size() (n int)

func (*MasterKeyPlaintext) String

func (m *MasterKeyPlaintext) String() string

func (*MasterKeyPlaintext) Unmarshal

func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error

func (*MasterKeyPlaintext) XXX_DiscardUnknown

func (m *MasterKeyPlaintext) XXX_DiscardUnknown()

func (*MasterKeyPlaintext) XXX_Marshal

func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MasterKeyPlaintext) XXX_Merge

func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message)

func (*MasterKeyPlaintext) XXX_Size

func (m *MasterKeyPlaintext) XXX_Size() int

func (*MasterKeyPlaintext) XXX_Unmarshal

func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error

type MasterKey_File

type MasterKey_File struct {
	File *MasterKeyFile `protobuf:"bytes,2,opt,name=file,proto3,oneof" json:"file,omitempty"`
}

func (*MasterKey_File) MarshalTo

func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error)

func (*MasterKey_File) MarshalToSizedBuffer

func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKey_File) Size

func (m *MasterKey_File) Size() (n int)

type MasterKey_Kms

type MasterKey_Kms struct {
	Kms *MasterKeyKms `protobuf:"bytes,3,opt,name=kms,proto3,oneof" json:"kms,omitempty"`
}

func (*MasterKey_Kms) MarshalTo

func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error)

func (*MasterKey_Kms) MarshalToSizedBuffer

func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKey_Kms) Size

func (m *MasterKey_Kms) Size() (n int)

type MasterKey_Plaintext

type MasterKey_Plaintext struct {
	Plaintext *MasterKeyPlaintext `protobuf:"bytes,1,opt,name=plaintext,proto3,oneof" json:"plaintext,omitempty"`
}

func (*MasterKey_Plaintext) MarshalTo

func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error)

func (*MasterKey_Plaintext) MarshalToSizedBuffer

func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MasterKey_Plaintext) Size

func (m *MasterKey_Plaintext) Size() (n int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL