mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 08:26:45 +02:00
10 lines
354 B
Go
10 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
|
|
}
|