route/vendor/github.com/lucas-clemente/quic-go/internal/crypto/AEAD.go

11 lines
379 B
Go
Raw Normal View History

2017-12-12 02:51:45 +00:00
package crypto
2018-01-03 19:19:49 +00:00
import "github.com/lucas-clemente/quic-go/internal/protocol"
2017-12-12 02:51:45 +00:00
// An AEAD implements QUIC's authenticated encryption and associated data
type AEAD interface {
Open(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error)
Seal(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte
2018-01-03 19:19:49 +00:00
Overhead() int
2017-12-12 02:51:45 +00:00
}