Documentation ¶
Index ¶
- Variables
- func NewDeserializer() format.Deserializer
- func NewSerializer() format.Serializer
- type Deserializer
- func (d *Deserializer) DeserializeBody(buf *bytes.Buffer, alg *suite.AlgorithmSuite, frameLen int) (format.MessageBody, error)
- func (d *Deserializer) DeserializeFooter(buf *bytes.Buffer, alg *suite.AlgorithmSuite) (format.MessageFooter, error)
- func (d *Deserializer) DeserializeHeader(buf *bytes.Buffer, maxEDK int) (format.MessageHeader, format.MessageHeaderAuth, error)
- type Serializer
- func (s *Serializer) SerializeBody(alg *suite.AlgorithmSuite, frameLength int) (format.MessageBody, error)
- func (s *Serializer) SerializeFooter(alg *suite.AlgorithmSuite, signature []byte) (format.MessageFooter, error)
- func (s *Serializer) SerializeHeader(p format.HeaderParams) (format.MessageHeader, error)
- func (s *Serializer) SerializeHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (format.MessageHeaderAuth, error)
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 ¶
func NewDeserializer() format.Deserializer
func NewSerializer ¶
func NewSerializer() format.Serializer
Types ¶
type Deserializer ¶
type Deserializer struct{}
func (*Deserializer) DeserializeBody ¶
func (d *Deserializer) DeserializeBody(buf *bytes.Buffer, alg *suite.AlgorithmSuite, frameLen int) (format.MessageBody, error)
func (*Deserializer) DeserializeFooter ¶
func (d *Deserializer) DeserializeFooter(buf *bytes.Buffer, alg *suite.AlgorithmSuite) (format.MessageFooter, error)
func (*Deserializer) DeserializeHeader ¶
func (d *Deserializer) DeserializeHeader(buf *bytes.Buffer, maxEDK int) (format.MessageHeader, format.MessageHeaderAuth, error)
type Serializer ¶
type Serializer struct{}
func (*Serializer) SerializeBody ¶
func (s *Serializer) SerializeBody(alg *suite.AlgorithmSuite, frameLength int) (format.MessageBody, error)
func (*Serializer) SerializeFooter ¶
func (s *Serializer) SerializeFooter(alg *suite.AlgorithmSuite, signature []byte) (format.MessageFooter, error)
func (*Serializer) SerializeHeader ¶
func (s *Serializer) SerializeHeader(p format.HeaderParams) (format.MessageHeader, error)
func (*Serializer) SerializeHeaderAuth ¶
func (s *Serializer) SerializeHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (format.MessageHeaderAuth, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.