Files
quic-go/crypto/AEAD.go
2016-04-14 09:56:43 +02:00

13 lines
321 B
Go

package crypto
import (
"bytes"
"io"
)
// An AEAD implements QUIC's authenticated encryption and associated data
type AEAD interface {
Open(packetNumber uint64, associatedData []byte, ciphertext io.Reader) (*bytes.Reader, error)
Seal(packetNumber uint64, b *bytes.Buffer, associatedData []byte, plaintext []byte)
}