dissertation-2-code/proxy/mac.go

12 lines
179 B
Go
Raw Normal View History

2020-10-24 17:44:14 +01:00
package proxy
type MacGenerator interface {
CodeLength() int
Generate([]byte) []byte
}
type MacVerifier interface {
CodeLength() int
Verify(data []byte, sum []byte) error
}