forked from quic-go/quic-go
11 lines
388 B
Go
11 lines
388 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(packetNumber protocol.PacketNumber, associatedData []byte, ciphertext []byte) ([]byte, error)
|
|
Seal(packetNumber protocol.PacketNumber, associatedData []byte, plaintext []byte) []byte
|
|
DiversificationNonce() []byte
|
|
}
|