serialization

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 11 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 EDK = edk{
	ProviderID: awsKmsProviderID,
	LenFields:  edkLenFields,
}

Functions

func NewDeserializer added in v0.3.0

func NewDeserializer() format.Deserializer

func NewSerializer added in v0.3.0

func NewSerializer() format.Serializer

Types

type Deserializer added in v0.3.0

type Deserializer struct{}

func (*Deserializer) DeserializeBody added in v0.3.0

func (d *Deserializer) DeserializeBody(buf *bytes.Buffer, algorithm *suite.AlgorithmSuite, frameLen int) (format.MessageBody, error)

func (*Deserializer) DeserializeFooter added in v0.3.0

func (d *Deserializer) DeserializeFooter(alg *suite.AlgorithmSuite, buf *bytes.Buffer) (format.MessageFooter, error)

func (*Deserializer) DeserializeHeader added in v0.3.0

func (d *Deserializer) DeserializeHeader(buf *bytes.Buffer, maxEDK int) (format.MessageHeader, format.MessageHeaderAuth, error)

type Serializer added in v0.3.0

type Serializer struct{}

func (*Serializer) SerializeBody added in v0.3.0

func (s *Serializer) SerializeBody(alg *suite.AlgorithmSuite, frameLength int) (format.MessageBody, error)

func (*Serializer) SerializeFooter added in v0.3.0

func (s *Serializer) SerializeFooter(alg *suite.AlgorithmSuite, signature []byte) (format.MessageFooter, error)

func (*Serializer) SerializeHeader added in v0.3.0

func (s *Serializer) SerializeHeader(p format.HeaderParams) (format.MessageHeader, error)

func (*Serializer) SerializeHeaderAuth added in v0.3.0

func (s *Serializer) SerializeHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (format.MessageHeaderAuth, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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