v1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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