v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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