github.com/Psiphon-Labs/psiphon-tunnel-core@v2.0.28+incompatible/psiphon/common/quic/gquic-go/internal/crypto/AEAD.go (about) 1 package crypto 2 3 import "github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/common/quic/gquic-go/internal/protocol" 4 5 // An AEAD implements QUIC's authenticated encryption and associated data 6 type AEAD interface { 7 Open(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) ([]byte, error) 8 Seal(dst, src []byte, packetNumber protocol.PacketNumber, associatedData []byte) []byte 9 Overhead() int 10 }