harness-drone/vendor/github.com/lucas-clemente/quic-go/crypto/AEAD.go
2017-07-24 19:15:25 -04:00

9 lines
354 B
Go

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
}