mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-23 09:46:55 -05:00
11 lines
379 B
Go
11 lines
379 B
Go
package crypto
|
|
|
|
import "github.com/lucas-clemente/quic-go/internal/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
|
|
Overhead() int
|
|
}
|