Documentation
¶
Index ¶
- Variables
- type EncryptionHeader
- func (*EncryptionHeader) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptionHeader) GetNonce() []byte
- func (x *EncryptionHeader) GetProviderId() string
- func (x *EncryptionHeader) GetVersion() uint32
- func (*EncryptionHeader) ProtoMessage()
- func (x *EncryptionHeader) ProtoReflect() protoreflect.Message
- func (x *EncryptionHeader) Reset()
- func (x *EncryptionHeader) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_dataencryption_v1_encryption_header_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EncryptionHeader ¶
type EncryptionHeader struct {
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` // 12 bytes for AES-GCM; empty for the plain provider
// contains filtered or unexported fields
}
EncryptionHeader is the protobuf-encoded portion of the MSEH envelope.
Full wire format:
[4 bytes magic: 0x4D 0x53 0x45 0x48] "MSEH" [varint32: byte length of this message] [EncryptionHeader proto bytes] [raw ciphertext]
This matches the format used by the Java EncryptionHeader class.
func (*EncryptionHeader) Descriptor
deprecated
func (*EncryptionHeader) Descriptor() ([]byte, []int)
Deprecated: Use EncryptionHeader.ProtoReflect.Descriptor instead.
func (*EncryptionHeader) GetNonce ¶
func (x *EncryptionHeader) GetNonce() []byte
func (*EncryptionHeader) GetProviderId ¶
func (x *EncryptionHeader) GetProviderId() string
func (*EncryptionHeader) GetVersion ¶
func (x *EncryptionHeader) GetVersion() uint32
func (*EncryptionHeader) ProtoMessage ¶
func (*EncryptionHeader) ProtoMessage()
func (*EncryptionHeader) ProtoReflect ¶
func (x *EncryptionHeader) ProtoReflect() protoreflect.Message
func (*EncryptionHeader) Reset ¶
func (x *EncryptionHeader) Reset()
func (*EncryptionHeader) String ¶
func (x *EncryptionHeader) String() string
Click to show internal directories.
Click to hide internal directories.