Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deserializer ¶ added in v0.3.0
type Deserializer interface { DeserializeHeader(buf *bytes.Buffer, maxEncryptedDataKeys int) (MessageHeader, MessageHeaderAuth, error) DeserializeBody(buf *bytes.Buffer, algorithm *suite.AlgorithmSuite, frameLen int) (MessageBody, error) }
type HeaderParams ¶ added in v0.3.0
type HeaderParams struct { AlgorithmSuite *suite.AlgorithmSuite MessageID []byte EncryptionContext suite.EncryptionContext EncryptedDataKeys []MessageEDK ContentType suite.ContentType FrameLength int AlgorithmSuiteData []byte }
type MessageAAD ¶
type MessageAAD interface { Serializable EncryptionContext() suite.EncryptionContext }
type MessageBody ¶ added in v0.3.0
type MessageEDK ¶
type MessageEDK interface { Serializable ProviderID() string ProviderInfo() string EncryptedDataKey() []byte }
type MessageFooter ¶ added in v0.3.0
type MessageFooter interface { Serializable }
type MessageHeader ¶
type MessageHeader interface { Serializable Type() suite.MessageType // present only in V1 Reserved() []byte // present only in V1 IVLength() int // present only in V1 AlgorithmSuiteData() []byte // present only in V2 // contains filtered or unexported methods }
type MessageHeaderAuth ¶
type MessageHeaderAuth interface { Serializable AuthData() []byte IV() []byte // present only in V1 }
type Serializable ¶
type Serializer ¶ added in v0.3.0
type Serializer interface { SerializeHeader(p HeaderParams) (MessageHeader, error) SerializeHeaderAuth(v suite.MessageFormatVersion, iv, authData []byte) (MessageHeaderAuth, error) SerializeBody(alg *suite.AlgorithmSuite, frameLength int) (MessageBody, error) }
Click to show internal directories.
Click to hide internal directories.