Documentation ¶
Index ¶
- Variables
- func NewDeserializer() format.Deserializer
- func NewSerializer() format.Serializer
- type Deserializer
- func (d *Deserializer) DeserializeBody(buf *bytes.Buffer, algorithm *suite.AlgorithmSuite, frameLen int) (format.MessageBody, error)
- func (d *Deserializer) DeserializeFooter(alg *suite.AlgorithmSuite, buf *bytes.Buffer) (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 ¶ 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.