Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendMACReader ¶
type AppendMACReader struct {
// contains filtered or unexported fields
}
AppendMACReader is a reader that computes and prepends MACs to every message
func NewAppendMACReader ¶
func NewAppendMACReader(reader io.Reader, key []byte) *AppendMACReader
NewAppendMACReader returns a new AppendMACReader
type AppendMACWriter ¶
type AppendMACWriter struct {
// contains filtered or unexported fields
}
AppendMACWriter is a writer that computes and prepends MACs to every message
func NewAppendMACWriter ¶
func NewAppendMACWriter(writer io.Writer, key []byte) *AppendMACWriter
NewAppendMACWriter wraps an io.Writer in an AppendMACWriter
type Reader ¶
type Reader struct {
*VerifyMACReader
}
Reader is an authenticated message reader. Note that this type serves as an alias to whichever implementation of io.Reader is considered the default for this package.
type VerifyMACReader ¶
type VerifyMACReader struct {
// contains filtered or unexported fields
}
VerifyMACReader is a reader that verifies and strips MACs from every message
func NewVerifyMACReader ¶
func NewVerifyMACReader(reader io.Reader, key []byte) *VerifyMACReader
NewVerifyMACReader returns a new VerifyMACReader
type VerifyMACWriter ¶
type VerifyMACWriter struct {
// contains filtered or unexported fields
}
VerifyMACWriter is a writer that verifies and strips MACs on every message before writing them to the underlying writer.
func NewVerifyMACWriter ¶
func NewVerifyMACWriter(writer io.Writer, key []byte) *VerifyMACWriter
NewVerifyMACWriter wraps an io.Writer in an VerifyMACWriter
type Writer ¶
type Writer struct {
*AppendMACWriter
}
Writer is an authenticated message writer. Note that this type serves as an alias to whichever implementation of io.Writer is considered the default for this package.