serialization

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMaxEncryptedDataKeys = errors.New("maximum number of encrypted data keys")
	ErrMinEncryptedDataKeys = errors.New("minimum number of encrypted data keys is 1")
)
View Source
var AAD = aad{
	// contains filtered or unexported fields
}
View Source
var EDK = edk{
	ProviderID: awsKmsProviderID,
	LenFields:  edkLenFields,
}
View Source
var MessageBody messageBody //nolint:gochecknoglobals
View Source
var MessageFooter = messageFooter{
	// contains filtered or unexported fields
}

Functions

func DeserializeBody

func DeserializeBody(buf *bytes.Buffer, algorithm *suite.AlgorithmSuite, frameLen int) (*body, error)

func DeserializeHeader

func DeserializeHeader(buf *bytes.Buffer, maxEncryptedDataKeys int) (format.MessageHeader, format.MessageHeaderAuth, error)

func NewHeader added in v0.2.0

func NewHeader(p HeaderParams) (format.MessageHeader, error)

func NewHeaderAuth added in v0.2.0

func NewHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (format.MessageHeaderAuth, error)

Types

type HeaderParams added in v0.2.0

type HeaderParams struct {
	AlgorithmSuite     *suite.AlgorithmSuite
	MessageID          []byte
	EncryptionContext  suite.EncryptionContext
	EncryptedDataKeys  []format.MessageEDK
	ContentType        suite.ContentType
	FrameLength        int
	AlgorithmSuiteData []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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