Documentation ¶
Index ¶
- Variables
- func DeserializeBody(buf *bytes.Buffer, algorithm *suite.AlgorithmSuite, frameLen int) (*body, error)
- func DeserializeHeader(buf *bytes.Buffer, maxEncryptedDataKeys int) (format.MessageHeader, format.MessageHeaderAuth, error)
- func NewHeader(p HeaderParams) (format.MessageHeader, error)
- func NewHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (format.MessageHeaderAuth, error)
- type HeaderParams
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
// contains filtered or unexported fields }
Functions ¶
func DeserializeBody ¶
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 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.