dissertation-2-code/proxy/mac.go
2020-10-24 17:44:14 +01:00

12 lines
179 B
Go

package proxy
type MacGenerator interface {
CodeLength() int
Generate([]byte) []byte
}
type MacVerifier interface {
CodeLength() int
Verify(data []byte, sum []byte) error
}