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

10 lines
354 B
Go
Raw Normal View History

2017-12-12 02:51:45 +00:00
package crypto
import "github.com/lucas-clemente/quic-go/protocol"
// 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
}