12 lines
179 B
Go
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
|
||
|
}
|